es-toolkit 1.21.0-dev.667 → 1.21.0-dev.668
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/_chunk/{toMerged-D-sLFv.js → toMerged-DVBECd.js} +4 -1
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/object/clone.mjs +4 -1
- package/dist/object/index.js +1 -1
- package/package.json +1 -1
package/dist/compat/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const promise_index = require('../_chunk/index-BGZDR9.js');
|
|
|
7
7
|
const rest$1 = require('../_chunk/rest-pUyjvl.js');
|
|
8
8
|
const range = require('../_chunk/range-BXlMmn.js');
|
|
9
9
|
const randomInt = require('../_chunk/randomInt-CF7bZK.js');
|
|
10
|
-
const toMerged = require('../_chunk/toMerged-
|
|
10
|
+
const toMerged = require('../_chunk/toMerged-DVBECd.js');
|
|
11
11
|
const isPlainObject$1 = require('../_chunk/isPlainObject-BIekvL.js');
|
|
12
12
|
const isWeakSet$1 = require('../_chunk/isWeakSet-clQklw.js');
|
|
13
13
|
const pad$1 = require('../_chunk/pad-Cw2pvt.js');
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const range = require('./_chunk/range-BXlMmn.js');
|
|
|
11
11
|
const randomInt = require('./_chunk/randomInt-CF7bZK.js');
|
|
12
12
|
const math_index = require('./math/index.js');
|
|
13
13
|
const object_index = require('./object/index.js');
|
|
14
|
-
const toMerged = require('./_chunk/toMerged-
|
|
14
|
+
const toMerged = require('./_chunk/toMerged-DVBECd.js');
|
|
15
15
|
const isWeakSet = require('./_chunk/isWeakSet-clQklw.js');
|
|
16
16
|
const predicate_index = require('./predicate/index.js');
|
|
17
17
|
const isPlainObject = require('./_chunk/isPlainObject-BIekvL.js');
|
package/dist/object/clone.mjs
CHANGED
|
@@ -5,7 +5,10 @@ function clone(obj) {
|
|
|
5
5
|
if (isPrimitive(obj)) {
|
|
6
6
|
return obj;
|
|
7
7
|
}
|
|
8
|
-
if (Array.isArray(obj) ||
|
|
8
|
+
if (Array.isArray(obj) ||
|
|
9
|
+
isTypedArray(obj) ||
|
|
10
|
+
obj instanceof ArrayBuffer ||
|
|
11
|
+
(typeof SharedArrayBuffer !== 'undefined' && obj instanceof SharedArrayBuffer)) {
|
|
9
12
|
return obj.slice(0);
|
|
10
13
|
}
|
|
11
14
|
const prototype = Object.getPrototypeOf(obj);
|
package/dist/object/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.21.0-dev.
|
|
4
|
+
"version": "1.21.0-dev.668+f70e36bd",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|