@jupyterlab/settingregistry
Advanced tools
Comparing version 3.6.0 to 3.6.1
@@ -284,6 +284,3 @@ // Copyright (c) Jupyter Development Team. | ||
const raw = json5.parse(plugins[plugin].raw); | ||
plugins[plugin].raw = Private.annotatedPlugin(plugins[plugin], { | ||
...raw, | ||
[key]: value | ||
}); | ||
plugins[plugin].raw = Private.annotatedPlugin(plugins[plugin], Object.assign(Object.assign({}, raw), { [key]: value })); | ||
return this._save(plugin); | ||
@@ -676,7 +673,3 @@ } | ||
if (refIndex >= 0) { | ||
merged[refIndex] = { | ||
...merged[refIndex], | ||
...menu, | ||
items: reconcileItems(merged[refIndex].items, menu.items, warn, addNewItems) | ||
}; | ||
merged[refIndex] = Object.assign(Object.assign(Object.assign({}, merged[refIndex]), menu), { items: reconcileItems(merged[refIndex].items, menu.items, warn, addNewItems) }); | ||
} | ||
@@ -714,3 +707,3 @@ else { | ||
if (addNewItems) { | ||
items.push({ ...item }); | ||
items.push(Object.assign({}, item)); | ||
} | ||
@@ -727,9 +720,5 @@ break; | ||
else { | ||
items[refIndex] = { | ||
...items[refIndex], | ||
...item, | ||
submenu: reconcileMenus(items[refIndex].submenu | ||
items[refIndex] = Object.assign(Object.assign(Object.assign({}, items[refIndex]), item), { submenu: reconcileMenus(items[refIndex].submenu | ||
? [items[refIndex].submenu] | ||
: null, [item.submenu], warn, addNewItems)[0] | ||
}; | ||
: null, [item.submenu], warn, addNewItems)[0] }); | ||
} | ||
@@ -748,3 +737,3 @@ } | ||
if (addNewItems) { | ||
items.push({ ...item }); | ||
items.push(Object.assign({}, item)); | ||
} | ||
@@ -756,3 +745,3 @@ } | ||
} | ||
items[refIndex] = { ...items[refIndex], ...item }; | ||
items[refIndex] = Object.assign(Object.assign({}, items[refIndex]), item); | ||
} | ||
@@ -774,3 +763,3 @@ } | ||
var _a; | ||
const copy = { ...value }; | ||
const copy = Object.assign({}, value); | ||
if (!copy.disabled) { | ||
@@ -780,6 +769,3 @@ if (copy.type === 'submenu') { | ||
if (submenu && !submenu.disabled) { | ||
copy.submenu = { | ||
...submenu, | ||
items: filterDisabledItems((_a = submenu.items) !== null && _a !== void 0 ? _a : []) | ||
}; | ||
copy.submenu = Object.assign(Object.assign({}, submenu), { items: filterDisabledItems((_a = submenu.items) !== null && _a !== void 0 ? _a : []) }); | ||
} | ||
@@ -856,3 +842,3 @@ } | ||
.map(shortcut => { | ||
return { args: {}, ...shortcut }; | ||
return Object.assign({ args: {} }, shortcut); | ||
})); | ||
@@ -882,3 +868,3 @@ } | ||
if (refIndex < 0) { | ||
items.push({ ...item }); | ||
items.push(Object.assign({}, item)); | ||
} | ||
@@ -890,3 +876,3 @@ else { | ||
} | ||
items[refIndex] = { ...items[refIndex], ...item }; | ||
items[refIndex] = Object.assign(Object.assign({}, items[refIndex]), item); | ||
} | ||
@@ -893,0 +879,0 @@ }); |
{ | ||
"name": "@jupyterlab/settingregistry", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Settings registry for Jupyterlab", | ||
@@ -38,3 +38,3 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"dependencies": { | ||
"@jupyterlab/statedb": "^3.6.0", | ||
"@jupyterlab/statedb": "^3.6.1", | ||
"@lumino/commands": "^1.19.0", | ||
@@ -48,3 +48,3 @@ "@lumino/coreutils": "^1.11.0", | ||
"devDependencies": { | ||
"@jupyterlab/testutils": "^3.6.0", | ||
"@jupyterlab/testutils": "^3.6.1", | ||
"@types/jest": "^26.0.10", | ||
@@ -51,0 +51,0 @@ "@types/json5": "^0.0.30", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109267
2352
Updated@jupyterlab/statedb@^3.6.1