has-to-string-tag-x
Advanced tools
Comparing version 2.0.23 to 2.1.0
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-31T22:00:34.793Z", | ||
"date": "2019-08-14T14:42:28.618Z", | ||
"describe": "", | ||
"description": "Tests if ES6 @@toStringTag is supported.", | ||
"file": "has-to-string-tag-x.js", | ||
"hash": "54be3c5a928b3ac29e78", | ||
"hash": "cabf2b6b9507c43cde31", | ||
"license": "MIT", | ||
"version": "2.0.23" | ||
"version": "2.1.0" | ||
} | ||
@@ -27,15 +27,44 @@ */ | ||
if (typeof self !== 'undefined') { | ||
return self; | ||
} | ||
var ObjectCtr = {}.constructor; | ||
var objectPrototype = ObjectCtr.prototype; | ||
var defineProperty = ObjectCtr.defineProperty; | ||
var $globalThis; | ||
var getGlobalFallback = function() { | ||
if (typeof self !== 'undefined') { | ||
return self; | ||
} | ||
if (typeof window !== 'undefined') { | ||
return window; | ||
} | ||
if (typeof window !== 'undefined') { | ||
return window; | ||
} | ||
if (typeof global !== 'undefined') { | ||
return global; | ||
if (typeof global !== 'undefined') { | ||
return global; | ||
} | ||
return void 0; | ||
}; | ||
var returnThis = function() { | ||
return this; | ||
}; | ||
try { | ||
if (defineProperty) { | ||
defineProperty(objectPrototype, '$$globalThis$$', { | ||
get: returnThis, | ||
configurable: true | ||
}); | ||
} else { | ||
objectPrototype.__defineGetter__('$$globalThis$$', returnThis); | ||
} | ||
$globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$; | ||
delete objectPrototype.$$globalThis$$; | ||
return $globalThis; | ||
} catch (error) { | ||
return getGlobalFallback(); | ||
} | ||
return Function('return this')(); | ||
}()), function() { | ||
@@ -42,0 +71,0 @@ return /******/ (function(modules) { // webpackBootstrap |
@@ -5,12 +5,12 @@ /*! | ||
"copywrite": "Copyright (c) 2015-2017", | ||
"date": "2019-07-31T22:00:34.793Z", | ||
"date": "2019-08-14T14:42:28.618Z", | ||
"describe": "", | ||
"description": "Tests if ES6 @@toStringTag is supported.", | ||
"file": "has-to-string-tag-x.min.js", | ||
"hash": "4b14164fe4b2401dd4ae", | ||
"hash": "6e2fb6abbb99f67ffab0", | ||
"license": "MIT", | ||
"version": "2.0.23" | ||
"version": "2.1.0" | ||
} | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.hasToStringTagX=e():t.hasToStringTagX=e()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){"use strict";var n=Object.prototype.toString;if(r(1)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";(function(e){var n=e.Symbol,o=r(3);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(2))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";r.r(e);var n=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{threw:!1,value:t.apply(this,r)}}catch(t){return{threw:!0,value:t}}},o=r(0),u=r.n(o);var i=n(function(){return function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),f=!1===i.threw&&!0===i.value;e.default=f&&u()(Symbol.toStringTag)}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.hasToStringTagX=e():t.hasToStringTagX=e()}(function(){"use strict";var t,e={}.constructor,r=e.prototype,n=e.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},i=function(){return this};try{return n?n(r,"$$globalThis$$",{get:i,configurable:!0}):r.__defineGetter__("$$globalThis$$",i),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){"use strict";var n=Object.prototype.toString;if(r(1)()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&i.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";(function(e){var n=e.Symbol,o=r(3);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(2))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(t,e,r){"use strict";r.r(e);var n=function(t){try{for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return{threw:!1,value:t.apply(this,r)}}catch(t){return{threw:!0,value:t}}},o=r(0),i=r.n(o);var u=n(function(){return function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&i()(Symbol(""))}.bind(void 0)),f=!1===u.threw&&!0===u.value;e.default=f&&i()(Symbol.toStringTag)}])}); | ||
//# sourceMappingURL=has-to-string-tag-x.min.js.map |
{ | ||
"name": "has-to-string-tag-x", | ||
"version": "2.0.23", | ||
"version": "2.1.0", | ||
"description": "Tests if ES6 @@toStringTag is supported.", | ||
@@ -42,2 +42,3 @@ "homepage": "https://github.com/Xotic750/has-to-string-tag-x", | ||
"test:ci": "npm run test -- --ci --maxWorkers=2", | ||
"test:ci-coveralls": "npm run test:ci -- --coverage --coverageReporters=text-lcov | coveralls", | ||
"test:coverage": "npm run test -- --coverage" | ||
@@ -54,3 +55,3 @@ }, | ||
"dependencies": { | ||
"has-symbol-support-x": "^2.0.22", | ||
"has-symbol-support-x": "^2.1.0", | ||
"is-symbol": "^1.0.2" | ||
@@ -66,5 +67,6 @@ }, | ||
"@babel/runtime": "^7.5.5", | ||
"@types/jest": "^24.0.16", | ||
"@types/node": "^12.6.8", | ||
"@xotic750/eslint-config-recommended": "^1.0.5", | ||
"@types/jest": "^24.0.17", | ||
"@types/node": "^12.7.1", | ||
"@types/webpack": "^4.32.1", | ||
"@xotic750/eslint-config-recommended": "^1.1.2", | ||
"babel-core": "^7.0.0-0", | ||
@@ -74,5 +76,6 @@ "babel-eslint": "^10.0.2", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"caniuse-lite": "^1.0.30000988", | ||
"caniuse-lite": "^1.0.30000989", | ||
"coveralls": "^3.0.6", | ||
"cross-env": "^5.2.0", | ||
"eslint": "=5.16.0", | ||
"eslint": "^6.1.0", | ||
"eslint-friendly-formatter": "^4.0.1", | ||
@@ -87,6 +90,6 @@ "eslint-import-resolver-webpack": "^0.11.1", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^22.14.1", | ||
"eslint-plugin-jest": "^22.15.1", | ||
"eslint-plugin-jsdoc": "^15.8.0", | ||
"eslint-plugin-json": "^1.4.0", | ||
"eslint-plugin-lodash": "^5.1.0", | ||
"eslint-plugin-lodash": "^6.0.0", | ||
"eslint-plugin-no-use-extend-native": "^0.4.1", | ||
@@ -111,5 +114,6 @@ "eslint-plugin-prefer-object-spread": "^1.2.1", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.38.0", | ||
"webpack": "^4.39.1", | ||
"webpack-bundle-analyzer": "^3.4.1", | ||
"webpack-cli": "^3.3.6", | ||
"webpack-global-object-x": "^1.0.0", | ||
"webpack-merge": "^4.2.1" | ||
@@ -116,0 +120,0 @@ }, |
@@ -38,2 +38,8 @@ <a | ||
</a> | ||
<a | ||
href="https://coveralls.io/github/Xotic750/has-to-string-tag-x?branch=master" | ||
title="Coverage Status"> | ||
<img src="https://coveralls.io/repos/github/Xotic750/has-to-string-tag-x/badge.svg?branch=master" | ||
alt="Coverage Status" height="18"> | ||
</a> | ||
@@ -40,0 +46,0 @@ <a name="module_has-to-string-tag-x"></a> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
51577
365
61
56
Updatedhas-symbol-support-x@^2.1.0