Comparing version 0.3.2 to 0.3.3
@@ -1,1 +0,1 @@ | ||
module.exports=function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r){e.exports=function(e={},{setPrototype:r=!1,invokeConstructors:t=!0,copyNonEnumerables:o=!1,copySymbols:n=!1,copyGettersSetters:i=!1,allowCircularReferences:s=!1,discardErrorObjects:c=!0}={}){if(!e||"object"!=typeof e)throw new TypeError("TypeError: invalid 'obj' argument's type");if(e instanceof Number||e instanceof String||e instanceof Boolean)return null;if(e instanceof Promise)return e;if(e instanceof Error){if(c)return null;throw new TypeError("TypeError: cannot copy Error objects")}if(e instanceof RegExp){const{source:r,flags:t,lastIndex:o}=e,n=new RegExp(r,t);return n.lastIndex=o,n}if(e instanceof Date)return new Date(e.getTime());if("boolean"!=typeof r)throw new TypeError("TypeError: invalid 'setPrototype' flag's type");if("boolean"!=typeof t)throw new TypeError("TypeError: invalid 'invokeConstructors' flag's type");if("boolean"!=typeof o)throw new TypeError("TypeError: invalid 'copyNonEnumerables' flag's type");if("boolean"!=typeof n)throw new TypeError("TypeError: invalid 'copySymbols' flag's type");if("boolean"!=typeof i)throw new TypeError("TypeError: invalid 'copyGettersSetters' flag's type");if("boolean"!=typeof s)throw new TypeError("TypeError: invalid 'allowCircularReferences' flag's type");if("boolean"!=typeof c)throw new TypeError("TypeError: invalid 'discardErrorObjects' flag's type");return function(e,r){return function e(r,{setPrototype:t,invokeConstructors:o,copyNonEnumerables:n,copySymbols:i,copyGettersSetters:s,allowCircularReferences:c,discardErrorObjects:a},f,l){f.set(r,r);let p=null;const u=Object.getOwnPropertyDescriptors(r);p=o?new r.constructor:t?Object.create(Object.getPrototypeOf(r)):{};const y=new WeakMap;if(Object.entries(u).forEach(([r,u])=>{const{value:b,enumerable:d}=u;if((n||d)&&(i||"symbol"!=typeof b)&&(s||!u.get&&!u.set))if(b&&"object"==typeof b){if(y.has(b))return void(p[r]=y.get(b));if(f.has(b)){if(c)return void(p[r]=f.get(b));throw new TypeError("TypeError: circular reference found")}if(b instanceof Error){if(a)return;throw new TypeError("TypeError: cannot copy Error objects")}if(b instanceof Number||b instanceof Boolean){const e=u.value.valueOf();return void Object.defineProperty(p,r,{...u,...{value:e}})}if(b instanceof String){const e=u.value.toString();return void Object.defineProperty(p,r,{...u,...{value:e}})}if(b instanceof Date){const e=new Date(u.value.getTime());return void Object.defineProperty(p,r,{...u,...{value:e}})}if(b instanceof RegExp){const{value:{lastIndex:e}}=u,t=new RegExp(u.value.source,u.value.flags);return Object.defineProperty(p,r,{...u,...{value:t}}),void(p[r].lastIndex=e)}if(b instanceof Promise)return void Object.defineProperty(p,r,u);const d={setPrototype:t,invokeConstructors:o,copyNonEnumerables:n,copySymbols:i,copyGettersSetters:s,allowCircularReferences:c,discardErrorObjects:a};p[r]=e(b,d,f,l),y.set(b,p[r])}else{const e=Object.getOwnPropertyDescriptor(p,r);e&&!e.configurable||Object.defineProperty(p,r,u)}}),c&&(f.set(r,p),l===r)){const e=new WeakMap;e.set(p),function r(t,o){Object.entries(t).forEach(([n,i])=>{if(i&&"object"==typeof i)if(o.has(i))t[n]=o.get(i);else{if(e.has(i))return;e.set(i),r(i,o)}})}(p,f)}return p}(e,r,new WeakMap,e)}(e,{setPrototype:r,invokeConstructors:t,copyNonEnumerables:o,copySymbols:n,copyGettersSetters:i,allowCircularReferences:s,discardErrorObjects:c})}}]); | ||
module.exports=function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){const o=t(1);e.exports=function(e={},{setPrototype:r=!1,invokeConstructors:t=!0,copyNonEnumerables:n=!1,copySymbols:i=!1,copyGettersSetters:c=!1,allowCircularReferences:s=!1,discardErrorObjects:a=!0}={}){if(!e||"object"!=typeof e)throw new TypeError("TypeError: invalid 'obj' argument's type");if(e instanceof Number||e instanceof String||e instanceof Boolean)return null;if(e instanceof Promise)return e;if(e instanceof Error){if(a)return null;throw new TypeError("TypeError: cannot copy Error objects")}if(e instanceof RegExp){const{source:r,flags:t,lastIndex:o}=e,n=new RegExp(r,t);return n.lastIndex=o,n}if(e instanceof Date)return new Date(e.getTime());if("boolean"!=typeof r)throw new TypeError("TypeError: invalid 'setPrototype' flag's type");if("boolean"!=typeof t)throw new TypeError("TypeError: invalid 'invokeConstructors' flag's type");if("boolean"!=typeof n)throw new TypeError("TypeError: invalid 'copyNonEnumerables' flag's type");if("boolean"!=typeof i)throw new TypeError("TypeError: invalid 'copySymbols' flag's type");if("boolean"!=typeof c)throw new TypeError("TypeError: invalid 'copyGettersSetters' flag's type");if("boolean"!=typeof s)throw new TypeError("TypeError: invalid 'allowCircularReferences' flag's type");if("boolean"!=typeof a)throw new TypeError("TypeError: invalid 'discardErrorObjects' flag's type");return o(e,{setPrototype:r,invokeConstructors:t,copyNonEnumerables:n,copySymbols:i,copyGettersSetters:c,allowCircularReferences:s,discardErrorObjects:a})}},function(e,r){e.exports=function(e,r){const t=new WeakMap,o=e;function n(e,r,n){return function(e,r,n,c){const{copyNonEnumerables:s,copySymbols:a,copyGettersSetters:f,allowCircularReferences:l,discardErrorObjects:u}=c;Object.entries(r).forEach(([r,p])=>{const{value:y,enumerable:b}=p;if((s||b)&&(a||"symbol"!=typeof y)&&(f||!p.get&&!p.set))if(y&&"object"==typeof y){if(n.has(y))return void(e[r]=n.get(y));if(t.has(y)){if(l)return void(e[r]=t.get(y));throw new TypeError("TypeError: circular reference found")}if(y instanceof Error){if(u)return;throw new TypeError("TypeError: cannot copy Error objects")}if(y instanceof Number||y instanceof Boolean){const t=p.value.valueOf();return void Object.defineProperty(e,r,{...p,...{value:t}})}if(y instanceof String){const t=p.value.toString();return void Object.defineProperty(e,r,{...p,...{value:t}})}if(y instanceof Date){const t=new Date(p.value.getTime());return void Object.defineProperty(e,r,{...p,...{value:t}})}if(y instanceof RegExp){const{value:{lastIndex:t}}=p,o=new RegExp(p.value.source,p.value.flags);return Object.defineProperty(e,r,{...p,...{value:o}}),void(e[r].lastIndex=t)}if(y instanceof Promise)return void Object.defineProperty(e,r,p);e[r]=i(y,c,t,o),n.set(y,e[r])}else{const t=Object.getOwnPropertyDescriptor(e,r);t&&!t.configurable||Object.defineProperty(e,r,p)}})}(e,r,new WeakMap,n)}function i(e,r,t,o){const{setPrototype:i,invokeConstructors:c,allowCircularReferences:s}=r;t.set(e,e);let a=null;const f=Object.getOwnPropertyDescriptors(e);return n(a=c?new e.constructor:i?Object.create(Object.getPrototypeOf(e)):{},f,r),s&&(t.set(e,a),o===e&&function(e,r){const t=new WeakMap;t.set(e),function e(r,t,o){Object.entries(r).forEach(([n,i])=>{if(i&&"object"==typeof i)if(t.has(i))r[n]=t.get(i);else{if(o.has(i))return;o.set(i),e(i,t,o)}})}(e,r,t)}(a,t)),a}return i(e,r,t,o)}}]); |
{ | ||
"name": "omniclone", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "deep cloning function for js objects", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
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
14013