-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extension of localLinks structure in io-package.json (#2844)
* Extension of localLinks structure in io-package.json * Extension of localLinks structure in io-package.json * Extension of localLinks structure in io-package.json * Extension of localLinks structure in io-package.json * Extension of localLinks structure in io-package.json * do not merge visWidgets and localLinks * Update schemas/io-package.json Co-authored-by: Max Hauser <[email protected]> * Added comments and removed deprecationMessages * added test * format --------- Co-authored-by: Max Hauser <[email protected]>
- Loading branch information
1 parent
12a17e8
commit 0e3f4a4
Showing
5 changed files
with
97 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* Upload adapter files into DB | ||
* | ||
* Copyright 2013-2023 bluefox <[email protected]> | ||
* Copyright 2013-2024 bluefox <[email protected]> | ||
* | ||
* MIT License | ||
* | ||
|
@@ -744,12 +744,19 @@ export class Upload { | |
newObject.common.installedVersion = ioPack.common.version; | ||
newObject.common.installedFrom = ioPack.common.installedFrom; | ||
|
||
// do not merge visWidgets and localLinks | ||
if (ioPack.common.visWidgets) { | ||
newObject.common.visWidgets = ioPack.common.visWidgets; | ||
} else { | ||
delete newObject.common.visWidgets; | ||
} | ||
|
||
if (ioPack.common.localLinks) { | ||
newObject.common.localLinks = ioPack.common.localLinks; | ||
} else { | ||
delete newObject.common.localLinks; | ||
} | ||
|
||
if (!ioPack.common.compact && newObject.common.compact) { | ||
newObject.common.compact = ioPack.common.compact; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters