@pluginjs/component
Advanced tools
Comparing version 0.8.7 to 0.8.8
/*! | ||
* @pluginjs/component v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -5,0 +5,0 @@ */ |
/*! | ||
* @pluginjs/component v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
"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.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -32,2 +32,2 @@ */ | ||
export default Component; | ||
export { Component as default }; |
/*! | ||
* @pluginjs/component v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
export default 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),n=0;n<t;n++)e[n]=arguments[n];return new this(...e)}destroy(){this.constructor.removeInstance(this),this.element=null}} | ||
class t{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}}export{t as default}; |
/*! | ||
* @pluginjs/component v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
@@ -9,4 +9,4 @@ */ | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global['@pluginjs/component'] = factory()); | ||
}(this, (function () { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["@pluginjs/component"] = factory()); | ||
})(this, (function () { 'use strict'; | ||
@@ -32,2 +32,5 @@ function _classCallCheck(instance, Constructor) { | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
@@ -111,2 +114,2 @@ } | ||
}))); | ||
})); |
/*! | ||
* @pluginjs/component v0.8.7 (https://pluginjs.com) | ||
* Copyright 2021 Creation Studio Limited | ||
* @pluginjs/component v0.8.8 (https://pluginjs.com) | ||
* Copyright 2022 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@pluginjs/component"]=e()}(this,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,e,u){return(r=o()?Reflect.construct:function(t,e,o){var r=[null];r.push.apply(r,e);var u=new(Function.bind.apply(t,r));return o&&n(u,o.prototype),u}).apply(null,arguments)}return function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t(this,n),this.element=e,this.constructor.addInstance(this)}var o,u,c;return o=n,c=[{key:"of",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r(this,e)}}],(u=[{key:"destroy",value:function(){this.constructor.removeInstance(this),this.element=null}}])&&e(o.prototype,u),c&&e(o,c),n}()})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@pluginjs/component"]=t()}(this,(function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,t,u){return r=o()?Reflect.construct:function(e,t,o){var r=[null];r.push.apply(r,t);var u=new(Function.bind.apply(e,r));return o&&n(u,o.prototype),u},r.apply(null,arguments)}var u=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e(this,n),this.element=t,this.constructor.addInstance(this)}var o,u,c;return o=n,c=[{key:"of",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r(this,t)}}],(u=[{key:"destroy",value:function(){this.constructor.removeInstance(this),this.element=null}}])&&t(o.prototype,u),c&&t(o,c),Object.defineProperty(o,"prototype",{writable:!1}),n}();return u})); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.8.7", | ||
"version": "0.8.8", | ||
"category": "core", | ||
@@ -37,14 +37,14 @@ "main": "dist/component.common.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.12.10", | ||
"@pluginjs/browserslist-config": "^1.3.2", | ||
"@pluginjs/cli": "^0.8.4", | ||
"@rollup/plugin-commonjs": "^17.1.0", | ||
"@rollup/plugin-node-resolve": "^11.1.0", | ||
"babel-jest": "*", | ||
"jest": "*", | ||
"jest-extended": "*", | ||
"@babel/core": "^7.16.7", | ||
"@pluginjs/browserslist-config": "^1.3.3", | ||
"@pluginjs/cli": "^0.8.5", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"babel-jest": "^27.4.6", | ||
"jest": "^27.4.7", | ||
"jest-extended": "^1.2.0", | ||
"rename": "^1.0.4", | ||
"rollup": "^2.38.1", | ||
"rollup-plugin-babel": "*", | ||
"rollup-plugin-terser": "*" | ||
"rollup": "^2.63.0", | ||
"rollup-plugin-terser": "^7.0.2" | ||
}, | ||
@@ -51,0 +51,0 @@ "engines": { |
@@ -93,2 +93,2 @@ # Component | ||
Copyright (C) 2018 [Creation Studio Limited](creationstudio.com). | ||
Copyright (C) 2022 [Creation Studio Limited](creationstudio.com). |
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
12792
192