has-reflect-support-x
Advanced tools
Comparing version 2.0.24 to 2.1.0
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-31T21:40:48.104Z", | ||
"date": "2019-08-14T14:22:41.306Z", | ||
"describe": "", | ||
"description": "Tests if ES6 Reflect is supported.", | ||
"file": "has-reflect-support-x.js", | ||
"hash": "ad807a8c6059da73f442", | ||
"hash": "86c2368f185d52dda505", | ||
"license": "MIT", | ||
"version": "2.0.24" | ||
"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) 2017", | ||
"date": "2019-07-31T21:40:48.104Z", | ||
"date": "2019-08-14T14:22:41.306Z", | ||
"describe": "", | ||
"description": "Tests if ES6 Reflect is supported.", | ||
"file": "has-reflect-support-x.min.js", | ||
"hash": "a2f71a73daadd7cd68cb", | ||
"hash": "acb123d551c36c8402b7", | ||
"license": "MIT", | ||
"version": "2.0.24" | ||
"version": "2.1.0" | ||
} | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.hasReflectSupportX=t():e.hasReflectSupportX=t()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function o(e){return(o="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)}n.r(t),t.default="object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&null!==Reflect}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.hasReflectSupportX=t():e.hasReflectSupportX=t()}(function(){"use strict";var e,t={}.constructor,o=t.prototype,n=t.defineProperty,r=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return n?n(o,"$$globalThis$$",{get:u,configurable:!0}):o.__defineGetter__("$$globalThis$$",u),e="undefined"==typeof $$globalThis$$?r():$$globalThis$$,delete o.$$globalThis$$,e}catch(e){return r()}}(),function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){"use strict";function n(e){return(n="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)}o.r(t),t.default="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&null!==Reflect}])}); | ||
//# sourceMappingURL=has-reflect-support-x.min.js.map |
{ | ||
"name": "has-reflect-support-x", | ||
"version": "2.0.24", | ||
"version": "2.1.0", | ||
"description": "Tests if ES6 Reflect is supported.", | ||
@@ -42,2 +42,3 @@ "homepage": "https://github.com/Xotic750/has-reflect-support-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" | ||
@@ -62,5 +63,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", | ||
@@ -70,5 +72,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", | ||
@@ -83,6 +86,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", | ||
@@ -107,5 +110,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" | ||
@@ -112,0 +116,0 @@ }, |
@@ -38,2 +38,8 @@ <a | ||
</a> | ||
<a | ||
href="https://coveralls.io/github/Xotic750/has-reflect-support-x?branch=master" | ||
title="Coverage Status"> | ||
<img src="https://coveralls.io/repos/github/Xotic750/has-reflect-support-x/badge.svg?branch=master" | ||
alt="Coverage Status" height="18"> | ||
</a> | ||
@@ -40,0 +46,0 @@ <a name="module_has-reflect-support-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
29912
204
59
56