Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -23,2 +23,1 @@ import type { Realm } from './utils'; | ||
export declare function copyStrict(value: any, options?: StrictOptions): any; | ||
export default copy; |
@@ -23,2 +23,1 @@ import type { Realm } from './utils'; | ||
export declare function copyStrict(value: any, options?: StrictOptions): any; | ||
export default copy; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["fast-copy"]={})}(this,(function(e){"use strict";var t=Function.prototype.toString,n=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,c=Object.prototype,a=c.hasOwnProperty,s=c.propertyIsEnumerable,l="function"==typeof f,p="function"==typeof WeakMap,y=function(){if(p)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),d=function(e,r){var o=e.__proto__||u(e);if(!o)return n(null);var i=o.constructor;if(i===r.Object)return o===r.Object.prototype?{}:n(o);if(~t.call(i).indexOf("[native code]"))try{return new i}catch(e){}return n(o)},b=function(e,t,n,r){var o=d(e,t);for(var i in r.set(e,o),e)a.call(e,i)&&(o[i]=n(e[i],r));if(l)for(var u=f(e),c=0,p=u.length,y=void 0;c<p;++c)y=u[c],s.call(e,y)&&(o[y]=n(e[y],r));return o},g=function(e,t,n,u){var c=d(e,t);u.set(e,c);for(var a=l?i(e).concat(f(e)):i(e),s=0,p=a.length,y=void 0,b=void 0;s<p;++s)if("callee"!==(y=a[s])&&"caller"!==y)if(b=o(e,y)){b.get||b.set||(b.value=n(e[y],u));try{r(c,y,b)}catch(e){c[y]=b.value}}else c[y]=n(e[y],u);return c},h=Array.isArray,v=Object.assign,O=Object.getPrototypeOf,w=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function _(e,t){var n=!(!t||!t.isStrict),r=t&&t.realm||w,o=n?g:b,i=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var f,u,c,a=e.__proto__||O(e),s=a&&a.constructor;if(!s||s===r.Object)return o(e,r,i,t);if(h(e)){if(n)return g(e,r,i,t);f=new s,t.set(e,f);for(var l=0,p=e.length;l<p;++l)f[l]=i(e[l],t);return f}if(e instanceof r.Date)return new s(e.getTime());if(e instanceof r.RegExp)return(f=new s(e.source,e.flags||(c="",(u=e).global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c))).lastIndex=e.lastIndex,f;if(r.Map&&e instanceof r.Map)return f=new s,t.set(e,f),e.forEach((function(e,n){f.set(n,i(e,t))})),f;if(r.Set&&e instanceof r.Set)return f=new s,t.set(e,f),e.forEach((function(e){f.add(i(e,t))})),f;if(r.Blob&&e instanceof r.Blob)return e.slice(0,e.size,e.type);if(r.Buffer&&r.Buffer.isBuffer(e))return f=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(e.length):new s(e.length),t.set(e,f),e.copy(f),f;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(e))return f=new s(e.buffer.slice(0)),t.set(e,f),f;if(e instanceof r.ArrayBuffer)return f=e.slice(0),t.set(e,f),f}return"function"==typeof e.then||e instanceof Error||r.WeakMap&&e instanceof r.WeakMap||r.WeakSet&&e instanceof r.WeakSet?e:o(e,r,i,t)};return i(e,y())}e.copy=_,e.copyStrict=function(e,t){return _(e,v({},t,{isStrict:!0}))},e.default=_,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["fast-copy"]={})}(this,(function(e){"use strict";var t=Function.prototype.toString,n=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,c=Object.getPrototypeOf,u=Object.prototype,a=u.hasOwnProperty,s=u.propertyIsEnumerable,l="function"==typeof f,p="function"==typeof WeakMap,y=function(){if(p)return function(){return new WeakMap};var e=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}();return function(){return new e}}(),d=function(e,r){var o=e.__proto__||c(e);if(!o)return n(null);var i=o.constructor;if(i===r.Object)return o===r.Object.prototype?{}:n(o);if(~t.call(i).indexOf("[native code]"))try{return new i}catch(e){}return n(o)},b=function(e,t,n,r){var o=d(e,t);for(var i in r.set(e,o),e)a.call(e,i)&&(o[i]=n(e[i],r));if(l)for(var c=f(e),u=0,p=c.length,y=void 0;u<p;++u)y=c[u],s.call(e,y)&&(o[y]=n(e[y],r));return o},g=function(e,t,n,c){var u=d(e,t);c.set(e,u);for(var a=l?i(e).concat(f(e)):i(e),s=0,p=a.length,y=void 0,b=void 0;s<p;++s)if("callee"!==(y=a[s])&&"caller"!==y)if(b=o(e,y)){b.get||b.set||(b.value=n(e[y],c));try{r(u,y,b)}catch(e){u[y]=b.value}}else u[y]=n(e[y],c);return u},h=Array.isArray,v=Object.assign,O=Object.getPrototypeOf,w=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function _(e,t){var n=!(!t||!t.isStrict),r=t&&t.realm||w,o=n?g:b,i=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var f,c,u,a=e.__proto__||O(e),s=a&&a.constructor;if(!s||s===r.Object)return o(e,r,i,t);if(h(e)){if(n)return g(e,r,i,t);f=new s,t.set(e,f);for(var l=0,p=e.length;l<p;++l)f[l]=i(e[l],t);return f}if(e instanceof r.Date)return new s(e.getTime());if(e instanceof r.RegExp)return(f=new s(e.source,e.flags||(u="",(c=e).global&&(u+="g"),c.ignoreCase&&(u+="i"),c.multiline&&(u+="m"),c.unicode&&(u+="u"),c.sticky&&(u+="y"),u))).lastIndex=e.lastIndex,f;if(r.Map&&e instanceof r.Map)return f=new s,t.set(e,f),e.forEach((function(e,n){f.set(n,i(e,t))})),f;if(r.Set&&e instanceof r.Set)return f=new s,t.set(e,f),e.forEach((function(e){f.add(i(e,t))})),f;if(r.Blob&&e instanceof r.Blob)return e.slice(0,e.size,e.type);if(r.Buffer&&r.Buffer.isBuffer(e))return f=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(e.length):new s(e.length),t.set(e,f),e.copy(f),f;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(e))return f=new s(e.buffer.slice(0)),t.set(e,f),f;if(e instanceof r.ArrayBuffer)return f=e.slice(0),t.set(e,f),f}return"function"==typeof e.then||e instanceof Error||r.WeakMap&&e instanceof r.WeakMap||r.WeakSet&&e instanceof r.WeakSet?e:o(e,r,i,t)};return i(e,y())}e.copy=_,e.copyStrict=function(e,t){return _(e,v({},t,{isStrict:!0}))},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.min.js.map |
@@ -307,3 +307,2 @@ (function (global, factory) { | ||
exports.copyStrict = copyStrict; | ||
exports["default"] = copy; | ||
@@ -310,0 +309,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -82,3 +82,3 @@ { | ||
"build:files": "NODE_ENV=production rollup -c", | ||
"build:types": "tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.esm.json", | ||
"build:types": "tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.esm.json && tsc -p ./tsconfig.umd.json && tsc -p ./tsconfig.minified.json", | ||
"clean": "rimraf dist", | ||
@@ -101,3 +101,3 @@ "dev": "NODE_ENV=development webpack-dev-server --config=webpack/webpack.config.js", | ||
"types": "index.d.ts", | ||
"version": "3.0.0-beta.0" | ||
"version": "3.0.0-beta.1" | ||
} |
@@ -62,3 +62,3 @@ # fast-copy | ||
**NOTE**: This option is also aliased as `copStrict`. | ||
**NOTE**: This option is also aliased as `copyStrict`. | ||
@@ -65,0 +65,0 @@ ```javascript |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
138090
29
1269
0