es-toolkit 1.17.0-dev.526 → 1.17.0-dev.528
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/initial-crEecP.js +513 -0
- package/dist/_chunk/{isTypedArray-BBEkFl.js → isTypedArray-Dsrnb1.js} +1 -11
- package/dist/_chunk/{isWeakSet-BRIIbG.js → isWeakSet-CogETi.js} +1 -1
- package/dist/_chunk/{toMerged-BGwYW5.js → toMerged-DN1PPP.js} +1 -1
- package/dist/array/index.js +56 -510
- package/dist/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/_internal/compareValues.mjs +30 -5
- package/dist/compat/array/orderBy.d.mts +6 -6
- package/dist/compat/array/orderBy.d.ts +6 -6
- package/dist/compat/array/orderBy.mjs +26 -18
- package/dist/compat/array/sortBy.d.mts +34 -0
- package/dist/compat/array/sortBy.d.ts +34 -0
- package/dist/compat/array/sortBy.mjs +7 -0
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +122 -85
- package/dist/compat/index.mjs +1 -1
- package/dist/index.js +59 -58
- package/dist/object/index.js +1 -1
- package/dist/predicate/index.js +2 -2
- package/dist/predicate/isTypedArray.mjs +1 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,78 +2,79 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const initial = require('./_chunk/initial-crEecP.js');
|
|
5
6
|
const array_index = require('./array/index.js');
|
|
6
7
|
const promise_index = require('./_chunk/index-BGZDR9.js');
|
|
7
8
|
const rest = require('./_chunk/rest-Bzm2XK.js');
|
|
8
9
|
const function_index = require('./function/index.js');
|
|
9
10
|
const math_index = require('./math/index.js');
|
|
10
11
|
const randomInt = require('./_chunk/randomInt-CF7bZK.js');
|
|
11
|
-
const toMerged = require('./_chunk/toMerged-
|
|
12
|
+
const toMerged = require('./_chunk/toMerged-DN1PPP.js');
|
|
12
13
|
const object_index = require('./object/index.js');
|
|
13
|
-
const isWeakSet = require('./_chunk/isWeakSet-
|
|
14
|
-
const isTypedArray = require('./_chunk/isTypedArray-
|
|
14
|
+
const isWeakSet = require('./_chunk/isWeakSet-CogETi.js');
|
|
15
|
+
const isTypedArray = require('./_chunk/isTypedArray-Dsrnb1.js');
|
|
15
16
|
const predicate_index = require('./predicate/index.js');
|
|
16
17
|
const string_index = require('./string/index.js');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
exports.at =
|
|
21
|
-
exports.chunk =
|
|
22
|
-
exports.compact =
|
|
23
|
-
exports.countBy =
|
|
24
|
-
exports.difference =
|
|
25
|
-
exports.differenceBy =
|
|
26
|
-
exports.differenceWith =
|
|
27
|
-
exports.drop =
|
|
28
|
-
exports.dropRight =
|
|
29
|
-
exports.dropRightWhile =
|
|
30
|
-
exports.dropWhile =
|
|
31
|
-
exports.fill =
|
|
32
|
-
exports.flatMap =
|
|
33
|
-
exports.flatMapDeep =
|
|
34
|
-
exports.flatten =
|
|
35
|
-
exports.flattenDeep =
|
|
36
|
-
exports.forEachRight =
|
|
37
|
-
exports.groupBy =
|
|
38
|
-
exports.head =
|
|
39
|
-
exports.initial =
|
|
40
|
-
exports.intersection =
|
|
41
|
-
exports.intersectionBy =
|
|
42
|
-
exports.intersectionWith =
|
|
43
|
-
exports.isSubset =
|
|
44
|
-
exports.join =
|
|
45
|
-
exports.keyBy =
|
|
46
|
-
exports.last =
|
|
47
|
-
exports.maxBy =
|
|
48
|
-
exports.minBy =
|
|
21
|
+
exports.at = initial.at;
|
|
22
|
+
exports.chunk = initial.chunk;
|
|
23
|
+
exports.compact = initial.compact;
|
|
24
|
+
exports.countBy = initial.countBy;
|
|
25
|
+
exports.difference = initial.difference;
|
|
26
|
+
exports.differenceBy = initial.differenceBy;
|
|
27
|
+
exports.differenceWith = initial.differenceWith;
|
|
28
|
+
exports.drop = initial.drop;
|
|
29
|
+
exports.dropRight = initial.dropRight;
|
|
30
|
+
exports.dropRightWhile = initial.dropRightWhile;
|
|
31
|
+
exports.dropWhile = initial.dropWhile;
|
|
32
|
+
exports.fill = initial.fill;
|
|
33
|
+
exports.flatMap = initial.flatMap;
|
|
34
|
+
exports.flatMapDeep = initial.flatMapDeep;
|
|
35
|
+
exports.flatten = initial.flatten;
|
|
36
|
+
exports.flattenDeep = initial.flattenDeep;
|
|
37
|
+
exports.forEachRight = initial.forEachRight;
|
|
38
|
+
exports.groupBy = initial.groupBy;
|
|
39
|
+
exports.head = initial.head;
|
|
40
|
+
exports.initial = initial.initial;
|
|
41
|
+
exports.intersection = initial.intersection;
|
|
42
|
+
exports.intersectionBy = initial.intersectionBy;
|
|
43
|
+
exports.intersectionWith = initial.intersectionWith;
|
|
44
|
+
exports.isSubset = initial.isSubset;
|
|
45
|
+
exports.join = initial.join;
|
|
46
|
+
exports.keyBy = initial.keyBy;
|
|
47
|
+
exports.last = initial.last;
|
|
48
|
+
exports.maxBy = initial.maxBy;
|
|
49
|
+
exports.minBy = initial.minBy;
|
|
50
|
+
exports.partition = initial.partition;
|
|
51
|
+
exports.pullAt = initial.pullAt;
|
|
52
|
+
exports.sample = initial.sample;
|
|
53
|
+
exports.sampleSize = initial.sampleSize;
|
|
54
|
+
exports.shuffle = initial.shuffle;
|
|
55
|
+
exports.tail = initial.tail;
|
|
56
|
+
exports.take = initial.take;
|
|
57
|
+
exports.takeRight = initial.takeRight;
|
|
58
|
+
exports.takeRightWhile = initial.takeRightWhile;
|
|
59
|
+
exports.takeWhile = initial.takeWhile;
|
|
60
|
+
exports.toFilled = initial.toFilled;
|
|
61
|
+
exports.union = initial.union;
|
|
62
|
+
exports.unionBy = initial.unionBy;
|
|
63
|
+
exports.unionWith = initial.unionWith;
|
|
64
|
+
exports.uniq = initial.uniq;
|
|
65
|
+
exports.uniqBy = initial.uniqBy;
|
|
66
|
+
exports.uniqWith = initial.uniqWith;
|
|
67
|
+
exports.unzip = initial.unzip;
|
|
68
|
+
exports.unzipWith = initial.unzipWith;
|
|
69
|
+
exports.without = initial.without;
|
|
70
|
+
exports.xor = initial.xor;
|
|
71
|
+
exports.xorBy = initial.xorBy;
|
|
72
|
+
exports.xorWith = initial.xorWith;
|
|
73
|
+
exports.zip = initial.zip;
|
|
74
|
+
exports.zipObject = initial.zipObject;
|
|
75
|
+
exports.zipWith = initial.zipWith;
|
|
49
76
|
exports.orderBy = array_index.orderBy;
|
|
50
|
-
exports.partition = array_index.partition;
|
|
51
|
-
exports.pullAt = array_index.pullAt;
|
|
52
|
-
exports.sample = array_index.sample;
|
|
53
|
-
exports.sampleSize = array_index.sampleSize;
|
|
54
|
-
exports.shuffle = array_index.shuffle;
|
|
55
77
|
exports.sortBy = array_index.sortBy;
|
|
56
|
-
exports.tail = array_index.tail;
|
|
57
|
-
exports.take = array_index.take;
|
|
58
|
-
exports.takeRight = array_index.takeRight;
|
|
59
|
-
exports.takeRightWhile = array_index.takeRightWhile;
|
|
60
|
-
exports.takeWhile = array_index.takeWhile;
|
|
61
|
-
exports.toFilled = array_index.toFilled;
|
|
62
|
-
exports.union = array_index.union;
|
|
63
|
-
exports.unionBy = array_index.unionBy;
|
|
64
|
-
exports.unionWith = array_index.unionWith;
|
|
65
|
-
exports.uniq = array_index.uniq;
|
|
66
|
-
exports.uniqBy = array_index.uniqBy;
|
|
67
|
-
exports.uniqWith = array_index.uniqWith;
|
|
68
|
-
exports.unzip = array_index.unzip;
|
|
69
|
-
exports.unzipWith = array_index.unzipWith;
|
|
70
|
-
exports.without = array_index.without;
|
|
71
|
-
exports.xor = array_index.xor;
|
|
72
|
-
exports.xorBy = array_index.xorBy;
|
|
73
|
-
exports.xorWith = array_index.xorWith;
|
|
74
|
-
exports.zip = array_index.zip;
|
|
75
|
-
exports.zipObject = array_index.zipObject;
|
|
76
|
-
exports.zipWith = array_index.zipWith;
|
|
77
78
|
exports.AbortError = promise_index.AbortError;
|
|
78
79
|
exports.TimeoutError = promise_index.TimeoutError;
|
|
79
80
|
exports.delay = promise_index.delay;
|
package/dist/object/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const toMerged = require('../_chunk/toMerged-
|
|
5
|
+
const toMerged = require('../_chunk/toMerged-DN1PPP.js');
|
|
6
6
|
|
|
7
7
|
function mergeWith(target, source, merge) {
|
|
8
8
|
const sourceKeys = Object.keys(source);
|
package/dist/predicate/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const isWeakSet = require('../_chunk/isWeakSet-
|
|
6
|
-
const isTypedArray = require('../_chunk/isTypedArray-
|
|
5
|
+
const isWeakSet = require('../_chunk/isWeakSet-CogETi.js');
|
|
6
|
+
const isTypedArray = require('../_chunk/isTypedArray-Dsrnb1.js');
|
|
7
7
|
|
|
8
8
|
function isRegExp(value) {
|
|
9
9
|
return value instanceof RegExp;
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
function isTypedArray(x) {
|
|
2
|
-
return (x instanceof
|
|
3
|
-
x instanceof Uint8ClampedArray ||
|
|
4
|
-
x instanceof Uint16Array ||
|
|
5
|
-
x instanceof Uint32Array ||
|
|
6
|
-
x instanceof BigUint64Array ||
|
|
7
|
-
x instanceof Int8Array ||
|
|
8
|
-
x instanceof Int16Array ||
|
|
9
|
-
x instanceof Int32Array ||
|
|
10
|
-
x instanceof BigInt64Array ||
|
|
11
|
-
x instanceof Float32Array ||
|
|
12
|
-
x instanceof Float64Array);
|
|
2
|
+
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
13
3
|
}
|
|
14
4
|
|
|
15
5
|
export { isTypedArray };
|
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.17.0-dev.
|
|
4
|
+
"version": "1.17.0-dev.528+ba0d03df",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|