@superset-ui/core
Advanced tools
Comparing version 0.10.6 to 0.11.0
@@ -1,1 +0,1 @@ | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Plugin=/*#__PURE__*/function(){function a(){_defineProperty(this,"config",void 0),this.config={}}var b=a.prototype;return b.resetConfig=function a(){return this.config={},this},b.configure=function c(a,b){return void 0===b&&(b=!1),this.config=b?a:_extends({},this.config,a),this},b.register=function a(){return this},a}();export{Plugin as default}; | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Plugin=/*#__PURE__*/function(){function a(){_defineProperty(this,"config",void 0),this.config={}}var b=a.prototype;return b.resetConfig=function resetConfig(){return this.config={},this},b.configure=function configure(a,b){return void 0===b&&(b=!1),this.config=b?a:_extends({},this.config,a),this},b.register=function register(){return this},a}();export{Plugin as default}; |
@@ -1,1 +0,1 @@ | ||
function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Preset=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"description",void 0),_defineProperty(this,"presets",void 0),_defineProperty(this,"plugins",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.description,f=void 0===e?"":e,g=b.presets,h=void 0===g?[]:g,i=b.plugins,j=void 0===i?[]:i;this.name=d,this.description=f,this.presets=h,this.plugins=j}var b=a.prototype;return b.register=function a(){return this.presets.forEach(function(a){a.register()}),this.plugins.forEach(function(a){a.register()}),this},a}();export{Preset as default}; | ||
function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Preset=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"description",void 0),_defineProperty(this,"presets",void 0),_defineProperty(this,"plugins",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.description,f=void 0===e?"":e,g=b.presets,h=void 0===g?[]:g,i=b.plugins,j=void 0===i?[]:i;this.name=d,this.description=f,this.presets=h,this.plugins=j}var b=a.prototype;return b.register=function register(){return this.presets.forEach(function(a){a.register()}),this.plugins.forEach(function(a){a.register()}),this},a}();export{Preset as default}; |
@@ -11,2 +11,2 @@ function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}/* eslint no-console: 0 */import{OverwritePolicy}from"../types";/** | ||
* both synchronous and asynchronous loaders. | ||
*/var Registry=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"overwritePolicy",void 0),_defineProperty(this,"items",void 0),_defineProperty(this,"promises",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.overwritePolicy,f=void 0===e?OverwritePolicy.ALLOW:e;this.name=d,this.overwritePolicy=f,this.items={},this.promises={}}var b=a.prototype;return b.clear=function a(){return this.items={},this.promises={},this},b.has=function c(a){var b=this.items[a];return null!==b&&void 0!==b},b.registerValue=function e(a,b){var c=this.items[a],d=this.has(a)&&("value"in c&&c.value!==b||"loader"in c);if(d)if(this.overwritePolicy===OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={value:b},delete this.promises[a]),this},b.registerLoader=function e(a,b){var c=this.items[a],d=this.has(a)&&("loader"in c&&c.loader!==b||"value"in c);if(d)if(this.overwritePolicy===OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={loader:b},delete this.promises[a]),this},b.get=function c(a){var b=this.items[a];return void 0===b?void 0:"loader"in b?b.loader&&b.loader():b.value},b.getAsPromise=function d(a){var b=this.promises[a];if(b)return b;var c=this.get(a);if(void 0!==c){var e=Promise.resolve(c);return this.promises[a]=e,e}return Promise.reject(new Error("Item with key \""+a+"\" is not registered."))},b.getMap=function b(){var a=this;return this.keys().reduce(function(b,c){var d=b;return d[c]=a.get(c),d},{})},b.getMapAsPromise=function c(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.reduce(function(a,c,d){var e=a;return e[b[d]]=c,e},{})})},b.keys=function a(){return Object.keys(this.items)},b.values=function b(){var a=this;return this.keys().map(function(b){return a.get(b)})},b.valuesAsPromise=function b(){var a=this;return Promise.all(this.keys().map(function(b){return a.getAsPromise(b)}))},b.entries=function b(){var a=this;return this.keys().map(function(b){return{key:b,value:a.get(b)}})},b.entriesAsPromise=function c(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.map(function(a,c){return{key:b[c],value:a}})})},b.remove=function b(a){return delete this.items[a],delete this.promises[a],this},a}();export{Registry as default}; | ||
*/var Registry=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"overwritePolicy",void 0),_defineProperty(this,"items",void 0),_defineProperty(this,"promises",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.overwritePolicy,f=void 0===e?OverwritePolicy.ALLOW:e;this.name=d,this.overwritePolicy=f,this.items={},this.promises={}}var b=a.prototype;return b.clear=function clear(){return this.items={},this.promises={},this},b.has=function has(a){var b=this.items[a];return null!==b&&void 0!==b},b.registerValue=function registerValue(a,b){var c=this.items[a],d=this.has(a)&&("value"in c&&c.value!==b||"loader"in c);if(d)if(this.overwritePolicy===OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={value:b},delete this.promises[a]),this},b.registerLoader=function registerLoader(a,b){var c=this.items[a],d=this.has(a)&&("loader"in c&&c.loader!==b||"value"in c);if(d)if(this.overwritePolicy===OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={loader:b},delete this.promises[a]),this},b.get=function get(a){var b=this.items[a];return void 0===b?void 0:"loader"in b?b.loader&&b.loader():b.value},b.getAsPromise=function getAsPromise(a){var b=this.promises[a];if(b)return b;var c=this.get(a);if(void 0!==c){var d=Promise.resolve(c);return this.promises[a]=d,d}return Promise.reject(new Error("Item with key \""+a+"\" is not registered."))},b.getMap=function getMap(){var a=this;return this.keys().reduce(function(b,c){var d=b;return d[c]=a.get(c),d},{})},b.getMapAsPromise=function getMapAsPromise(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.reduce(function(a,c,d){var e=a;return e[b[d]]=c,e},{})})},b.keys=function keys(){return Object.keys(this.items)},b.values=function values(){var a=this;return this.keys().map(function(b){return a.get(b)})},b.valuesAsPromise=function valuesAsPromise(){var a=this;return Promise.all(this.keys().map(function(b){return a.getAsPromise(b)}))},b.entries=function entries(){var a=this;return this.keys().map(function(b){return{key:b,value:a.get(b)}})},b.entriesAsPromise=function entriesAsPromise(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.map(function(a,c){return{key:b[c],value:a}})})},b.remove=function remove(a){return delete this.items[a],delete this.promises[a],this},a}();export{Registry as default}; |
@@ -1,1 +0,1 @@ | ||
function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}import Registry from"./Registry";var RegistryWithDefaultKey=/*#__PURE__*/function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"initialDefaultKey",void 0),_defineProperty(_assertThisInitialized(c),"defaultKey",void 0),_defineProperty(_assertThisInitialized(c),"setFirstItemAsDefault",void 0);var d=b,e=d.initialDefaultKey,f=void 0===e?void 0:e,g=d.setFirstItemAsDefault;return c.initialDefaultKey=f,c.defaultKey=f,c.setFirstItemAsDefault=void 0!==g&&g,c}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function b(){return a.prototype.clear.call(this),this.defaultKey=this.initialDefaultKey,this},c.get=function d(b){var c=b||this.defaultKey;return c?a.prototype.get.call(this,c):void 0},c.registerValue=function d(b,c){return a.prototype.registerValue.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.registerLoader=function d(b,c){return a.prototype.registerLoader.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.getDefaultKey=function a(){return this.defaultKey},c.setDefaultKey=function b(a){return this.defaultKey=a,this},c.clearDefaultKey=function a(){return this.defaultKey=void 0,this},b}(Registry);export{RegistryWithDefaultKey as default}; | ||
function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}import Registry from"./Registry";var RegistryWithDefaultKey=/*#__PURE__*/function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"initialDefaultKey",void 0),_defineProperty(_assertThisInitialized(c),"defaultKey",void 0),_defineProperty(_assertThisInitialized(c),"setFirstItemAsDefault",void 0);var d=b,e=d.initialDefaultKey,f=void 0===e?void 0:e,g=d.setFirstItemAsDefault;return c.initialDefaultKey=f,c.defaultKey=f,c.setFirstItemAsDefault=void 0!==g&&g,c}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function clear(){return a.prototype.clear.call(this),this.defaultKey=this.initialDefaultKey,this},c.get=function get(b){var c=b||this.defaultKey;return c?a.prototype.get.call(this,c):void 0},c.registerValue=function registerValue(b,c){return a.prototype.registerValue.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.registerLoader=function registerLoader(b,c){return a.prototype.registerLoader.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.getDefaultKey=function getDefaultKey(){return this.defaultKey},c.setDefaultKey=function setDefaultKey(a){return this.defaultKey=a,this},c.clearDefaultKey=function clearDefaultKey(){return this.defaultKey=void 0,this},b}(Registry);export{RegistryWithDefaultKey as default}; |
@@ -1,1 +0,1 @@ | ||
"use strict";exports.__esModule=!0,exports.default=void 0;function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Plugin=/*#__PURE__*/function(){function a(){_defineProperty(this,"config",void 0),this.config={}}var b=a.prototype;return b.resetConfig=function a(){return this.config={},this},b.configure=function c(a,b){return void 0===b&&(b=!1),this.config=b?a:_extends({},this.config,a),this},b.register=function a(){return this},a}();exports.default=Plugin; | ||
"use strict";exports.__esModule=!0,exports.default=void 0;function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Plugin=/*#__PURE__*/function(){function a(){_defineProperty(this,"config",void 0),this.config={}}var b=a.prototype;return b.resetConfig=function resetConfig(){return this.config={},this},b.configure=function configure(a,b){return void 0===b&&(b=!1),this.config=b?a:_extends({},this.config,a),this},b.register=function register(){return this},a}();exports.default=Plugin; |
@@ -1,1 +0,1 @@ | ||
"use strict";exports.__esModule=!0,exports.default=void 0;function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Preset=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"description",void 0),_defineProperty(this,"presets",void 0),_defineProperty(this,"plugins",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.description,f=void 0===e?"":e,g=b.presets,h=void 0===g?[]:g,i=b.plugins,j=void 0===i?[]:i;this.name=d,this.description=f,this.presets=h,this.plugins=j}var b=a.prototype;return b.register=function a(){return this.presets.forEach(function(a){a.register()}),this.plugins.forEach(function(a){a.register()}),this},a}();exports.default=Preset; | ||
"use strict";exports.__esModule=!0,exports.default=void 0;function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Preset=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"description",void 0),_defineProperty(this,"presets",void 0),_defineProperty(this,"plugins",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.description,f=void 0===e?"":e,g=b.presets,h=void 0===g?[]:g,i=b.plugins,j=void 0===i?[]:i;this.name=d,this.description=f,this.presets=h,this.plugins=j}var b=a.prototype;return b.register=function register(){return this.presets.forEach(function(a){a.register()}),this.plugins.forEach(function(a){a.register()}),this},a}();exports.default=Preset; |
@@ -11,2 +11,2 @@ "use strict";var _types=require("../types");exports.__esModule=!0,exports.default=void 0;function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}/** | ||
* both synchronous and asynchronous loaders. | ||
*/var Registry=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"overwritePolicy",void 0),_defineProperty(this,"items",void 0),_defineProperty(this,"promises",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.overwritePolicy,f=void 0===e?_types.OverwritePolicy.ALLOW:e;this.name=d,this.overwritePolicy=f,this.items={},this.promises={}}var b=a.prototype;return b.clear=function a(){return this.items={},this.promises={},this},b.has=function c(a){var b=this.items[a];return null!==b&&void 0!==b},b.registerValue=function e(a,b){var c=this.items[a],d=this.has(a)&&("value"in c&&c.value!==b||"loader"in c);if(d)if(this.overwritePolicy===_types.OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===_types.OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={value:b},delete this.promises[a]),this},b.registerLoader=function e(a,b){var c=this.items[a],d=this.has(a)&&("loader"in c&&c.loader!==b||"value"in c);if(d)if(this.overwritePolicy===_types.OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===_types.OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={loader:b},delete this.promises[a]),this},b.get=function c(a){var b=this.items[a];return void 0===b?void 0:"loader"in b?b.loader&&b.loader():b.value},b.getAsPromise=function d(a){var b=this.promises[a];if(b)return b;var c=this.get(a);if(void 0!==c){var e=Promise.resolve(c);return this.promises[a]=e,e}return Promise.reject(new Error("Item with key \""+a+"\" is not registered."))},b.getMap=function b(){var a=this;return this.keys().reduce(function(b,c){var d=b;return d[c]=a.get(c),d},{})},b.getMapAsPromise=function c(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.reduce(function(a,c,d){var e=a;return e[b[d]]=c,e},{})})},b.keys=function a(){return Object.keys(this.items)},b.values=function b(){var a=this;return this.keys().map(function(b){return a.get(b)})},b.valuesAsPromise=function b(){var a=this;return Promise.all(this.keys().map(function(b){return a.getAsPromise(b)}))},b.entries=function b(){var a=this;return this.keys().map(function(b){return{key:b,value:a.get(b)}})},b.entriesAsPromise=function c(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.map(function(a,c){return{key:b[c],value:a}})})},b.remove=function b(a){return delete this.items[a],delete this.promises[a],this},a}();exports.default=Registry; | ||
*/var Registry=/*#__PURE__*/function(){function a(a){void 0===a&&(a={}),_defineProperty(this,"name",void 0),_defineProperty(this,"overwritePolicy",void 0),_defineProperty(this,"items",void 0),_defineProperty(this,"promises",void 0);var b=a,c=b.name,d=void 0===c?"":c,e=b.overwritePolicy,f=void 0===e?_types.OverwritePolicy.ALLOW:e;this.name=d,this.overwritePolicy=f,this.items={},this.promises={}}var b=a.prototype;return b.clear=function clear(){return this.items={},this.promises={},this},b.has=function has(a){var b=this.items[a];return null!==b&&void 0!==b},b.registerValue=function registerValue(a,b){var c=this.items[a],d=this.has(a)&&("value"in c&&c.value!==b||"loader"in c);if(d)if(this.overwritePolicy===_types.OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===_types.OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={value:b},delete this.promises[a]),this},b.registerLoader=function registerLoader(a,b){var c=this.items[a],d=this.has(a)&&("loader"in c&&c.loader!==b||"value"in c);if(d)if(this.overwritePolicy===_types.OverwritePolicy.WARN)console.warn("Item with key \""+a+"\" already exists. You are assigning a new value.");else if(this.overwritePolicy===_types.OverwritePolicy.PROHIBIT)throw new Error("Item with key \""+a+"\" already exists. Cannot overwrite.");return(!c||d)&&(this.items[a]={loader:b},delete this.promises[a]),this},b.get=function get(a){var b=this.items[a];return void 0===b?void 0:"loader"in b?b.loader&&b.loader():b.value},b.getAsPromise=function getAsPromise(a){var b=this.promises[a];if(b)return b;var c=this.get(a);if(void 0!==c){var d=Promise.resolve(c);return this.promises[a]=d,d}return Promise.reject(new Error("Item with key \""+a+"\" is not registered."))},b.getMap=function getMap(){var a=this;return this.keys().reduce(function(b,c){var d=b;return d[c]=a.get(c),d},{})},b.getMapAsPromise=function getMapAsPromise(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.reduce(function(a,c,d){var e=a;return e[b[d]]=c,e},{})})},b.keys=function keys(){return Object.keys(this.items)},b.values=function values(){var a=this;return this.keys().map(function(b){return a.get(b)})},b.valuesAsPromise=function valuesAsPromise(){var a=this;return Promise.all(this.keys().map(function(b){return a.getAsPromise(b)}))},b.entries=function entries(){var a=this;return this.keys().map(function(b){return{key:b,value:a.get(b)}})},b.entriesAsPromise=function entriesAsPromise(){var a=this,b=this.keys();return Promise.all(b.map(function(b){return a.getAsPromise(b)})).then(function(a){return a.map(function(a,c){return{key:b[c],value:a}})})},b.remove=function remove(a){return delete this.items[a],delete this.promises[a],this},a}();exports.default=Registry; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _Registry2=_interopRequireDefault(require("./Registry"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var RegistryWithDefaultKey=/*#__PURE__*/function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"initialDefaultKey",void 0),_defineProperty(_assertThisInitialized(c),"defaultKey",void 0),_defineProperty(_assertThisInitialized(c),"setFirstItemAsDefault",void 0);var d=b,e=d.initialDefaultKey,f=void 0===e?void 0:e,g=d.setFirstItemAsDefault;return c.initialDefaultKey=f,c.defaultKey=f,c.setFirstItemAsDefault=void 0!==g&&g,c}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function b(){return a.prototype.clear.call(this),this.defaultKey=this.initialDefaultKey,this},c.get=function d(b){var c=b||this.defaultKey;return c?a.prototype.get.call(this,c):void 0},c.registerValue=function d(b,c){return a.prototype.registerValue.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.registerLoader=function d(b,c){return a.prototype.registerLoader.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.getDefaultKey=function a(){return this.defaultKey},c.setDefaultKey=function b(a){return this.defaultKey=a,this},c.clearDefaultKey=function a(){return this.defaultKey=void 0,this},b}(_Registry2.default);exports.default=RegistryWithDefaultKey; | ||
"use strict";var _Registry2=_interopRequireDefault(require("./Registry"));exports.__esModule=!0,exports.default=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var RegistryWithDefaultKey=/*#__PURE__*/function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"initialDefaultKey",void 0),_defineProperty(_assertThisInitialized(c),"defaultKey",void 0),_defineProperty(_assertThisInitialized(c),"setFirstItemAsDefault",void 0);var d=b,e=d.initialDefaultKey,f=void 0===e?void 0:e,g=d.setFirstItemAsDefault;return c.initialDefaultKey=f,c.defaultKey=f,c.setFirstItemAsDefault=void 0!==g&&g,c}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function clear(){return a.prototype.clear.call(this),this.defaultKey=this.initialDefaultKey,this},c.get=function get(b){var c=b||this.defaultKey;return c?a.prototype.get.call(this,c):void 0},c.registerValue=function registerValue(b,c){return a.prototype.registerValue.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.registerLoader=function registerLoader(b,c){return a.prototype.registerLoader.call(this,b,c),this.setFirstItemAsDefault&&!this.defaultKey&&(this.defaultKey=b),this},c.getDefaultKey=function getDefaultKey(){return this.defaultKey},c.setDefaultKey=function setDefaultKey(a){return this.defaultKey=a,this},c.clearDefaultKey=function clearDefaultKey(){return this.defaultKey=void 0,this},b}(_Registry2.default);exports.default=RegistryWithDefaultKey; |
{ | ||
"name": "@superset-ui/core", | ||
"version": "0.10.6", | ||
"version": "0.11.0", | ||
"description": "Superset UI core", | ||
@@ -33,4 +33,3 @@ "sideEffects": false, | ||
"lodash": "^4.17.11" | ||
}, | ||
"gitHead": "a2a5ce8dba2119a4d484f615538650ab86054437" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5
1
29454
35