@visulima/deep-clone 4.0.0-alpha.1 → 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +97 -0
- package/LICENSE.md +1 -1
- package/README.md +34 -25
- package/dist/handler.js +1 -1
- package/dist/index.js +1 -1
- package/dist/packem_shared/copyMapLoose-B_bmagCc.js +1 -0
- package/dist/packem_shared/{copyObjectLoose-C5x-tHKP.js → copyObjectLoose-BlxUuShG.js} +1 -1
- package/dist/packem_shared/copySetLoose-BRq7gnSm.js +1 -0
- package/dist/packem_shared/{getCleanClone-D0FN9QGR.js → getCleanClone-BmlWEIm1.js} +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/packem_shared/copyMapLoose-BodEbKp7.js +0 -1
- package/dist/packem_shared/copySetLoose-L-swSTFR.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,100 @@
|
|
|
1
|
+
## @visulima/deep-clone [4.0.0-alpha.10](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.9...@visulima/deep-clone@4.0.0-alpha.10) (2026-04-15)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **data-manipulation:** resolve eslint and type-safety issues ([f1682c2](https://github.com/visulima/visulima/commit/f1682c2611cbcc6c85d4bbea520d43464b42e7ee))
|
|
6
|
+
* **deep-clone:** add node types for Buffer resolution ([55a5976](https://github.com/visulima/visulima/commit/55a597653cdf1c98500178f102a7636227c7b803))
|
|
7
|
+
|
|
8
|
+
## @visulima/deep-clone [4.0.0-alpha.9](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.8...@visulima/deep-clone@4.0.0-alpha.9) (2026-04-08)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **deep-clone:** resolve eslint errors and include bench files in tsconfig ([1704120](https://github.com/visulima/visulima/commit/17041206df127961cfc96ce5f1202594eb8592e9))
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* **data-manipulation:** remove empty dependency objects from package.json ([c0e8f76](https://github.com/visulima/visulima/commit/c0e8f7689a2da413f771494f6ecb07babc4b5e06))
|
|
17
|
+
* **deep-clone:** add tsconfig.eslint.json for type-aware linting ([01d9837](https://github.com/visulima/visulima/commit/01d9837e60da9d8491a7c5bf8cfd45861f6954f0))
|
|
18
|
+
* **deep-clone:** apply prettier formatting ([be602cc](https://github.com/visulima/visulima/commit/be602cc1d5b9da5a1c43c7d47e5cc6b8487147b3))
|
|
19
|
+
* **deep-clone:** migrate .prettierrc.cjs to prettier.config.js ([1373f0f](https://github.com/visulima/visulima/commit/1373f0f32344e66af5d42168ebde534dcb5284dd))
|
|
20
|
+
|
|
21
|
+
## @visulima/deep-clone [4.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.7...@visulima/deep-clone@4.0.0-alpha.8) (2026-03-26)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **web:** auto-generate packages page from workspace metadata ([623e520](https://github.com/visulima/visulima/commit/623e5207693a7fe720f5f2f179593a3654c880e3))
|
|
26
|
+
|
|
27
|
+
### Miscellaneous Chores
|
|
28
|
+
|
|
29
|
+
* update homepage URLs to visulima.com/packages/ format ([be42968](https://github.com/visulima/visulima/commit/be42968129df85fb074224435e33135ff44cab91))
|
|
30
|
+
|
|
31
|
+
## @visulima/deep-clone [4.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.6...@visulima/deep-clone@4.0.0-alpha.7) (2026-03-26)
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **web:** improve build setup with incremental stats caching and prod install ([fe33e75](https://github.com/visulima/visulima/commit/fe33e75827586779b4b3a0c6d57b39f889ee6207))
|
|
36
|
+
|
|
37
|
+
### Miscellaneous Chores
|
|
38
|
+
|
|
39
|
+
* **deep-clone:** migrate deps to pnpm catalogs ([c29c51a](https://github.com/visulima/visulima/commit/c29c51af9083aaeaf216a332056d45ebecbdbba1))
|
|
40
|
+
* **deep-clone:** update dependencies ([b9f542d](https://github.com/visulima/visulima/commit/b9f542ddbc21f5a7cf4dd2412e495ed052c0d06a))
|
|
41
|
+
* visulima website ([#591](https://github.com/visulima/visulima/issues/591)) ([59ab2e2](https://github.com/visulima/visulima/commit/59ab2e2befb03e51cd2088956f83d9b87de6d033))
|
|
42
|
+
|
|
43
|
+
### Code Refactoring
|
|
44
|
+
|
|
45
|
+
* **docs:** migrate Nextra components to fumadocs-ui, remove Nextra stripping ([484878f](https://github.com/visulima/visulima/commit/484878f01879363ef5e9a0282904dc4627d6060c))
|
|
46
|
+
|
|
47
|
+
## @visulima/deep-clone [4.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.5...@visulima/deep-clone@4.0.0-alpha.6) (2026-03-06)
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* **deep-clone:** update packem to 2.0.0-alpha.54 ([9c0f6bb](https://github.com/visulima/visulima/commit/9c0f6bb776ef44338faddadc61c1842c23c4054f))
|
|
52
|
+
|
|
53
|
+
### Documentation
|
|
54
|
+
|
|
55
|
+
* **bytes,deep-clone,ansi,fmt,find-cache-dir:** add comprehensive Fumadocs documentation ([dfe0116](https://github.com/visulima/visulima/commit/dfe0116ebd26fe38f94f77b8ed4dadc3ff45ba91))
|
|
56
|
+
|
|
57
|
+
### Miscellaneous Chores
|
|
58
|
+
|
|
59
|
+
* **data-manipulation:** update dependencies ([49458ab](https://github.com/visulima/visulima/commit/49458ab8f8e17d875840b1b4fe8b5efe12ff3513))
|
|
60
|
+
* **deep-clone:** update dependencies ([0dc9423](https://github.com/visulima/visulima/commit/0dc942387c0cd849ec0ee0bb42319b885cc39ab1))
|
|
61
|
+
* **deep-clone:** update dependencies ([1eadc51](https://github.com/visulima/visulima/commit/1eadc51d84958b07c0fc7f8e59abda992352bf20))
|
|
62
|
+
* update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
|
|
63
|
+
* year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
|
|
64
|
+
|
|
65
|
+
## @visulima/deep-clone [4.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.4...@visulima/deep-clone@4.0.0-alpha.5) (2025-12-27)
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
* **deep-clone:** update package files ([f0bf0bc](https://github.com/visulima/visulima/commit/f0bf0bce894b569ca80c7e2338937f4c2d110960))
|
|
70
|
+
|
|
71
|
+
### Miscellaneous Chores
|
|
72
|
+
|
|
73
|
+
* **dependencies:** update msw to version 2.12.6, jsdom to version 27.4.0, and [@tanstack](https://github.com/tanstack) packages to version 1.144.0 in package.json files ([1aa0236](https://github.com/visulima/visulima/commit/1aa0236e1f8190eecf7526cf2dc0f369cac02d87))
|
|
74
|
+
* fixed project.json names and schema path ([964722f](https://github.com/visulima/visulima/commit/964722f691db205c7edb9aa6db29e849a647500b))
|
|
75
|
+
|
|
76
|
+
## @visulima/deep-clone [4.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.3...@visulima/deep-clone@4.0.0-alpha.4) (2025-12-12)
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
* create new html package ([#567](https://github.com/visulima/visulima/issues/567)) ([#583](https://github.com/visulima/visulima/issues/583)) ([cae765f](https://github.com/visulima/visulima/commit/cae765f59f31338cc9ab58d90de7945e73ded2bb))
|
|
81
|
+
|
|
82
|
+
## @visulima/deep-clone [4.0.0-alpha.3](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.2...@visulima/deep-clone@4.0.0-alpha.3) (2025-12-11)
|
|
83
|
+
|
|
84
|
+
### Bug Fixes
|
|
85
|
+
|
|
86
|
+
* update package OG images across multiple packages ([f08e4dd](https://github.com/visulima/visulima/commit/f08e4dd2b105ccb29c8412020a9c2be36d6c1e9e))
|
|
87
|
+
|
|
88
|
+
## @visulima/deep-clone [4.0.0-alpha.2](https://github.com/visulima/visulima/compare/@visulima/deep-clone@4.0.0-alpha.1...@visulima/deep-clone@4.0.0-alpha.2) (2025-12-06)
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* add new package image, fixed readme rendering on npm, fixed building of packages ([b790ba2](https://github.com/visulima/visulima/commit/b790ba253ea07fef83528fd822a678facf021b5f))
|
|
93
|
+
|
|
94
|
+
### Miscellaneous Chores
|
|
95
|
+
|
|
96
|
+
* update @anolilab/semantic-release-pnpm and @anolilab/semantic-release-preset to versions 3.2.2 and 12.1.2 across multiple package.json files for improved compatibility ([3921626](https://github.com/visulima/visulima/commit/3921626141fe5da398749bf0ba675f1596f18afb))
|
|
97
|
+
|
|
1
98
|
## @visulima/deep-clone [4.0.0-alpha.1](https://github.com/visulima/visulima/compare/@visulima/deep-clone@3.0.5...@visulima/deep-clone@4.0.0-alpha.1) (2025-12-04)
|
|
2
99
|
|
|
3
100
|
### ⚠ BREAKING CHANGES
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<!-- START_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
2
|
+
|
|
3
|
+
<a href="https://www.anolilab.com/open-source" align="center">
|
|
4
|
+
|
|
5
|
+
<img src="__assets__/package-og.svg" alt="deep-clone" />
|
|
6
|
+
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
<h3 align="center">Fastest deep clone implementation.</h3>
|
|
10
|
+
|
|
11
|
+
<!-- END_PACKAGE_OG_IMAGE_PLACEHOLDER -->
|
|
7
12
|
|
|
8
13
|
<br />
|
|
9
14
|
|
|
10
15
|
<div align="center">
|
|
11
16
|
|
|
12
|
-
[![typescript-image]
|
|
17
|
+
[![typescript-image][typescript-badge]][typescript-url]
|
|
18
|
+
[![mit licence][license-badge]][license]
|
|
19
|
+
[![npm downloads][npm-downloads-badge]][npm-downloads]
|
|
20
|
+
[![Chat][chat-badge]][chat]
|
|
21
|
+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
|
|
13
22
|
|
|
14
23
|
</div>
|
|
15
24
|
|
|
@@ -263,23 +272,23 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
263
272
|
- [Daniel Bannert](https://github.com/prisis)
|
|
264
273
|
- [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
|
|
265
274
|
|
|
275
|
+
## Made with ❤️ at Anolilab
|
|
276
|
+
|
|
277
|
+
This is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. [Anolilab](https://www.anolilab.com/open-source) is a Development and AI Studio. Contact us at [hello@anolilab.com](mailto:hello@anolilab.com) if you need any help with these technologies or just want to say hi!
|
|
278
|
+
|
|
266
279
|
## License
|
|
267
280
|
|
|
268
|
-
The visulima deep-clone is open-sourced software licensed under the [MIT][license
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
[
|
|
273
|
-
[license
|
|
274
|
-
[
|
|
275
|
-
[npm-
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
281
|
-
[
|
|
282
|
-
[mdn-uri-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError
|
|
283
|
-
[mdn-eval-error]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError
|
|
284
|
-
[node-system-error]: https://nodejs.org/api/errors.html#errors_class_system_error
|
|
285
|
-
[node-buffer]: http://nodejs.org/api/buffer.html
|
|
281
|
+
The visulima deep-clone is open-sourced software licensed under the [MIT][license]
|
|
282
|
+
|
|
283
|
+
<!-- badges -->
|
|
284
|
+
|
|
285
|
+
[license-badge]: https://img.shields.io/npm/l/@visulima/deep-clone?style=for-the-badge
|
|
286
|
+
[license]: https://github.com/visulima/visulima/blob/main/LICENSE
|
|
287
|
+
[npm-downloads-badge]: https://img.shields.io/npm/dm/@visulima/deep-clone?style=for-the-badge
|
|
288
|
+
[npm-downloads]: https://www.npmjs.com/package/@visulima/deep-clone
|
|
289
|
+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge
|
|
290
|
+
[prs-welcome]: https://github.com/visulima/visulima/blob/main/.github/CONTRIBUTING.md
|
|
291
|
+
[chat-badge]: https://img.shields.io/discord/932323359193186354.svg?style=for-the-badge
|
|
292
|
+
[chat]: https://discord.gg/TtFJY8xkFK
|
|
293
|
+
[typescript-badge]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
294
|
+
[typescript-url]: https://www.typescriptlang.org/
|
package/dist/handler.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{copyArrayLoose as t,copyArrayStrict as e}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import{default as c}from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import{default as y}from"./packem_shared/copyBlob-S-Z7ux38.js";import{default as x}from"./packem_shared/copyDataView-Ww3lwn8t.js";import{default as s}from"./packem_shared/copyDate-b-cxY0ZF.js";import{default as i}from"./packem_shared/copyError-Bdcealjm.js";import{copyMapLoose as u,copyMapStrict as d}from"./packem_shared/copyMapLoose-
|
|
1
|
+
import{copyArrayLoose as t,copyArrayStrict as e}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import{default as c}from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import{default as y}from"./packem_shared/copyBlob-S-Z7ux38.js";import{default as x}from"./packem_shared/copyDataView-Ww3lwn8t.js";import{default as s}from"./packem_shared/copyDate-b-cxY0ZF.js";import{default as i}from"./packem_shared/copyError-Bdcealjm.js";import{copyMapLoose as u,copyMapStrict as d}from"./packem_shared/copyMapLoose-B_bmagCc.js";import{copyObjectLoose as b,copyObjectStrict as A}from"./packem_shared/copyObjectLoose-BlxUuShG.js";import{copyRegExpLoose as g,copyRegExpStrict as j}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetLoose as D,copySetStrict as M}from"./packem_shared/copySetLoose-BRq7gnSm.js";export{c as copyArrayBuffer,t as copyArrayLoose,e as copyArrayStrict,y as copyBlob,x as copyDataView,s as copyDate,i as copyError,u as copyMapLoose,d as copyMapStrict,b as copyObjectLoose,A as copyObjectStrict,g as copyRegExpLoose,j as copyRegExpStrict,D as copySetLoose,M as copySetStrict};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=Object.defineProperty;var p=(t,n)=>b(t,"name",{value:n,configurable:!0});import{copyArrayStrict as l,copyArrayLoose as A}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import d from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import S from"./packem_shared/copyBlob-S-Z7ux38.js";import h from"./packem_shared/copyDataView-Ww3lwn8t.js";import w from"./packem_shared/copyDate-b-cxY0ZF.js";import j from"./packem_shared/copyError-Bdcealjm.js";import{copyMapStrict as E,copyMapLoose as B}from"./packem_shared/copyMapLoose-
|
|
1
|
+
var b=Object.defineProperty;var p=(t,n)=>b(t,"name",{value:n,configurable:!0});import{copyArrayStrict as l,copyArrayLoose as A}from"./packem_shared/copyArrayLoose-BEBF0PeG.js";import d from"./packem_shared/copyArrayBuffer-_dUBQIVn.js";import S from"./packem_shared/copyBlob-S-Z7ux38.js";import h from"./packem_shared/copyDataView-Ww3lwn8t.js";import w from"./packem_shared/copyDate-b-cxY0ZF.js";import j from"./packem_shared/copyError-Bdcealjm.js";import{copyMapStrict as E,copyMapLoose as B}from"./packem_shared/copyMapLoose-B_bmagCc.js";import{copyObjectStrict as M,copyObjectLoose as g}from"./packem_shared/copyObjectLoose-BlxUuShG.js";import{copyRegExpStrict as k,copyRegExpLoose as O}from"./packem_shared/copyRegExpLoose-Cio6jQWx.js";import{copySetStrict as T,copySetLoose as W}from"./packem_shared/copySetLoose-BRq7gnSm.js";var v=Object.defineProperty,a=p((t,n)=>v(t,"name",{value:n,configurable:!0}),"t");const y=a(t=>typeof t=="object"&&t!==null||typeof t=="function","canValueHaveProperties"),x={Array:A,ArrayBuffer:d,Blob:S,DataView:h,Date:w,Error:j,Function:a((t,n)=>t,"Function"),Map:B,Object:g,Promise:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"Promise"),RegExp:O,Set:W,SharedArrayBuffer:a((t,n)=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"SharedArrayBuffer"),WeakMap:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakMap"),WeakSet:a(t=>{throw new TypeError(`${t.constructor.name} objects cannot be cloned`)},"WeakSet")},H=a((t,n)=>{if(!y(t))return t;const r={...x,...n?.strict?{Array:l,Map:E,Object:M,RegExp:k,Set:T}:{},...n?.handler};let c=new WeakMap;const f=a((e,o)=>{if(!y(e))return e;if(o.cache.has(e))return o.cache.get(e);if(Array.isArray(e))return r.Array(e,o);if(typeof e=="object"&&e.constructor===Object&&e.nodeType===void 0)return r.Object(e,o);if(e.nodeType!==void 0&&e.cloneNode!==void 0)return e.cloneNode(!0);if(e instanceof Date)return r.Date(e,o);if(e instanceof RegExp)return r.RegExp(e,o);if(e instanceof Map)return r.Map(e,o);if(e instanceof Set)return r.Set(e,o);if(e instanceof Error)return r.Error(e,o);if(e instanceof ArrayBuffer)return r.ArrayBuffer(e,o);if(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array){const{buffer:i}=e;if(i instanceof SharedArrayBuffer)throw new TypeError("SharedArrayBuffer cannot be cloned");const u=r.ArrayBuffer(i,o),m=e.constructor;return new m(u,e.byteOffset,e.length)}if(e instanceof Blob)return r.Blob(e,o);if(e instanceof DataView)return r.DataView(e,o);if(e instanceof SharedArrayBuffer)return r.SharedArrayBuffer(e,o);if(e instanceof Promise)return r.Promise(e,o);if(e instanceof WeakMap)return r.WeakMap(e,o);if(e instanceof WeakSet)return r.WeakSet(e,o);if(typeof e=="function")return r.Function(e,o);if(typeof e=="object")return r.Object(e,o);throw new TypeError(`Type of ${typeof e} cannot be cloned`,e)},"clone"),s=f(t,{cache:c,clone:f});return c=null,s},"deepClone");export{H as deepClone};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var e=(c,o)=>i(c,"name",{value:o,configurable:!0});import n from"./copyOwnProperties-QEhjt2x8.js";var s=Object.defineProperty,r=e((c,o)=>s(c,"name",{value:o,configurable:!0}),"t");const y=r((c,o)=>{const t=new Map;return o.cache.set(c,t),c.forEach((a,p)=>{t.set(p,o.clone(a,o))}),t},"copyMapLoose"),u=r((c,o)=>n(c,y(c,o),o),"copyMapStrict");export{y as copyMapLoose,u as copyMapStrict};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var O=(t,e)=>l(t,"name",{value:e,configurable:!0});import y from"./copyOwnProperties-QEhjt2x8.js";import b from"./getCleanClone-
|
|
1
|
+
var l=Object.defineProperty;var O=(t,e)=>l(t,"name",{value:e,configurable:!0});import y from"./copyOwnProperties-QEhjt2x8.js";import b from"./getCleanClone-BmlWEIm1.js";var a=Object.defineProperty,s=O((t,e)=>a(t,"name",{value:e,configurable:!0}),"l");const p=s((t,e)=>{Object.isExtensible(t)||Object.preventExtensions(e),Object.isSealed(t)&&Object.seal(e),Object.isFrozen(t)&&Object.freeze(e)},"copyObjectIsFunctions"),u=s((t,e)=>{const c=b(t);e.cache.set(t,c);for(const o in t)Object.hasOwnProperty.call(t,o)&&(c[o]=e.clone(t[o],e));const r=Object.getOwnPropertySymbols(t);for(let o=0,n,{length:j}=r;o<j;++o)n=r[o],Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=e.clone(t[n],e));return p(t,c),c},"copyObjectLoose"),P=s((t,e)=>{const c=b(t);e.cache.set(t,c);const r=y(t,c,e),o=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)!==o&&Object.setPrototypeOf(r,o),p(t,c),r},"copyObjectStrict");export{u as copyObjectLoose,P as copyObjectStrict};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var r=(e,t)=>a(e,"name",{value:t,configurable:!0});import p from"./copyOwnProperties-QEhjt2x8.js";var S=Object.defineProperty,c=r((e,t)=>S(e,"name",{value:t,configurable:!0}),"n");const i=c((e,t)=>{const o=new Set;return t.cache.set(e,o),e.forEach(n=>{o.add(t.clone(n,t))}),o},"copySetLoose"),f=c((e,t)=>p(e,i(e,t),t),"copySetStrict");export{i as copySetLoose,f as copySetStrict};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});var n=Object.defineProperty,o=r((e,t)=>n(e,"name",{value:t,configurable:!0}),"r");const u=o(e=>{if(!e)return Object.create(null);const t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(
|
|
1
|
+
var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});var n=Object.defineProperty,o=r((e,t)=>n(e,"name",{value:t,configurable:!0}),"r");const u=o(e=>{if(!e)return Object.create(null);const t=e.constructor;if(t===Object)return e===Object.prototype?{}:Object.create(e);if(Function.prototype.toString.call(t).includes("[native code]"))try{return new t}catch{}return Object.create(e)},"getCleanClone");export{u as default};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as r}from"./packem_shared/copyOwnProperties-QEhjt2x8.js";import{default as a}from"./packem_shared/getCleanClone-
|
|
1
|
+
import{default as r}from"./packem_shared/copyOwnProperties-QEhjt2x8.js";import{default as a}from"./packem_shared/getCleanClone-BmlWEIm1.js";export{r as copyOwnProperties,a as getCleanClone};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/deep-clone",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.10",
|
|
4
4
|
"description": "Fastest deep clone implementation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"values",
|
|
38
38
|
"visulima"
|
|
39
39
|
],
|
|
40
|
-
"homepage": "https://
|
|
40
|
+
"homepage": "https://visulima.com/packages/deep-clone/",
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "https://github.com/visulima/visulima.git",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:!0});import n from"./copyOwnProperties-QEhjt2x8.js";var s=Object.defineProperty,r=e((t,o)=>s(t,"name",{value:o,configurable:!0}),"t");const u=r((t,o)=>{const c=new Map;return o.cache.set(t,c),t.forEach((a,p)=>{c.set(p,o.clone(a,o))}),c},"copyMapLoose"),f=r((t,o)=>n(t,u(t,o),o),"copyMapStrict");export{u as copyMapLoose,f as copyMapStrict};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});import p from"./copyOwnProperties-QEhjt2x8.js";var S=Object.defineProperty,r=o((e,t)=>S(e,"name",{value:t,configurable:!0}),"n");const i=r((e,t)=>{const c=new Set;return t.cache.set(e,c),e.forEach(n=>{c.add(t.clone(n,t))}),c},"copySetLoose"),f=r((e,t)=>p(e,i(e,t),t),"copySetStrict");export{i as copySetLoose,f as copySetStrict};
|