@visulima/deep-clone 2.1.10 → 3.0.1
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 +34 -0
- package/LICENSE.md +1 -1
- package/README.md +62 -9
- package/dist/handler.js +1 -0
- package/dist/index.js +1 -0
- package/dist/packem_shared/copyArrayBuffer-_dUBQIVn.js +1 -0
- package/dist/packem_shared/copyArrayLoose-BEBF0PeG.js +1 -0
- package/dist/packem_shared/copyBlob-S-Z7ux38.js +1 -0
- package/dist/packem_shared/copyDataView-EF9L1_xC.js +1 -0
- package/dist/packem_shared/copyDate-b-cxY0ZF.js +1 -0
- package/dist/packem_shared/copyError-Bdcealjm.js +1 -0
- package/dist/packem_shared/copyMapLoose-BodEbKp7.js +1 -0
- package/dist/packem_shared/copyObjectLoose-C5x-tHKP.js +1 -0
- package/dist/packem_shared/copyOwnProperties-QEhjt2x8.js +1 -0
- package/dist/packem_shared/copyRegExpLoose-Cio6jQWx.js +1 -0
- package/dist/packem_shared/copySetLoose-L-swSTFR.js +1 -0
- package/dist/packem_shared/getCleanClone-D0FN9QGR.js +1 -0
- package/dist/utils.js +1 -0
- package/package.json +8 -42
- package/dist/handler.cjs +0 -32
- package/dist/handler.d.cts +0 -33
- package/dist/handler.d.mts +0 -33
- package/dist/handler.mjs +0 -10
- package/dist/index.cjs +0 -121
- package/dist/index.d.cts +0 -9
- package/dist/index.d.mts +0 -9
- package/dist/index.mjs +0 -117
- package/dist/packem_shared/copyArrayBuffer-CCGJtx0g.cjs +0 -36
- package/dist/packem_shared/copyArrayBuffer-DnYU3Ab_.mjs +0 -34
- package/dist/packem_shared/copyArrayLoose-DutO2eEt.mjs +0 -19
- package/dist/packem_shared/copyArrayLoose-jv5B0O8W.cjs +0 -24
- package/dist/packem_shared/copyBlob-B8SnIatQ.cjs +0 -7
- package/dist/packem_shared/copyBlob-ChzBsdC1.mjs +0 -5
- package/dist/packem_shared/copyDataView-BJMKTRTm.mjs +0 -7
- package/dist/packem_shared/copyDataView-DHMi5seB.cjs +0 -9
- package/dist/packem_shared/copyDate-Bgbm3mwe.mjs +0 -5
- package/dist/packem_shared/copyDate-CSIVko_l.cjs +0 -7
- package/dist/packem_shared/copyError-8k5J3dj4.mjs +0 -22
- package/dist/packem_shared/copyError-C1oK1eBT.cjs +0 -24
- package/dist/packem_shared/copyMapLoose-6OISt6H6.mjs +0 -15
- package/dist/packem_shared/copyMapLoose-DpoR0LmV.cjs +0 -20
- package/dist/packem_shared/copyObjectLoose-C0Xe4P0E.mjs +0 -47
- package/dist/packem_shared/copyObjectLoose-PHaYRVaE.cjs +0 -52
- package/dist/packem_shared/copyOwnProperties-FDDRgAnK.mjs +0 -30
- package/dist/packem_shared/copyOwnProperties-NdANNH2P.cjs +0 -32
- package/dist/packem_shared/copyRegExpLoose-455kIpwH.cjs +0 -20
- package/dist/packem_shared/copyRegExpLoose-CPAMvOoY.mjs +0 -15
- package/dist/packem_shared/copySetLoose-BBgAFOdx.cjs +0 -20
- package/dist/packem_shared/copySetLoose-BIxHjmWz.mjs +0 -15
- package/dist/packem_shared/getCleanClone-BhfRMqgx.cjs +0 -22
- package/dist/packem_shared/getCleanClone-Ch3gqIzM.mjs +0 -20
- package/dist/packem_shared/types-_Qve7nv8.d.cts +0 -31
- package/dist/packem_shared/types-_Qve7nv8.d.mts +0 -31
- package/dist/utils.cjs +0 -11
- package/dist/utils.d.cts +0 -7
- package/dist/utils.d.mts +0 -7
- package/dist/utils.mjs +0 -2
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
type InternalHandler<Value> = (value: Value, state: State) => Value;
|
|
2
|
-
interface State {
|
|
3
|
-
cache: WeakMap<any, unknown>;
|
|
4
|
-
clone: InternalHandler<unknown>;
|
|
5
|
-
}
|
|
6
|
-
type Options = {
|
|
7
|
-
handler?: {
|
|
8
|
-
Array: InternalHandler<unknown[]>;
|
|
9
|
-
ArrayBuffer: InternalHandler<ArrayBuffer>;
|
|
10
|
-
Blob: InternalHandler<Blob>;
|
|
11
|
-
DataView: InternalHandler<DataView>;
|
|
12
|
-
Date: InternalHandler<Date>;
|
|
13
|
-
Error: InternalHandler<Error>;
|
|
14
|
-
Float32Array: InternalHandler<Float32Array>;
|
|
15
|
-
Float64Array: InternalHandler<Float64Array>;
|
|
16
|
-
Int8Array: InternalHandler<Int8Array>;
|
|
17
|
-
Int16Array: InternalHandler<Int16Array>;
|
|
18
|
-
Int32Array: InternalHandler<Int32Array>;
|
|
19
|
-
Map: InternalHandler<Map<unknown, unknown>>;
|
|
20
|
-
Object: InternalHandler<Record<string, unknown>>;
|
|
21
|
-
Promise: InternalHandler<Promise<unknown>>;
|
|
22
|
-
RegExp: InternalHandler<RegExp>;
|
|
23
|
-
Set: InternalHandler<Set<unknown>>;
|
|
24
|
-
WeakMap: InternalHandler<WeakMap<any, unknown>>;
|
|
25
|
-
WeakSet: InternalHandler<WeakSet<any>>;
|
|
26
|
-
};
|
|
27
|
-
strict?: boolean;
|
|
28
|
-
};
|
|
29
|
-
type TypedArray = BigInt64Array | BigUint64Array | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
|
|
30
|
-
|
|
31
|
-
export type { Options as O, State as S, TypedArray as T };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
type InternalHandler<Value> = (value: Value, state: State) => Value;
|
|
2
|
-
interface State {
|
|
3
|
-
cache: WeakMap<any, unknown>;
|
|
4
|
-
clone: InternalHandler<unknown>;
|
|
5
|
-
}
|
|
6
|
-
type Options = {
|
|
7
|
-
handler?: {
|
|
8
|
-
Array: InternalHandler<unknown[]>;
|
|
9
|
-
ArrayBuffer: InternalHandler<ArrayBuffer>;
|
|
10
|
-
Blob: InternalHandler<Blob>;
|
|
11
|
-
DataView: InternalHandler<DataView>;
|
|
12
|
-
Date: InternalHandler<Date>;
|
|
13
|
-
Error: InternalHandler<Error>;
|
|
14
|
-
Float32Array: InternalHandler<Float32Array>;
|
|
15
|
-
Float64Array: InternalHandler<Float64Array>;
|
|
16
|
-
Int8Array: InternalHandler<Int8Array>;
|
|
17
|
-
Int16Array: InternalHandler<Int16Array>;
|
|
18
|
-
Int32Array: InternalHandler<Int32Array>;
|
|
19
|
-
Map: InternalHandler<Map<unknown, unknown>>;
|
|
20
|
-
Object: InternalHandler<Record<string, unknown>>;
|
|
21
|
-
Promise: InternalHandler<Promise<unknown>>;
|
|
22
|
-
RegExp: InternalHandler<RegExp>;
|
|
23
|
-
Set: InternalHandler<Set<unknown>>;
|
|
24
|
-
WeakMap: InternalHandler<WeakMap<any, unknown>>;
|
|
25
|
-
WeakSet: InternalHandler<WeakSet<any>>;
|
|
26
|
-
};
|
|
27
|
-
strict?: boolean;
|
|
28
|
-
};
|
|
29
|
-
type TypedArray = BigInt64Array | BigUint64Array | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
|
|
30
|
-
|
|
31
|
-
export type { Options as O, State as S, TypedArray as T };
|
package/dist/utils.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
|
-
const copyOwnProperties = require('./packem_shared/copyOwnProperties-NdANNH2P.cjs');
|
|
6
|
-
const getCleanClone = require('./packem_shared/getCleanClone-BhfRMqgx.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.copyOwnProperties = copyOwnProperties;
|
|
11
|
-
exports.getCleanClone = getCleanClone;
|
package/dist/utils.d.cts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { S as State } from './packem_shared/types-_Qve7nv8.cjs';
|
|
2
|
-
|
|
3
|
-
declare const copyOwnProperties: <Value>(value: Value, clone: Value, state: State) => Value;
|
|
4
|
-
|
|
5
|
-
declare const getCleanClone: (input: unknown) => any;
|
|
6
|
-
|
|
7
|
-
export { copyOwnProperties, getCleanClone };
|
package/dist/utils.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { S as State } from './packem_shared/types-_Qve7nv8.mjs';
|
|
2
|
-
|
|
3
|
-
declare const copyOwnProperties: <Value>(value: Value, clone: Value, state: State) => Value;
|
|
4
|
-
|
|
5
|
-
declare const getCleanClone: (input: unknown) => any;
|
|
6
|
-
|
|
7
|
-
export { copyOwnProperties, getCleanClone };
|
package/dist/utils.mjs
DELETED