get-prototype-of-x
Advanced tools
Comparing version 2.0.18 to 2.0.19
@@ -25,29 +25,25 @@ import isFunction from 'is-function-x'; | ||
var patchedGetPrototypeOf = function patchedGetPrototypeOf() { | ||
return function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(toObject(obj)); | ||
}; | ||
var patchedGetPrototypeOf = function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(toObject(obj)); | ||
}; | ||
export var implementation = function implementation() { | ||
return function getPrototypeOf(obj) { | ||
var object = toObject(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
export var implementation = function getPrototypeOf(obj) { | ||
var object = toObject(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
var proto = object.__proto__; | ||
var proto = object.__proto__; | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (isFunction(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (isFunction(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
return null; | ||
}; | ||
return null; | ||
}; | ||
@@ -63,5 +59,5 @@ /** | ||
var gpo = isWorking ? patchedGetPrototypeOf() : implementation(); | ||
var gpo = isWorking ? patchedGetPrototypeOf : implementation; | ||
export default gpo; | ||
//# sourceMappingURL=get-prototype-of-x.esm.js.map |
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-31T22:34:16.757Z", | ||
"date": "2019-08-05T18:38:41.025Z", | ||
"describe": "", | ||
"description": "Sham for Object.getPrototypeOf", | ||
"file": "get-prototype-of-x.js", | ||
"hash": "2598bd7e6fa2abf869f5", | ||
"hash": "69c6c477fc7483fa7e89", | ||
"license": "MIT", | ||
"version": "2.0.18" | ||
"version": "2.0.19" | ||
} | ||
@@ -1013,3 +1013,3 @@ */ | ||
// CONCATENATED MODULE: ./dist/get-prototype-of-x.esm.js | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implementation", function() { return get_prototype_of_x_esm_implementation; }); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "implementation", function() { return implementation; }); | ||
@@ -1039,29 +1039,25 @@ | ||
var get_prototype_of_x_esm_patchedGetPrototypeOf = function patchedGetPrototypeOf() { | ||
return function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(to_object_x_esm(obj)); | ||
}; | ||
var patchedGetPrototypeOf = function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(to_object_x_esm(obj)); | ||
}; | ||
var get_prototype_of_x_esm_implementation = function implementation() { | ||
return function getPrototypeOf(obj) { | ||
var object = to_object_x_esm(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
var implementation = function getPrototypeOf(obj) { | ||
var object = to_object_x_esm(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
var proto = object.__proto__; | ||
var proto = object.__proto__; | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (is_function_x_esm(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (is_function_x_esm(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
return null; | ||
}; | ||
return null; | ||
}; | ||
@@ -1077,3 +1073,3 @@ /** | ||
var gpo = isWorking ? get_prototype_of_x_esm_patchedGetPrototypeOf() : get_prototype_of_x_esm_implementation(); | ||
var gpo = isWorking ? patchedGetPrototypeOf : implementation; | ||
/* harmony default export */ var get_prototype_of_x_esm = __webpack_exports__["default"] = (gpo); | ||
@@ -1080,0 +1076,0 @@ |
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2017", | ||
"date": "2019-07-31T22:34:16.757Z", | ||
"date": "2019-08-05T18:38:41.025Z", | ||
"describe": "", | ||
"description": "Sham for Object.getPrototypeOf", | ||
"file": "get-prototype-of-x.min.js", | ||
"hash": "6f04189151a24cc5be9c", | ||
"hash": "16fc205beefd303e8d77", | ||
"license": "MIT", | ||
"version": "2.0.18" | ||
"version": "2.0.19" | ||
} | ||
@@ -21,3 +21,3 @@ */ | ||
* Released under the MIT License. | ||
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(4);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";n.r(t);var r=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{threw:!1,value:e.apply(this,n)}}catch(e){return{threw:!0,value:e}}},o=function(e){return!!e},s={}.toString,c=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":s.call(e)},i=n(0),u=n.n(i);for(var f=r(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),a=!1===f.threw&&!0===f.value&&u()(Symbol.toStringTag),p=n(1),l=n.n(p),d=function(e){return null==e},y=function(e){if(d(e))throw new TypeError("Cannot call method on ".concat(e));return e},b="Cannot convert a Symbol value to a string",g=b.constructor,m=function(e){if(u()(e))throw new TypeError(b);return g(e)},v=function(e){return m(y(e))},w=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:""},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],h="",j=w.length,O=0;O<j;O+=1)w[O].es2016&&w[O].string,w[O].es2018&&(h+=w[O].string);var S=h,x=new(0,/none/.constructor)("^[".concat(S,"]+")),P="".replace,F=function(e){return P.call(v(e),x,"")},T=new(0,/none/.constructor)("[".concat(S,"]+$")),_="".replace,E=function(e){return _.call(v(e),T,"")},M=function(e){return F(E(e))},k=new(0,/none/.constructor)("[".concat(S,"]+"),"g"),N=" ".replace,C=function(e){return N.call(M(e),k," ")},$=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,q="".replace,A=function(e,t){return q.call(v(e),$,arguments.length>1?m(t):"")},D=r.constructor,I=r.toString,L=/^class /,X=L.test,B=!1===r(function(){return D('"use strict"; return class My {};')()}).threw,G=function(e){return X.call(L,C(A(I.call(e)," ")))},H=function(e){var t=r(G,e);return!1===t.threw&&t.value},R=function(e,t){return!l()(e)&&(a?function(e,t){return!(B&&!1===t&&H(e)||!1!==r.call(e,I).threw)}(e,o(t)):(!B||!1!==o(t)||!H(e))&&function(e){var t=c(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},U={}.constructor,V=function(e){return U(y(e))};n.d(t,"implementation",function(){return Q});var z={}.constructor,J=z.getPrototypeOf,K=o(J)&&function(){var e={},t=function(){};t.prototype=e;var n=new t;try{return J(n)===e}catch(e){return!1}}(),Q=function(){return function(e){var t=V(e),n=t.__proto__;return n||null===n?n:R(t.constructor)?t.constructor.prototype:t instanceof z?z.prototype:null}},W=K?function(e){return J(V(e))}:Q();t.default=W}])}); | ||
*/e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(4);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";n.r(t);var r=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{threw:!1,value:e.apply(this,n)}}catch(e){return{threw:!0,value:e}}},o=function(e){return!!e},s={}.toString,c=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":s.call(e)},i=n(0),u=n.n(i);for(var f=r(function(){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),"function"==typeof Symbol&&u()(Symbol(""))}.bind(void 0)),a=!1===f.threw&&!0===f.value&&u()(Symbol.toStringTag),p=n(1),l=n.n(p),d=function(e){return null==e},y=function(e){if(d(e))throw new TypeError("Cannot call method on ".concat(e));return e},b="Cannot convert a Symbol value to a string",g=b.constructor,m=function(e){if(u()(e))throw new TypeError(b);return g(e)},v=function(e){return m(y(e))},w=[{code:9,description:"Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\t"},{code:10,description:"Line Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\n"},{code:11,description:"Vertical Tab",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\v"},{code:12,description:"Form Feed",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\f"},{code:13,description:"Carriage Return",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\r"},{code:32,description:"Space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:160,description:"No-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:5760,description:"Ogham space mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:6158,description:"Mongolian vowel separator",es5:!0,es2015:!0,es2016:!0,es2017:!1,es2018:!1,string:""},{code:8192,description:"En quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8193,description:"Em quad",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8194,description:"En space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8195,description:"Em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8196,description:"Three-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8197,description:"Four-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8198,description:"Six-per-em space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8199,description:"Figure space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8200,description:"Punctuation space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8201,description:"Thin space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8202,description:"Hair space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8232,description:"Line separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2028"},{code:8233,description:"Paragraph separator",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\u2029"},{code:8239,description:"Narrow no-break space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:8287,description:"Medium mathematical space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:12288,description:"Ideographic space",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:" "},{code:65279,description:"Byte Order Mark",es5:!0,es2015:!0,es2016:!0,es2017:!0,es2018:!0,string:"\ufeff"}],h="",j=w.length,O=0;O<j;O+=1)w[O].es2016&&w[O].string,w[O].es2018&&(h+=w[O].string);var S=h,x=new(0,/none/.constructor)("^[".concat(S,"]+")),P="".replace,F=function(e){return P.call(v(e),x,"")},T=new(0,/none/.constructor)("[".concat(S,"]+$")),_="".replace,E=function(e){return _.call(v(e),T,"")},M=function(e){return F(E(e))},k=new(0,/none/.constructor)("[".concat(S,"]+"),"g"),N=" ".replace,C=function(e){return N.call(M(e),k," ")},$=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,q="".replace,A=function(e,t){return q.call(v(e),$,arguments.length>1?m(t):"")},D=r.constructor,I=r.toString,L=/^class /,X=L.test,B=!1===r(function(){return D('"use strict"; return class My {};')()}).threw,G=function(e){return X.call(L,C(A(I.call(e)," ")))},H=function(e){var t=r(G,e);return!1===t.threw&&t.value},R=function(e,t){return!l()(e)&&(a?function(e,t){return!(B&&!1===t&&H(e)||!1!==r.call(e,I).threw)}(e,o(t)):(!B||!1!==o(t)||!H(e))&&function(e){var t=c(e);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t}(e))},U={}.constructor,V=function(e){return U(y(e))};n.d(t,"implementation",function(){return Q});var z={}.constructor,J=z.getPrototypeOf,K=o(J)&&function(){var e={},t=function(){};t.prototype=e;var n=new t;try{return J(n)===e}catch(e){return!1}}(),Q=function(e){var t=V(e),n=t.__proto__;return n||null===n?n:R(t.constructor)?t.constructor.prototype:t instanceof z?z.prototype:null},W=K?function(e){return J(V(e))}:Q;t.default=W}])}); | ||
//# sourceMappingURL=get-prototype-of-x.min.js.map |
{ | ||
"name": "get-prototype-of-x", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"description": "Sham for Object.getPrototypeOf", | ||
@@ -66,3 +66,3 @@ "homepage": "https://github.com/Xotic750/get-prototype-of-x", | ||
"@types/jest": "^24.0.16", | ||
"@types/node": "^12.6.8", | ||
"@types/node": "^12.6.9", | ||
"@xotic750/eslint-config-recommended": "^1.0.5", | ||
@@ -108,3 +108,3 @@ "babel-core": "^7.0.0-0", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.38.0", | ||
"webpack": "^4.39.1", | ||
"webpack-bundle-analyzer": "^3.4.1", | ||
@@ -111,0 +111,0 @@ "webpack-cli": "^3.3.6", |
@@ -25,28 +25,24 @@ import isFunction from 'is-function-x'; | ||
const patchedGetPrototypeOf = function patchedGetPrototypeOf() { | ||
return function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(toObject(obj)); | ||
}; | ||
const patchedGetPrototypeOf = function getPrototypeOf(obj) { | ||
return nativeGetPrototypeOf(toObject(obj)); | ||
}; | ||
export const implementation = function implementation() { | ||
return function getPrototypeOf(obj) { | ||
const object = toObject(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
const proto = object.__proto__; | ||
export const implementation = function getPrototypeOf(obj) { | ||
const object = toObject(obj); | ||
/* eslint-disable-next-line no-proto */ | ||
const proto = object.__proto__; | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (proto || proto === null) { | ||
return proto; | ||
} | ||
if (isFunction(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (isFunction(object.constructor)) { | ||
return object.constructor.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
if (object instanceof ObjectCtr) { | ||
return ObjectCtr.prototype; | ||
} | ||
return null; | ||
}; | ||
return null; | ||
}; | ||
@@ -62,4 +58,4 @@ | ||
*/ | ||
const gpo = isWorking ? patchedGetPrototypeOf() : implementation(); | ||
const gpo = isWorking ? patchedGetPrototypeOf : implementation; | ||
export default gpo; |
Sorry, the diff of this file is not supported yet
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
129989
1043