Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superset-ui/core

Package Overview
Dependencies
Maintainers
9
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superset-ui/core - npm Package Compare versions

Comparing version 0.11.5 to 0.11.9

2

esm/models/Plugin.js

@@ -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.11.5",
"version": "0.11.9",
"description": "Superset UI core",

@@ -29,3 +29,3 @@ "sideEffects": false,

"devDependencies": {
"jest-mock-console": "^0.4.0"
"jest-mock-console": "^1.0.0"
},

@@ -35,3 +35,3 @@ "dependencies": {

},
"gitHead": "c25a55ff4b484c139c4623d1ed2925acfb5a1d7f"
"gitHead": "e1b45d00ef457ebabac0454a68dbcb666019e698"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc