@pluginjs/global-component
Advanced tools
Comparing version 0.8.3 to 0.8.4
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License. |
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
@@ -12,3 +12,3 @@ * Released under the GPL-3.0 License. | ||
Component = Component && Component.hasOwnProperty('default') ? Component['default'] : Component; | ||
Component = Component && Object.prototype.hasOwnProperty.call(Component, 'default') ? Component['default'] : Component; | ||
@@ -52,2 +52,15 @@ function _classCallCheck(instance, Constructor) { | ||
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
function _assertThisInitialized(self) { | ||
@@ -69,11 +82,30 @@ if (self === void 0) { | ||
var GlobalComponent = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
function _createSuper(Derived) { | ||
var hasNativeReflectConstruct = _isNativeReflectConstruct(); | ||
return function () { | ||
var Super = _getPrototypeOf(Derived), | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
var NewTarget = _getPrototypeOf(this).constructor; | ||
result = Reflect.construct(Super, arguments, NewTarget); | ||
} else { | ||
result = Super.apply(this, arguments); | ||
} | ||
return _possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
var GlobalComponent = /*#__PURE__*/function (_Component) { | ||
_inherits(GlobalComponent, _Component); | ||
var _super = _createSuper(GlobalComponent); | ||
function GlobalComponent() { | ||
_classCallCheck(this, GlobalComponent); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(GlobalComponent).call(this, window.document.documentElement)); | ||
return _super.call(this, window.document.documentElement); | ||
} | ||
@@ -80,0 +112,0 @@ |
/*! | ||
* @pluginjs/global-component v0.8.3 (https://pluginjs.com) | ||
* @pluginjs/global-component v0.8.4 (https://pluginjs.com) | ||
* Copyright 2020 Creation Studio Limited | ||
* Released under the GPL-3.0 License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@pluginjs/component")):"function"==typeof define&&define.amd?define(["@pluginjs/component"],e):(t=t||self)["@pluginjs/global-component"]=e(t["@pluginjs/component"])}(this,(function(t){"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}return function(t){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),o(this,e(r).call(this,window.document.documentElement))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(r,t),r}(t=t&&t.hasOwnProperty("default")?t.default:t)})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@pluginjs/component")):"function"==typeof define&&define.amd?define(["@pluginjs/component"],e):(t=t||self)["@pluginjs/global-component"]=e(t["@pluginjs/component"])}(this,(function(t){"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function r(t){var n=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}}();return function(){var r,c=e(t);if(n){var u=e(this).constructor;r=Reflect.construct(c,arguments,u)}else r=c.apply(this,arguments);return o(this,r)}}return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(o,t);var e=r(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),e.call(this,window.document.documentElement)}return o}(t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)})); |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"category": "core", | ||
@@ -37,10 +37,10 @@ "main": "dist/global-plugin.common.js", | ||
"dependencies": { | ||
"@pluginjs/component": "^0.8.3" | ||
"@pluginjs/component": "^0.8.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.8.4", | ||
"@pluginjs/browserslist-config": "^1.3.0", | ||
"@pluginjs/cli": "^0.8.0", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-node-resolve": "^7.1.1", | ||
"@babel/core": "^7.10.2", | ||
"@pluginjs/browserslist-config": "^1.3.1", | ||
"@pluginjs/cli": "^0.8.1", | ||
"@rollup/plugin-commonjs": "^12.0.0", | ||
"@rollup/plugin-node-resolve": "^8.0.0", | ||
"babel-jest": "*", | ||
@@ -50,3 +50,3 @@ "jest": "*", | ||
"rename": "^1.0.4", | ||
"rollup": "^1.31.0", | ||
"rollup": "^2.12.0", | ||
"rollup-plugin-babel": "*", | ||
@@ -70,4 +70,4 @@ "rollup-plugin-terser": "*" | ||
], | ||
"gitHead": "02c3afa7042f2cdee5fd639d3646320bd14e3587", | ||
"gitHead": "c7a30bcc922362e40dbc35af4290a259c9b29566", | ||
"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
10940
146
Updated@pluginjs/component@^0.8.4