es-toolkit 1.13.1-dev.317 → 1.13.1-dev.320
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/dist/array/index.mjs +49 -49
- package/dist/browser.js +101 -0
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +45 -43
- package/dist/browser.mjs.map +1 -1
- package/dist/chunk-5CPXZFCB.mjs +93 -0
- package/dist/chunk-5CPXZFCB.mjs.map +1 -0
- package/dist/chunk-STL6TD3L.mjs +1 -0
- package/dist/chunk-SXFMQQ6F.mjs +9 -0
- package/dist/chunk-SXFMQQ6F.mjs.map +1 -0
- package/dist/{chunk-HKO7DEJK.mjs → chunk-YNJH6GEG.mjs} +98 -84
- package/dist/chunk-YNJH6GEG.mjs.map +1 -0
- package/dist/chunk-YXAOYIRV.mjs +1 -0
- package/dist/compat/index.d.mts +20 -1
- package/dist/compat/index.d.ts +20 -1
- package/dist/compat/index.js +103 -0
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +98 -91
- package/dist/error/index.mjs +3 -3
- package/dist/function/index.mjs +9 -9
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +98 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +98 -90
- package/dist/object/cloneDeep.d.mts +64 -0
- package/dist/object/cloneDeep.d.ts +64 -0
- package/dist/object/cloneDeep.js +117 -0
- package/dist/object/cloneDeep.js.map +1 -0
- package/dist/object/cloneDeep.mjs +8 -0
- package/dist/object/cloneDeep.mjs.map +1 -0
- package/dist/object/index.d.mts +1 -0
- package/dist/object/index.d.ts +1 -0
- package/dist/object/index.js +91 -0
- package/dist/object/index.js.map +1 -1
- package/dist/object/index.mjs +8 -4
- package/dist/predicate/index.d.mts +1 -0
- package/dist/predicate/index.d.ts +1 -0
- package/dist/predicate/index.js +7 -0
- package/dist/predicate/index.js.map +1 -1
- package/dist/predicate/index.mjs +8 -4
- package/dist/predicate/isTypedArray.d.mts +19 -0
- package/dist/predicate/isTypedArray.d.ts +19 -0
- package/dist/predicate/isTypedArray.js +33 -0
- package/dist/predicate/isTypedArray.js.map +1 -0
- package/dist/predicate/isTypedArray.mjs +8 -0
- package/dist/predicate/isTypedArray.mjs.map +1 -0
- package/dist/promise/index.mjs +1 -1
- package/dist/promise/timeout.mjs +1 -1
- package/dist/promise/withTimeout.mjs +1 -1
- package/dist/string/index.mjs +6 -6
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- package/dist/chunk-54TK5BIS.mjs +0 -1
- package/dist/chunk-HKO7DEJK.mjs.map +0 -1
- package/dist/chunk-U4JWMVQK.mjs +0 -1
- /package/dist/{chunk-54TK5BIS.mjs.map → chunk-STL6TD3L.mjs.map} +0 -0
- /package/dist/{chunk-U4JWMVQK.mjs.map → chunk-YXAOYIRV.mjs.map} +0 -0
package/dist/browser.mjs
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compat_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YNJH6GEG.mjs";
|
|
4
4
|
import "./chunk-NKLIE2OI.mjs";
|
|
5
|
+
import "./chunk-4OIZM4HS.mjs";
|
|
6
|
+
import "./chunk-IIDZ3KAJ.mjs";
|
|
7
|
+
import "./chunk-CVVZHOJX.mjs";
|
|
8
|
+
import "./chunk-O64NE2P4.mjs";
|
|
5
9
|
import "./chunk-XT74R35S.mjs";
|
|
10
|
+
import "./chunk-5IKVJGHO.mjs";
|
|
11
|
+
import "./chunk-F3WCQQET.mjs";
|
|
6
12
|
import "./chunk-QXTNZR7B.mjs";
|
|
7
13
|
import "./chunk-Y5V7UAZZ.mjs";
|
|
8
14
|
import "./chunk-U56ZOM7L.mjs";
|
|
9
15
|
import "./chunk-EYYZQFOP.mjs";
|
|
10
|
-
import "./chunk-5IKVJGHO.mjs";
|
|
11
|
-
import "./chunk-F3WCQQET.mjs";
|
|
12
16
|
import "./chunk-WVQ7YVRK.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-CVVZHOJX.mjs";
|
|
16
|
-
import "./chunk-O64NE2P4.mjs";
|
|
17
|
-
import "./chunk-U4JWMVQK.mjs";
|
|
17
|
+
import "./chunk-STL6TD3L.mjs";
|
|
18
|
+
import "./chunk-74CREQXW.mjs";
|
|
18
19
|
import "./chunk-WMM7TZLG.mjs";
|
|
19
20
|
import "./chunk-BMRTZMRE.mjs";
|
|
20
21
|
import "./chunk-AIRSKN47.mjs";
|
|
22
|
+
import "./chunk-SXFMQQ6F.mjs";
|
|
21
23
|
import "./chunk-VH2PV426.mjs";
|
|
22
24
|
import "./chunk-LPZZIY5Z.mjs";
|
|
23
25
|
import "./chunk-27QMXBLJ.mjs";
|
|
24
26
|
import "./chunk-JYSV56US.mjs";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-YXAOYIRV.mjs";
|
|
28
|
+
import "./chunk-OLX53VEF.mjs";
|
|
27
29
|
import "./chunk-WFZXCGEG.mjs";
|
|
28
30
|
import "./chunk-BCTYOXT7.mjs";
|
|
29
31
|
import "./chunk-HPFDYUGP.mjs";
|
|
30
32
|
import "./chunk-6CLH5YZ2.mjs";
|
|
31
33
|
import "./chunk-VRUTBJYS.mjs";
|
|
34
|
+
import "./chunk-5CPXZFCB.mjs";
|
|
32
35
|
import "./chunk-XGQWTHW6.mjs";
|
|
33
36
|
import "./chunk-MIGAC7F4.mjs";
|
|
34
|
-
import "./chunk-OLX53VEF.mjs";
|
|
35
37
|
import "./chunk-FUS75PJ7.mjs";
|
|
36
38
|
import "./chunk-DPH2KE6O.mjs";
|
|
37
39
|
import "./chunk-5PMKOZ2F.mjs";
|
|
@@ -41,70 +43,70 @@ import "./chunk-BH6HLGBA.mjs";
|
|
|
41
43
|
import "./chunk-MY4G7R3I.mjs";
|
|
42
44
|
import "./chunk-5ASRKEB4.mjs";
|
|
43
45
|
import "./chunk-2SLTL4KL.mjs";
|
|
46
|
+
import "./chunk-F47GLYUU.mjs";
|
|
47
|
+
import "./chunk-KIOYQRMQ.mjs";
|
|
48
|
+
import "./chunk-ZA2XI3OV.mjs";
|
|
49
|
+
import "./chunk-QOJGMVVR.mjs";
|
|
50
|
+
import "./chunk-OGZMEWPR.mjs";
|
|
51
|
+
import "./chunk-3IP4JVLL.mjs";
|
|
52
|
+
import "./chunk-BOOQBJN2.mjs";
|
|
53
|
+
import "./chunk-LKXCOLNY.mjs";
|
|
54
|
+
import "./chunk-CMBC4MXG.mjs";
|
|
55
|
+
import "./chunk-DXB7EZUQ.mjs";
|
|
44
56
|
import "./chunk-DDH7K4QM.mjs";
|
|
45
|
-
import "./chunk-4KYXHZ4R.mjs";
|
|
46
|
-
import "./chunk-UYZKMBDO.mjs";
|
|
47
|
-
import "./chunk-IFNXROZR.mjs";
|
|
48
|
-
import "./chunk-PYEYV7BY.mjs";
|
|
49
57
|
import "./chunk-L7FQX5MN.mjs";
|
|
50
58
|
import "./chunk-Q47NGNXT.mjs";
|
|
51
59
|
import "./chunk-QRSJBBFY.mjs";
|
|
52
60
|
import "./chunk-OLORW442.mjs";
|
|
53
61
|
import "./chunk-6GWEY5EL.mjs";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-OP4OAKQJ.mjs";
|
|
56
|
-
import "./chunk-R6QA7PLZ.mjs";
|
|
62
|
+
import "./chunk-4KYXHZ4R.mjs";
|
|
57
63
|
import "./chunk-NFS7RWWE.mjs";
|
|
58
64
|
import "./chunk-2ZCITDMK.mjs";
|
|
59
|
-
import "./chunk-DVK2N4KC.mjs";
|
|
60
65
|
import "./chunk-B4COTK4K.mjs";
|
|
61
66
|
import "./chunk-237HGSZS.mjs";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-GIWAOOFY.mjs";
|
|
66
|
-
import "./chunk-SYWMYQYJ.mjs";
|
|
67
|
+
import "./chunk-UYZKMBDO.mjs";
|
|
68
|
+
import "./chunk-IFNXROZR.mjs";
|
|
69
|
+
import "./chunk-PYEYV7BY.mjs";
|
|
67
70
|
import "./chunk-G7UQ5PUR.mjs";
|
|
68
71
|
import "./chunk-TJ4Z5I7M.mjs";
|
|
69
72
|
import "./chunk-ME352XO7.mjs";
|
|
70
73
|
import "./chunk-N3QYJX4T.mjs";
|
|
71
74
|
import "./chunk-NTLX2MPV.mjs";
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-2IXFGSUA.mjs";
|
|
76
|
+
import "./chunk-OP4OAKQJ.mjs";
|
|
77
|
+
import "./chunk-R6QA7PLZ.mjs";
|
|
78
|
+
import "./chunk-DVK2N4KC.mjs";
|
|
75
79
|
import "./chunk-AJKZMN2V.mjs";
|
|
76
80
|
import "./chunk-KPBQ7OUY.mjs";
|
|
77
81
|
import "./chunk-OOKNBU4V.mjs";
|
|
78
82
|
import "./chunk-IJD7FE2Z.mjs";
|
|
79
83
|
import "./chunk-7B7W36UP.mjs";
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-DN3NOZ3H.mjs";
|
|
85
|
+
import "./chunk-2KNLZB7V.mjs";
|
|
86
|
+
import "./chunk-EHSKB6DF.mjs";
|
|
87
|
+
import "./chunk-GIWAOOFY.mjs";
|
|
88
|
+
import "./chunk-SYWMYQYJ.mjs";
|
|
83
89
|
import "./chunk-IEA53J7P.mjs";
|
|
84
90
|
import "./chunk-E6E4RZLN.mjs";
|
|
85
91
|
import "./chunk-HM2JT2RX.mjs";
|
|
86
92
|
import "./chunk-XPSOKBRZ.mjs";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-FVVSE2F2.mjs";
|
|
94
|
+
import "./chunk-O6UXZR3U.mjs";
|
|
95
|
+
import "./chunk-XI7KRD2C.mjs";
|
|
90
96
|
import "./chunk-3EZAFZG3.mjs";
|
|
91
97
|
import "./chunk-OXZCMC5I.mjs";
|
|
92
98
|
import "./chunk-M7SBBYV2.mjs";
|
|
93
99
|
import "./chunk-LJ2C6MVP.mjs";
|
|
94
100
|
import "./chunk-YFN6KOC4.mjs";
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-CMBC4MXG.mjs";
|
|
99
|
-
import "./chunk-QOJGMVVR.mjs";
|
|
101
|
+
import "./chunk-UY76KTPE.mjs";
|
|
102
|
+
import "./chunk-ML727RRJ.mjs";
|
|
103
|
+
import "./chunk-33MSBDC6.mjs";
|
|
100
104
|
import "./chunk-E6C5EZQA.mjs";
|
|
101
105
|
import "./chunk-DTJJIMKJ.mjs";
|
|
102
106
|
import "./chunk-CRSKT4WW.mjs";
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-OGZMEWPR.mjs";
|
|
107
|
-
import "./chunk-3IP4JVLL.mjs";
|
|
107
|
+
import "./chunk-JPUKH67K.mjs";
|
|
108
|
+
import "./chunk-LVWX5B43.mjs";
|
|
109
|
+
import "./chunk-6NVQAHXP.mjs";
|
|
108
110
|
import "./chunk-24FKGR6U.mjs";
|
|
109
111
|
|
|
110
112
|
// src/browser.ts
|
package/dist/browser.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/browser.ts"],"sourcesContent":["import * as toolkit from './compat/index.ts';\n\ninterface Window {\n _: typeof toolkit;\n}\n\ndeclare let window: Window;\nwindow._ = toolkit;\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/browser.ts"],"sourcesContent":["import * as toolkit from './compat/index.ts';\n\ninterface Window {\n _: typeof toolkit;\n}\n\ndeclare let window: Window;\nwindow._ = toolkit;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,OAAO,IAAI;","names":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// src/object/cloneDeep.ts
|
|
2
|
+
function cloneDeep(obj) {
|
|
3
|
+
if (isPrimitive(obj)) {
|
|
4
|
+
return obj;
|
|
5
|
+
}
|
|
6
|
+
if (Array.isArray(obj)) {
|
|
7
|
+
return obj.map((item) => cloneDeep(item));
|
|
8
|
+
}
|
|
9
|
+
if (obj instanceof Date) {
|
|
10
|
+
return new Date(obj.getTime());
|
|
11
|
+
}
|
|
12
|
+
if (obj instanceof RegExp) {
|
|
13
|
+
return new RegExp(obj.source, obj.flags);
|
|
14
|
+
}
|
|
15
|
+
if (obj instanceof Map) {
|
|
16
|
+
const result = /* @__PURE__ */ new Map();
|
|
17
|
+
for (const [key, value] of obj.entries()) {
|
|
18
|
+
result.set(key, cloneDeep(value));
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
if (obj instanceof Set) {
|
|
23
|
+
const result = /* @__PURE__ */ new Set();
|
|
24
|
+
for (const value of obj.values()) {
|
|
25
|
+
result.add(cloneDeep(value));
|
|
26
|
+
}
|
|
27
|
+
return result;
|
|
28
|
+
}
|
|
29
|
+
if (isTypedArray(obj)) {
|
|
30
|
+
const result = new (Object.getPrototypeOf(obj)).constructor(obj.length);
|
|
31
|
+
for (let i = 0; i < obj.length; i++) {
|
|
32
|
+
result[i] = cloneDeep(obj[i]);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
if (obj instanceof ArrayBuffer || obj instanceof SharedArrayBuffer) {
|
|
37
|
+
return obj.slice(0);
|
|
38
|
+
}
|
|
39
|
+
if (obj instanceof DataView) {
|
|
40
|
+
const result = new DataView(obj.buffer.slice(0));
|
|
41
|
+
cloneDeepHelper(obj, result);
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
if (typeof File !== "undefined" && obj instanceof File) {
|
|
45
|
+
const result = new File([obj], obj.name, { type: obj.type });
|
|
46
|
+
cloneDeepHelper(obj, result);
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
if (obj instanceof Blob) {
|
|
50
|
+
const result = new Blob([obj], { type: obj.type });
|
|
51
|
+
cloneDeepHelper(obj, result);
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
54
|
+
if (obj instanceof Error) {
|
|
55
|
+
const result = new obj.constructor();
|
|
56
|
+
result.message = obj.message;
|
|
57
|
+
result.name = obj.name;
|
|
58
|
+
result.stack = obj.stack;
|
|
59
|
+
result.cause = obj.cause;
|
|
60
|
+
cloneDeepHelper(obj, result);
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
if (typeof obj === "object" && obj !== null) {
|
|
64
|
+
const result = {};
|
|
65
|
+
cloneDeepHelper(obj, result);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
if (typeof obj === "function") {
|
|
69
|
+
return void 0;
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
}
|
|
73
|
+
function isPrimitive(value) {
|
|
74
|
+
return value == null || typeof value !== "object" && typeof value !== "function";
|
|
75
|
+
}
|
|
76
|
+
function cloneDeepHelper(obj, clonedObj) {
|
|
77
|
+
for (const key in obj) {
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
79
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, key);
|
|
80
|
+
if (((descriptor == null ? void 0 : descriptor.writable) || (descriptor == null ? void 0 : descriptor.set)) && typeof (descriptor == null ? void 0 : descriptor.value) !== "function") {
|
|
81
|
+
clonedObj[key] = cloneDeep(obj[key]);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function isTypedArray(obj) {
|
|
87
|
+
return obj instanceof Uint8Array || obj instanceof Uint8ClampedArray || obj instanceof Uint16Array || obj instanceof Uint32Array || obj instanceof BigUint64Array || obj instanceof Int8Array || obj instanceof Int16Array || obj instanceof Int32Array || obj instanceof BigInt64Array || obj instanceof Float32Array || obj instanceof Float64Array;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
cloneDeep
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=chunk-5CPXZFCB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/object/cloneDeep.ts"],"sourcesContent":["/**\n * Creates a deep clone of the given object.\n *\n * @template T - The type of the object.\n * @param {T} obj - The object to clone.\n * @returns {T} - A deep clone of the given object.\n *\n * @example\n * // Clone a primitive values\n * const num = 29;\n * const clonedNum = clone(num);\n * console.log(clonedNum); // 29\n * console.log(clonedNum === num) ; // true\n *\n * @example\n * // Clone an array\n * const arr = [1, 2, 3];\n * const clonedArr = clone(arr);\n * console.log(clonedArr); // [1, 2, 3]\n * console.log(clonedArr === arr); // false\n *\n * @example\n * // Clone an array with nested objects\n * const arr = [1, { a: 1 }, [1, 2, 3]];\n * const clonedArr = clone(arr);\n * arr[1].a = 2;\n * console.log(arr); // [2, { a: 2 }, [1, 2, 3]]\n * console.log(clonedArr); // [1, { a: 1 }, [1, 2, 3]]\n * console.log(clonedArr === arr); // false\n *\n * @example\n * // Clone an object\n * const obj = { a: 1, b: 'es-toolkit', c: [1, 2, 3] };\n * const clonedObj = clone(obj);\n * console.log(clonedObj); // { a: 1, b: 'es-toolkit', c: [1, 2, 3] }\n * console.log(clonedObj === obj); // false\n *\n * @example\n * // Clone an object with nested objects\n * const obj = { a: 1, b: { c: 1 } };\n * const clonedObj = clone(obj);\n * obj.b.c = 2;\n * console.log(obj); // { a: 1, b: { c: 2 } }\n * console.log(clonedObj); // { a: 1, b: { c: 1 } }\n * console.log(clonedObj === obj); // false\n */\nexport function cloneDeep<T>(obj: T): Resolved<T> {\n if (isPrimitive(obj)) {\n return obj as Resolved<T>;\n }\n\n if (Array.isArray(obj)) {\n return obj.map(item => cloneDeep(item)) as Resolved<T>;\n }\n\n if (obj instanceof Date) {\n return new Date(obj.getTime()) as Resolved<T>;\n }\n\n if (obj instanceof RegExp) {\n return new RegExp(obj.source, obj.flags) as Resolved<T>;\n }\n\n if (obj instanceof Map) {\n const result = new Map();\n for (const [key, value] of obj.entries()) {\n result.set(key, cloneDeep(value));\n }\n return result as Resolved<T>;\n }\n\n if (obj instanceof Set) {\n const result = new Set();\n for (const value of obj.values()) {\n result.add(cloneDeep(value));\n }\n return result as Resolved<T>;\n }\n\n if (isTypedArray(obj)) {\n const result = new (Object.getPrototypeOf(obj).constructor)(obj.length);\n for (let i = 0; i < obj.length; i++) {\n result[i] = cloneDeep(obj[i]);\n }\n return result as Resolved<T>;\n }\n\n if (obj instanceof ArrayBuffer || obj instanceof SharedArrayBuffer) {\n return obj.slice(0) as Resolved<T>;\n }\n\n if (obj instanceof DataView) {\n const result = new DataView(obj.buffer.slice(0));\n cloneDeepHelper(obj, result);\n return result as Resolved<T>;\n }\n\n // For legacy NodeJS support\n if (typeof File !== 'undefined' && obj instanceof File) {\n const result = new File([obj], obj.name, { type: obj.type });\n cloneDeepHelper(obj, result);\n return result as Resolved<T>;\n }\n\n if (obj instanceof Blob) {\n const result = new Blob([obj], { type: obj.type });\n cloneDeepHelper(obj, result);\n return result as Resolved<T>;\n }\n\n if (obj instanceof Error) {\n const result = new (obj.constructor as { new (): Error })();\n result.message = obj.message;\n result.name = obj.name;\n result.stack = obj.stack;\n result.cause = obj.cause;\n cloneDeepHelper(obj, result);\n return result as Resolved<T>;\n }\n\n if (typeof obj === 'object' && obj !== null) {\n const result = {};\n cloneDeepHelper(obj, result);\n return result as Resolved<T>;\n }\n\n if (typeof obj === 'function') {\n return void 0 as Resolved<T>;\n }\n\n return obj as Resolved<T>;\n}\n\ntype Primitive = null | undefined | string | number | boolean | symbol | bigint;\nfunction isPrimitive(value: unknown): value is Primitive {\n return value == null || (typeof value !== 'object' && typeof value !== 'function');\n}\n\n// eslint-disable-next-line\nfunction cloneDeepHelper(obj: any, clonedObj: any): void {\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n const descriptor = Object.getOwnPropertyDescriptor(obj, key);\n if ((descriptor?.writable || descriptor?.set) && typeof descriptor?.value !== 'function') {\n clonedObj[key] = cloneDeep(obj[key]);\n }\n }\n }\n}\n\nfunction isTypedArray(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n obj: any\n): obj is\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | BigUint64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigInt64Array\n | Float32Array\n | Float64Array {\n return (\n obj instanceof Uint8Array ||\n obj instanceof Uint8ClampedArray ||\n obj instanceof Uint16Array ||\n obj instanceof Uint32Array ||\n obj instanceof BigUint64Array ||\n obj instanceof Int8Array ||\n obj instanceof Int16Array ||\n obj instanceof Int32Array ||\n obj instanceof BigInt64Array ||\n obj instanceof Float32Array ||\n obj instanceof Float64Array\n );\n}\n\nexport type Resolved<T> = Equal<T, ResolvedMain<T>> extends true ? T : ResolvedMain<T>;\n\ntype Equal<X, Y> = X extends Y ? (Y extends X ? true : false) : false;\n\ntype ResolvedMain<T> = T extends [never]\n ? never // (special trick for jsonable | null) type\n : ValueOf<T> extends boolean | number | bigint | string\n ? ValueOf<T>\n : T extends (...args: any[]) => any\n ? never\n : T extends object\n ? ResolvedObject<T>\n : ValueOf<T>;\n\ntype ResolvedObject<T extends object> =\n T extends Array<infer U>\n ? IsTuple<T> extends true\n ? ResolvedTuple<T>\n : Array<ResolvedMain<U>>\n : T extends Set<infer U>\n ? Set<ResolvedMain<U>>\n : T extends Map<infer K, infer V>\n ? Map<ResolvedMain<K>, ResolvedMain<V>>\n : T extends WeakSet<any> | WeakMap<any, any>\n ? never\n : T extends\n | Date\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | BigUint64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigInt64Array\n | Float32Array\n | Float64Array\n | ArrayBuffer\n | SharedArrayBuffer\n | DataView\n | Blob\n | File\n ? T\n : {\n [P in keyof T]: ResolvedMain<T[P]>;\n };\n\ntype ResolvedTuple<T extends readonly any[]> = T extends []\n ? []\n : T extends [infer F]\n ? [ResolvedMain<F>]\n : T extends [infer F, ...infer Rest extends readonly any[]]\n ? [ResolvedMain<F>, ...ResolvedTuple<Rest>]\n : T extends [(infer F)?]\n ? [ResolvedMain<F>?]\n : T extends [(infer F)?, ...infer Rest extends readonly any[]]\n ? [ResolvedMain<F>?, ...ResolvedTuple<Rest>]\n : [];\n\ntype IsTuple<T extends readonly any[] | { length: number }> = [T] extends [never]\n ? false\n : T extends readonly any[]\n ? number extends T['length']\n ? false\n : true\n : false;\n\ntype ValueOf<Instance> =\n IsValueOf<Instance, boolean> extends true\n ? boolean\n : IsValueOf<Instance, number> extends true\n ? number\n : IsValueOf<Instance, string> extends true\n ? string\n : Instance;\n\ntype IsValueOf<Instance, O extends IValueOf<any>> = Instance extends O\n ? O extends IValueOf<infer Primitive>\n ? Instance extends Primitive\n ? false\n : true // not Primitive, but Object\n : false // cannot be\n : false;\n\ninterface IValueOf<T> {\n valueOf(): T;\n}\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-STL6TD3L.mjs.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// src/predicate/isTypedArray.ts
|
|
2
|
+
function isTypedArray(x) {
|
|
3
|
+
return x instanceof Uint8Array || x instanceof Uint8ClampedArray || x instanceof Uint16Array || x instanceof Uint32Array || x instanceof BigUint64Array || x instanceof Int8Array || x instanceof Int16Array || x instanceof Int32Array || x instanceof BigInt64Array || x instanceof Float32Array || x instanceof Float64Array;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
isTypedArray
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=chunk-SXFMQQ6F.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/predicate/isTypedArray.ts"],"sourcesContent":["/**\n * Checks if a value is a TypedArray.\n * @param {unknown} x The value to check.\n * @returns {x is\n * | Uint8Array\n * | Uint8ClampedArray\n * | Uint16Array\n * | Uint32Array\n * | BigUint64Array\n * | Int8Array\n * | Int16Array\n * | Int32Array\n * | BigInt64Array\n * | Float32Array\n * | Float64Array} Returns true if `x` is a TypedArray, false otherwise.\n */\nexport function isTypedArray(\n x: unknown\n): x is\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | BigUint64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigInt64Array\n | Float32Array\n | Float64Array {\n return (\n x instanceof Uint8Array ||\n x instanceof Uint8ClampedArray ||\n x instanceof Uint16Array ||\n x instanceof Uint32Array ||\n x instanceof BigUint64Array ||\n x instanceof Int8Array ||\n x instanceof Int16Array ||\n x instanceof Int32Array ||\n x instanceof BigInt64Array ||\n x instanceof Float32Array ||\n x instanceof Float64Array\n );\n}\n"],"mappings":";AAgBO,SAAS,aACd,GAYe;AACf,SACE,aAAa,cACb,aAAa,qBACb,aAAa,eACb,aAAa,eACb,aAAa,kBACb,aAAa,aACb,aAAa,cACb,aAAa,cACb,aAAa,iBACb,aAAa,gBACb,aAAa;AAEjB;","names":[]}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withTimeout
|
|
3
|
+
} from "./chunk-IIDZ3KAJ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
delay
|
|
6
|
+
} from "./chunk-O64NE2P4.mjs";
|
|
7
|
+
import {
|
|
8
|
+
lowerCase
|
|
9
|
+
} from "./chunk-5IKVJGHO.mjs";
|
|
10
|
+
import {
|
|
11
|
+
snakeCase
|
|
12
|
+
} from "./chunk-F3WCQQET.mjs";
|
|
1
13
|
import {
|
|
2
14
|
startCase
|
|
3
15
|
} from "./chunk-QXTNZR7B.mjs";
|
|
@@ -11,17 +23,8 @@ import {
|
|
|
11
23
|
kebabCase
|
|
12
24
|
} from "./chunk-EYYZQFOP.mjs";
|
|
13
25
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
snakeCase
|
|
18
|
-
} from "./chunk-F3WCQQET.mjs";
|
|
19
|
-
import {
|
|
20
|
-
withTimeout
|
|
21
|
-
} from "./chunk-IIDZ3KAJ.mjs";
|
|
22
|
-
import {
|
|
23
|
-
delay
|
|
24
|
-
} from "./chunk-O64NE2P4.mjs";
|
|
26
|
+
isFunction
|
|
27
|
+
} from "./chunk-74CREQXW.mjs";
|
|
25
28
|
import {
|
|
26
29
|
isNil
|
|
27
30
|
} from "./chunk-WMM7TZLG.mjs";
|
|
@@ -31,6 +34,9 @@ import {
|
|
|
31
34
|
import {
|
|
32
35
|
isNull
|
|
33
36
|
} from "./chunk-AIRSKN47.mjs";
|
|
37
|
+
import {
|
|
38
|
+
isTypedArray
|
|
39
|
+
} from "./chunk-SXFMQQ6F.mjs";
|
|
34
40
|
import {
|
|
35
41
|
isUndefined
|
|
36
42
|
} from "./chunk-VH2PV426.mjs";
|
|
@@ -44,8 +50,8 @@ import {
|
|
|
44
50
|
isEqual
|
|
45
51
|
} from "./chunk-JYSV56US.mjs";
|
|
46
52
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunk-
|
|
53
|
+
invert
|
|
54
|
+
} from "./chunk-OLX53VEF.mjs";
|
|
49
55
|
import {
|
|
50
56
|
omit
|
|
51
57
|
} from "./chunk-WFZXCGEG.mjs";
|
|
@@ -61,12 +67,12 @@ import {
|
|
|
61
67
|
import {
|
|
62
68
|
clone
|
|
63
69
|
} from "./chunk-VRUTBJYS.mjs";
|
|
70
|
+
import {
|
|
71
|
+
cloneDeep
|
|
72
|
+
} from "./chunk-5CPXZFCB.mjs";
|
|
64
73
|
import {
|
|
65
74
|
flattenObject
|
|
66
75
|
} from "./chunk-XGQWTHW6.mjs";
|
|
67
|
-
import {
|
|
68
|
-
invert
|
|
69
|
-
} from "./chunk-OLX53VEF.mjs";
|
|
70
76
|
import {
|
|
71
77
|
range
|
|
72
78
|
} from "./chunk-DPH2KE6O.mjs";
|
|
@@ -92,17 +98,29 @@ import {
|
|
|
92
98
|
sum
|
|
93
99
|
} from "./chunk-2SLTL4KL.mjs";
|
|
94
100
|
import {
|
|
95
|
-
|
|
96
|
-
} from "./chunk-
|
|
101
|
+
TimeoutError
|
|
102
|
+
} from "./chunk-KIOYQRMQ.mjs";
|
|
97
103
|
import {
|
|
98
|
-
|
|
99
|
-
} from "./chunk-
|
|
104
|
+
throttle
|
|
105
|
+
} from "./chunk-QOJGMVVR.mjs";
|
|
100
106
|
import {
|
|
101
|
-
|
|
102
|
-
} from "./chunk-
|
|
107
|
+
after
|
|
108
|
+
} from "./chunk-OGZMEWPR.mjs";
|
|
103
109
|
import {
|
|
104
|
-
|
|
105
|
-
} from "./chunk-
|
|
110
|
+
debounce
|
|
111
|
+
} from "./chunk-3IP4JVLL.mjs";
|
|
112
|
+
import {
|
|
113
|
+
negate
|
|
114
|
+
} from "./chunk-BOOQBJN2.mjs";
|
|
115
|
+
import {
|
|
116
|
+
noop
|
|
117
|
+
} from "./chunk-LKXCOLNY.mjs";
|
|
118
|
+
import {
|
|
119
|
+
once
|
|
120
|
+
} from "./chunk-CMBC4MXG.mjs";
|
|
121
|
+
import {
|
|
122
|
+
AbortError
|
|
123
|
+
} from "./chunk-DXB7EZUQ.mjs";
|
|
106
124
|
import {
|
|
107
125
|
xor
|
|
108
126
|
} from "./chunk-L7FQX5MN.mjs";
|
|
@@ -119,23 +137,14 @@ import {
|
|
|
119
137
|
zipObject
|
|
120
138
|
} from "./chunk-6GWEY5EL.mjs";
|
|
121
139
|
import {
|
|
122
|
-
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import {
|
|
125
|
-
toFilled
|
|
126
|
-
} from "./chunk-OP4OAKQJ.mjs";
|
|
127
|
-
import {
|
|
128
|
-
union
|
|
129
|
-
} from "./chunk-R6QA7PLZ.mjs";
|
|
140
|
+
zipWith
|
|
141
|
+
} from "./chunk-4KYXHZ4R.mjs";
|
|
130
142
|
import {
|
|
131
143
|
unionBy
|
|
132
144
|
} from "./chunk-NFS7RWWE.mjs";
|
|
133
145
|
import {
|
|
134
146
|
unionWith
|
|
135
147
|
} from "./chunk-2ZCITDMK.mjs";
|
|
136
|
-
import {
|
|
137
|
-
uniq
|
|
138
|
-
} from "./chunk-DVK2N4KC.mjs";
|
|
139
148
|
import {
|
|
140
149
|
uniqBy
|
|
141
150
|
} from "./chunk-B4COTK4K.mjs";
|
|
@@ -143,20 +152,14 @@ import {
|
|
|
143
152
|
uniqWith
|
|
144
153
|
} from "./chunk-237HGSZS.mjs";
|
|
145
154
|
import {
|
|
146
|
-
|
|
147
|
-
} from "./chunk-
|
|
148
|
-
import {
|
|
149
|
-
sample
|
|
150
|
-
} from "./chunk-2KNLZB7V.mjs";
|
|
151
|
-
import {
|
|
152
|
-
sampleSize
|
|
153
|
-
} from "./chunk-EHSKB6DF.mjs";
|
|
155
|
+
unzip
|
|
156
|
+
} from "./chunk-UYZKMBDO.mjs";
|
|
154
157
|
import {
|
|
155
|
-
|
|
156
|
-
} from "./chunk-
|
|
158
|
+
unzipWith
|
|
159
|
+
} from "./chunk-IFNXROZR.mjs";
|
|
157
160
|
import {
|
|
158
|
-
|
|
159
|
-
} from "./chunk-
|
|
161
|
+
without
|
|
162
|
+
} from "./chunk-PYEYV7BY.mjs";
|
|
160
163
|
import {
|
|
161
164
|
shuffle
|
|
162
165
|
} from "./chunk-G7UQ5PUR.mjs";
|
|
@@ -173,14 +176,17 @@ import {
|
|
|
173
176
|
takeRightWhile
|
|
174
177
|
} from "./chunk-NTLX2MPV.mjs";
|
|
175
178
|
import {
|
|
176
|
-
|
|
177
|
-
} from "./chunk-
|
|
179
|
+
takeWhile
|
|
180
|
+
} from "./chunk-2IXFGSUA.mjs";
|
|
178
181
|
import {
|
|
179
|
-
|
|
180
|
-
} from "./chunk-
|
|
182
|
+
toFilled
|
|
183
|
+
} from "./chunk-OP4OAKQJ.mjs";
|
|
181
184
|
import {
|
|
182
|
-
|
|
183
|
-
} from "./chunk-
|
|
185
|
+
union
|
|
186
|
+
} from "./chunk-R6QA7PLZ.mjs";
|
|
187
|
+
import {
|
|
188
|
+
uniq
|
|
189
|
+
} from "./chunk-DVK2N4KC.mjs";
|
|
184
190
|
import {
|
|
185
191
|
keyBy
|
|
186
192
|
} from "./chunk-AJKZMN2V.mjs";
|
|
@@ -197,14 +203,20 @@ import {
|
|
|
197
203
|
orderBy
|
|
198
204
|
} from "./chunk-7B7W36UP.mjs";
|
|
199
205
|
import {
|
|
200
|
-
|
|
201
|
-
} from "./chunk-
|
|
206
|
+
partition
|
|
207
|
+
} from "./chunk-DN3NOZ3H.mjs";
|
|
202
208
|
import {
|
|
203
|
-
|
|
204
|
-
} from "./chunk-
|
|
209
|
+
sample
|
|
210
|
+
} from "./chunk-2KNLZB7V.mjs";
|
|
205
211
|
import {
|
|
206
|
-
|
|
207
|
-
} from "./chunk-
|
|
212
|
+
sampleSize
|
|
213
|
+
} from "./chunk-EHSKB6DF.mjs";
|
|
214
|
+
import {
|
|
215
|
+
randomInt
|
|
216
|
+
} from "./chunk-GIWAOOFY.mjs";
|
|
217
|
+
import {
|
|
218
|
+
random
|
|
219
|
+
} from "./chunk-SYWMYQYJ.mjs";
|
|
208
220
|
import {
|
|
209
221
|
forEachRight
|
|
210
222
|
} from "./chunk-IEA53J7P.mjs";
|
|
@@ -218,14 +230,14 @@ import {
|
|
|
218
230
|
initial
|
|
219
231
|
} from "./chunk-XPSOKBRZ.mjs";
|
|
220
232
|
import {
|
|
221
|
-
|
|
222
|
-
} from "./chunk-
|
|
233
|
+
intersection
|
|
234
|
+
} from "./chunk-FVVSE2F2.mjs";
|
|
223
235
|
import {
|
|
224
|
-
|
|
225
|
-
} from "./chunk-
|
|
236
|
+
intersectionBy
|
|
237
|
+
} from "./chunk-O6UXZR3U.mjs";
|
|
226
238
|
import {
|
|
227
|
-
|
|
228
|
-
} from "./chunk-
|
|
239
|
+
intersectionWith
|
|
240
|
+
} from "./chunk-XI7KRD2C.mjs";
|
|
229
241
|
import {
|
|
230
242
|
drop
|
|
231
243
|
} from "./chunk-3EZAFZG3.mjs";
|
|
@@ -242,17 +254,14 @@ import {
|
|
|
242
254
|
fill
|
|
243
255
|
} from "./chunk-YFN6KOC4.mjs";
|
|
244
256
|
import {
|
|
245
|
-
|
|
246
|
-
} from "./chunk-
|
|
247
|
-
import {
|
|
248
|
-
noop
|
|
249
|
-
} from "./chunk-LKXCOLNY.mjs";
|
|
257
|
+
flatMap
|
|
258
|
+
} from "./chunk-UY76KTPE.mjs";
|
|
250
259
|
import {
|
|
251
|
-
|
|
252
|
-
} from "./chunk-
|
|
260
|
+
flattenDeep
|
|
261
|
+
} from "./chunk-ML727RRJ.mjs";
|
|
253
262
|
import {
|
|
254
|
-
|
|
255
|
-
} from "./chunk-
|
|
263
|
+
flatten
|
|
264
|
+
} from "./chunk-33MSBDC6.mjs";
|
|
256
265
|
import {
|
|
257
266
|
chunk
|
|
258
267
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -263,17 +272,14 @@ import {
|
|
|
263
272
|
countBy
|
|
264
273
|
} from "./chunk-CRSKT4WW.mjs";
|
|
265
274
|
import {
|
|
266
|
-
|
|
267
|
-
} from "./chunk-
|
|
268
|
-
import {
|
|
269
|
-
TimeoutError
|
|
270
|
-
} from "./chunk-KIOYQRMQ.mjs";
|
|
275
|
+
difference
|
|
276
|
+
} from "./chunk-JPUKH67K.mjs";
|
|
271
277
|
import {
|
|
272
|
-
|
|
273
|
-
} from "./chunk-
|
|
278
|
+
differenceBy
|
|
279
|
+
} from "./chunk-LVWX5B43.mjs";
|
|
274
280
|
import {
|
|
275
|
-
|
|
276
|
-
} from "./chunk-
|
|
281
|
+
differenceWith
|
|
282
|
+
} from "./chunk-6NVQAHXP.mjs";
|
|
277
283
|
import {
|
|
278
284
|
__export
|
|
279
285
|
} from "./chunk-24FKGR6U.mjs";
|
|
@@ -289,6 +295,7 @@ __export(compat_exports, {
|
|
|
289
295
|
chunk: () => chunk2,
|
|
290
296
|
clamp: () => clamp,
|
|
291
297
|
clone: () => clone,
|
|
298
|
+
cloneDeep: () => cloneDeep,
|
|
292
299
|
compact: () => compact,
|
|
293
300
|
concat: () => concat,
|
|
294
301
|
countBy: () => countBy,
|
|
@@ -327,6 +334,7 @@ __export(compat_exports, {
|
|
|
327
334
|
isNotNil: () => isNotNil,
|
|
328
335
|
isNull: () => isNull,
|
|
329
336
|
isPlainObject: () => isPlainObject,
|
|
337
|
+
isTypedArray: () => isTypedArray2,
|
|
330
338
|
isUndefined: () => isUndefined,
|
|
331
339
|
kebabCase: () => kebabCase,
|
|
332
340
|
keyBy: () => keyBy,
|
|
@@ -578,6 +586,11 @@ function isArray(value) {
|
|
|
578
586
|
return Array.isArray(value);
|
|
579
587
|
}
|
|
580
588
|
|
|
589
|
+
// src/compat/predicate/isTypedArray.ts
|
|
590
|
+
function isTypedArray2(x) {
|
|
591
|
+
return isTypedArray(x);
|
|
592
|
+
}
|
|
593
|
+
|
|
581
594
|
// src/compat/string/startsWith.ts
|
|
582
595
|
var startsWith = (str, target, position = 0) => {
|
|
583
596
|
return str.startsWith(target, position);
|
|
@@ -624,10 +637,11 @@ export {
|
|
|
624
637
|
get,
|
|
625
638
|
isPlainObject,
|
|
626
639
|
isArray,
|
|
640
|
+
isTypedArray2 as isTypedArray,
|
|
627
641
|
startsWith,
|
|
628
642
|
endsWith,
|
|
629
643
|
max,
|
|
630
644
|
min,
|
|
631
645
|
compat_exports
|
|
632
646
|
};
|
|
633
|
-
//# sourceMappingURL=chunk-
|
|
647
|
+
//# sourceMappingURL=chunk-YNJH6GEG.mjs.map
|