@govflanders/vl-widget-module
Advanced tools
Comparing version 1.2.2 to 1.3.1
@@ -1,1 +0,1 @@ | ||
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0});var DefaultModuleManager=function(){function e(e,t){this.installedModules=[],this.installerPromises=[],this.moduleLoader=e,this.moduleRuntime=t}return e.prototype.resolveModuleInstall=function(e){var t=null;return e&&"object"===_typeof(e)&&("object"===_typeof(e.default)&&"function"==typeof e.default.install?t=e.default.install:"function"==typeof e.install&&(t=e.install)),t},e.prototype.getModuleLoader=function(){return this.moduleLoader},e.prototype.getModuleRuntime=function(){return this.moduleRuntime},e.prototype.install=function(o){var l=this,e=null,n=this.resolveModuleInstall(o);if(null!==n){var t=this.installedModules.indexOf(o);-1===t&&(t=this.installedModules.push(o)-1,this.installerPromises[t]=new Promise(function(e,t){Promise.resolve(n.call(o,l.getModuleRuntime())).then(function(){e(o)}).catch(t)})),e=this.installerPromises[t]}else e=Promise.resolve(o);return e},e.prototype.import=function(e){return this.getModuleLoader().import(e)},e.prototype.resolve=function(e){return this.getModuleLoader().resolve(e)},e}();exports.DefaultModuleManager=DefaultModuleManager; | ||
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0});var DefaultModuleManager=function(){function e(e,t){this.installedModules=[],this.installerPromises=[],this.moduleLoader=e,this.moduleRuntime=t}return e.prototype.resolveModuleInstall=function(e){var t=null;return e&&"object"===_typeof(e)&&("object"===_typeof(e.default)&&"function"==typeof e.default.install?t=e.default.install:"function"==typeof e.install&&(t=e.install)),t},e.prototype.getModuleLoader=function(){return this.moduleLoader},e.prototype.getModuleRuntime=function(){return this.moduleRuntime},e.prototype.install=function(e){var t=this,o=null,l=this.resolveModuleInstall(e);if(null!==l){var n=this.installedModules.indexOf(e);-1===n&&(n=this.installedModules.push(e)-1,this.installerPromises[n]=new Promise(function(o,n){Promise.resolve(l.call(e,t.getModuleRuntime())).then(function(){o(e)}).catch(n)})),o=this.installerPromises[n]}else o=Promise.resolve(e);return o},e.prototype.import=function(e){return this.getModuleLoader().import(e)},e.prototype.resolve=function(e){return this.getModuleLoader().resolve(e)},e}();exports.DefaultModuleManager=DefaultModuleManager; |
{ | ||
"name": "@govflanders/vl-widget-module", | ||
"version": "1.2.2", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
@@ -24,3 +24,4 @@ "contributors": [ | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"typings": "types/index.d.ts" | ||
} |
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
8726
9
204