@pluginjs/component
Advanced tools
Comparing version 0.7.17 to 0.8.2
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
"use strict";class Component{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.element=t,this.constructor.addInstance(this)}static of(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new this(...e)}destroy(){this.constructor.removeInstance(this),this.element=null}}module.exports=Component; | ||
"use strict";module.exports=class{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.element=t,this.constructor.addInstance(this)}static of(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return new this(...e)}destroy(){this.constructor.removeInstance(this),this.element=null}}; |
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/component v0.7.17 (https://pluginjs.com) | ||
* @pluginjs/component v0.8.2 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["@pluginjs/component"]=n()}(this,(function(){"use strict";function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,e)}function e(t,r,o){return(e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var o=[null];o.push.apply(o,e);var u=new(Function.bind.apply(t,o));return r&&n(u,r.prototype),u}).apply(null,arguments)}return function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),this.element=t,this.constructor.addInstance(this)}var r,o,u;return r=n,u=[{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e(this,n)}}],(o=[{key:"destroy",value:function(){this.constructor.removeInstance(this),this.element=null}}])&&t(r.prototype,o),u&&t(r,u),n}()})); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self)["@pluginjs/component"]=n()}(this,(function(){"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function n(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function e(t,n){return(e=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function o(t,n,u){return(o=r()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var u=new(Function.bind.apply(t,o));return r&&e(u,r.prototype),u}).apply(null,arguments)}return function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t(this,e),this.element=n,this.constructor.addInstance(this)}var r,u,c;return r=e,c=[{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return o(this,n)}}],(u=[{key:"destroy",value:function(){this.constructor.removeInstance(this),this.element=null}}])&&n(r.prototype,u),c&&n(r,c),e}()})); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.7.17", | ||
"version": "0.8.2", | ||
"category": "core", | ||
@@ -37,5 +37,7 @@ "main": "dist/component.common.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.7.5", | ||
"@pluginjs/browserslist-config": "^1.2.14", | ||
"@pluginjs/cli": "^0.7.15", | ||
"@babel/core": "^7.8.4", | ||
"@pluginjs/browserslist-config": "^1.3.0", | ||
"@pluginjs/cli": "^0.7.16", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-node-resolve": "^7.1.1", | ||
"babel-jest": "*", | ||
@@ -45,6 +47,4 @@ "jest": "*", | ||
"rename": "^1.0.4", | ||
"rollup": "*", | ||
"rollup": "^1.31.0", | ||
"rollup-plugin-babel": "*", | ||
"rollup-plugin-commonjs": "*", | ||
"rollup-plugin-node-resolve": "*", | ||
"rollup-plugin-terser": "*" | ||
@@ -67,4 +67,4 @@ }, | ||
], | ||
"gitHead": "45f59203aaa9720d1fb61f5e96cde6d73b4cf2c8", | ||
"gitHead": "b723884335c3cdfd997b4f553ec4259fa7013b6f", | ||
"title": "Plugin" | ||
} |
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
12505