es-toolkit 1.13.1-dev.297 → 1.13.1-dev.299
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/browser.js +3 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +3 -3
- package/dist/{chunk-BJWAMCFH.mjs → chunk-NTFAWMZV.mjs} +5 -5
- package/dist/{chunk-U4JGKZ56.mjs → chunk-VRUTBJYS.mjs} +4 -2
- package/dist/{chunk-U4JGKZ56.mjs.map → chunk-VRUTBJYS.mjs.map} +1 -1
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +5 -5
- package/dist/function/index.mjs +3 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/object/clone.js +3 -1
- package/dist/object/clone.js.map +1 -1
- package/dist/object/clone.mjs +1 -1
- package/dist/object/index.js +3 -1
- package/dist/object/index.js.map +1 -1
- package/dist/object/index.mjs +1 -1
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- /package/dist/{chunk-BJWAMCFH.mjs.map → chunk-NTFAWMZV.mjs.map} +0 -0
package/dist/compat/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
set,
|
|
11
11
|
startsWith,
|
|
12
12
|
zipObjectDeep
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-NTFAWMZV.mjs";
|
|
14
14
|
import "../chunk-NKLIE2OI.mjs";
|
|
15
15
|
import "../chunk-XT74R35S.mjs";
|
|
16
16
|
import {
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "../chunk-6CLH5YZ2.mjs";
|
|
72
72
|
import {
|
|
73
73
|
clone
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-VRUTBJYS.mjs";
|
|
75
75
|
import {
|
|
76
76
|
flattenObject
|
|
77
77
|
} from "../chunk-XGQWTHW6.mjs";
|
|
@@ -271,9 +271,6 @@ import {
|
|
|
271
271
|
TimeoutError
|
|
272
272
|
} from "../chunk-KIOYQRMQ.mjs";
|
|
273
273
|
import "../chunk-236H5JZJ.mjs";
|
|
274
|
-
import {
|
|
275
|
-
negate
|
|
276
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
277
274
|
import {
|
|
278
275
|
noop
|
|
279
276
|
} from "../chunk-LKXCOLNY.mjs";
|
|
@@ -286,6 +283,9 @@ import {
|
|
|
286
283
|
import {
|
|
287
284
|
debounce
|
|
288
285
|
} from "../chunk-3IP4JVLL.mjs";
|
|
286
|
+
import {
|
|
287
|
+
negate
|
|
288
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
289
289
|
import "../chunk-24FKGR6U.mjs";
|
|
290
290
|
export {
|
|
291
291
|
AbortError,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
negate
|
|
4
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
5
2
|
import {
|
|
6
3
|
noop
|
|
7
4
|
} from "../chunk-LKXCOLNY.mjs";
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
debounce
|
|
16
13
|
} from "../chunk-3IP4JVLL.mjs";
|
|
14
|
+
import {
|
|
15
|
+
negate
|
|
16
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
17
17
|
import "../chunk-24FKGR6U.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.js
CHANGED
|
@@ -912,7 +912,9 @@ function clone(obj) {
|
|
|
912
912
|
return result;
|
|
913
913
|
}
|
|
914
914
|
if (typeof obj === "object") {
|
|
915
|
-
|
|
915
|
+
const prototype = Object.getPrototypeOf(obj);
|
|
916
|
+
const result = Object.create(prototype);
|
|
917
|
+
return Object.assign(result, obj);
|
|
916
918
|
}
|
|
917
919
|
return obj;
|
|
918
920
|
}
|