es-toolkit 1.17.0-dev.521 → 1.17.0-dev.523

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.
@@ -8,6 +8,7 @@ export { dropRight } from '../array/dropRight.mjs';
8
8
  export { dropRightWhile } from '../array/dropRightWhile.mjs';
9
9
  export { dropWhile } from '../array/dropWhile.mjs';
10
10
  export { flatMap } from '../array/flatMap.mjs';
11
+ export { flatMapDeep } from '../array/flatMapDeep.mjs';
11
12
  export { forEachRight } from '../array/forEachRight.mjs';
12
13
  export { groupBy } from '../array/groupBy.mjs';
13
14
  export { intersection } from '../array/intersection.mjs';
@@ -8,6 +8,7 @@ export { dropRight } from '../array/dropRight.js';
8
8
  export { dropRightWhile } from '../array/dropRightWhile.js';
9
9
  export { dropWhile } from '../array/dropWhile.js';
10
10
  export { flatMap } from '../array/flatMap.js';
11
+ export { flatMapDeep } from '../array/flatMapDeep.js';
11
12
  export { forEachRight } from '../array/forEachRight.js';
12
13
  export { groupBy } from '../array/groupBy.js';
13
14
  export { intersection } from '../array/intersection.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const initial = require('../_chunk/initial-L_KfII.js');
5
+ const array_index = require('../array/index.js');
6
6
  const promise_index = require('../_chunk/index-BGZDR9.js');
7
7
  const rest$1 = require('../_chunk/rest-Bzm2XK.js');
8
8
  const math_index = require('../math/index.js');
@@ -17,17 +17,17 @@ function chunk(arr, size = 1) {
17
17
  if (size === 0) {
18
18
  return [];
19
19
  }
20
- return initial.chunk(arr, size);
20
+ return array_index.chunk(arr, size);
21
21
  }
22
22
 
23
23
  function concat(...values) {
24
- return initial.flatten(values);
24
+ return array_index.flatten(values);
25
25
  }
26
26
 
27
27
  function difference(arr, ...values) {
28
28
  const arr1 = arr;
29
- const arr2 = initial.flatten(values);
30
- return initial.difference(arr1, arr2);
29
+ const arr2 = array_index.flatten(values);
30
+ return array_index.difference(arr1, arr2);
31
31
  }
32
32
 
33
33
  function fill(array, value, start = 0, end = array.length) {
@@ -39,7 +39,7 @@ function fill(array, value, start = 0, end = array.length) {
39
39
  if (!end) {
40
40
  end = 0;
41
41
  }
42
- return initial.fill(array, value, start, end);
42
+ return array_index.fill(array, value, start, end);
43
43
  }
44
44
 
45
45
  const IS_PLAIN = /^\w*$/;
@@ -538,7 +538,7 @@ function set(obj, path, value) {
538
538
 
539
539
  function zipObjectDeep(keys, values) {
540
540
  const result = {};
541
- const zipped = initial.zip(keys, values);
541
+ const zipped = array_index.zip(keys, values);
542
542
  for (let i = 0; i < zipped.length; i++) {
543
543
  const [key, value] = zipped[i];
544
544
  if (key != null) {
@@ -840,57 +840,58 @@ function min(items = []) {
840
840
  return minElement;
841
841
  }
842
842
 
843
- exports.at = initial.at;
844
- exports.compact = initial.compact;
845
- exports.countBy = initial.countBy;
846
- exports.differenceBy = initial.differenceBy;
847
- exports.differenceWith = initial.differenceWith;
848
- exports.drop = initial.drop;
849
- exports.dropRight = initial.dropRight;
850
- exports.dropRightWhile = initial.dropRightWhile;
851
- exports.dropWhile = initial.dropWhile;
852
- exports.first = initial.head;
853
- exports.flatMap = initial.flatMap;
854
- exports.forEachRight = initial.forEachRight;
855
- exports.groupBy = initial.groupBy;
856
- exports.head = initial.head;
857
- exports.initial = initial.initial;
858
- exports.intersection = initial.intersection;
859
- exports.intersectionBy = initial.intersectionBy;
860
- exports.intersectionWith = initial.intersectionWith;
861
- exports.isSubset = initial.isSubset;
862
- exports.join = initial.join;
863
- exports.keyBy = initial.keyBy;
864
- exports.last = initial.last;
865
- exports.maxBy = initial.maxBy;
866
- exports.minBy = initial.minBy;
867
- exports.partition = initial.partition;
868
- exports.pullAt = initial.pullAt;
869
- exports.sample = initial.sample;
870
- exports.sampleSize = initial.sampleSize;
871
- exports.shuffle = initial.shuffle;
872
- exports.sortBy = initial.sortBy;
873
- exports.tail = initial.tail;
874
- exports.take = initial.take;
875
- exports.takeRight = initial.takeRight;
876
- exports.takeRightWhile = initial.takeRightWhile;
877
- exports.takeWhile = initial.takeWhile;
878
- exports.toFilled = initial.toFilled;
879
- exports.union = initial.union;
880
- exports.unionBy = initial.unionBy;
881
- exports.unionWith = initial.unionWith;
882
- exports.uniq = initial.uniq;
883
- exports.uniqBy = initial.uniqBy;
884
- exports.uniqWith = initial.uniqWith;
885
- exports.unzip = initial.unzip;
886
- exports.unzipWith = initial.unzipWith;
887
- exports.without = initial.without;
888
- exports.xor = initial.xor;
889
- exports.xorBy = initial.xorBy;
890
- exports.xorWith = initial.xorWith;
891
- exports.zip = initial.zip;
892
- exports.zipObject = initial.zipObject;
893
- exports.zipWith = initial.zipWith;
843
+ exports.at = array_index.at;
844
+ exports.compact = array_index.compact;
845
+ exports.countBy = array_index.countBy;
846
+ exports.differenceBy = array_index.differenceBy;
847
+ exports.differenceWith = array_index.differenceWith;
848
+ exports.drop = array_index.drop;
849
+ exports.dropRight = array_index.dropRight;
850
+ exports.dropRightWhile = array_index.dropRightWhile;
851
+ exports.dropWhile = array_index.dropWhile;
852
+ exports.first = array_index.head;
853
+ exports.flatMap = array_index.flatMap;
854
+ exports.flatMapDeep = array_index.flatMapDeep;
855
+ exports.forEachRight = array_index.forEachRight;
856
+ exports.groupBy = array_index.groupBy;
857
+ exports.head = array_index.head;
858
+ exports.initial = array_index.initial;
859
+ exports.intersection = array_index.intersection;
860
+ exports.intersectionBy = array_index.intersectionBy;
861
+ exports.intersectionWith = array_index.intersectionWith;
862
+ exports.isSubset = array_index.isSubset;
863
+ exports.join = array_index.join;
864
+ exports.keyBy = array_index.keyBy;
865
+ exports.last = array_index.last;
866
+ exports.maxBy = array_index.maxBy;
867
+ exports.minBy = array_index.minBy;
868
+ exports.partition = array_index.partition;
869
+ exports.pullAt = array_index.pullAt;
870
+ exports.sample = array_index.sample;
871
+ exports.sampleSize = array_index.sampleSize;
872
+ exports.shuffle = array_index.shuffle;
873
+ exports.sortBy = array_index.sortBy;
874
+ exports.tail = array_index.tail;
875
+ exports.take = array_index.take;
876
+ exports.takeRight = array_index.takeRight;
877
+ exports.takeRightWhile = array_index.takeRightWhile;
878
+ exports.takeWhile = array_index.takeWhile;
879
+ exports.toFilled = array_index.toFilled;
880
+ exports.union = array_index.union;
881
+ exports.unionBy = array_index.unionBy;
882
+ exports.unionWith = array_index.unionWith;
883
+ exports.uniq = array_index.uniq;
884
+ exports.uniqBy = array_index.uniqBy;
885
+ exports.uniqWith = array_index.uniqWith;
886
+ exports.unzip = array_index.unzip;
887
+ exports.unzipWith = array_index.unzipWith;
888
+ exports.without = array_index.without;
889
+ exports.xor = array_index.xor;
890
+ exports.xorBy = array_index.xorBy;
891
+ exports.xorWith = array_index.xorWith;
892
+ exports.zip = array_index.zip;
893
+ exports.zipObject = array_index.zipObject;
894
+ exports.zipWith = array_index.zipWith;
894
895
  exports.AbortError = promise_index.AbortError;
895
896
  exports.TimeoutError = promise_index.TimeoutError;
896
897
  exports.delay = promise_index.delay;
@@ -8,6 +8,7 @@ export { dropRight } from '../array/dropRight.mjs';
8
8
  export { dropRightWhile } from '../array/dropRightWhile.mjs';
9
9
  export { dropWhile } from '../array/dropWhile.mjs';
10
10
  export { flatMap } from '../array/flatMap.mjs';
11
+ export { flatMapDeep } from '../array/flatMapDeep.mjs';
11
12
  export { forEachRight } from '../array/forEachRight.mjs';
12
13
  export { groupBy } from '../array/groupBy.mjs';
13
14
  export { intersection } from '../array/intersection.mjs';
package/dist/index.d.mts CHANGED
@@ -11,6 +11,7 @@ export { dropRightWhile } from './array/dropRightWhile.mjs';
11
11
  export { dropWhile } from './array/dropWhile.mjs';
12
12
  export { fill } from './array/fill.mjs';
13
13
  export { flatMap } from './array/flatMap.mjs';
14
+ export { flatMapDeep } from './array/flatMapDeep.mjs';
14
15
  export { flatten } from './array/flatten.mjs';
15
16
  export { flattenDeep } from './array/flattenDeep.mjs';
16
17
  export { forEachRight } from './array/forEachRight.mjs';
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export { dropRightWhile } from './array/dropRightWhile.js';
11
11
  export { dropWhile } from './array/dropWhile.js';
12
12
  export { fill } from './array/fill.js';
13
13
  export { flatMap } from './array/flatMap.js';
14
+ export { flatMapDeep } from './array/flatMapDeep.js';
14
15
  export { flatten } from './array/flatten.js';
15
16
  export { flattenDeep } from './array/flattenDeep.js';
16
17
  export { forEachRight } from './array/forEachRight.js';
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const initial = require('./_chunk/initial-L_KfII.js');
6
5
  const array_index = require('./array/index.js');
7
6
  const promise_index = require('./_chunk/index-BGZDR9.js');
8
7
  const rest = require('./_chunk/rest-Bzm2XK.js');
@@ -18,62 +17,63 @@ const string_index = require('./string/index.js');
18
17
 
19
18
 
20
19
 
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.flatten = initial.flatten;
35
- exports.forEachRight = initial.forEachRight;
36
- exports.groupBy = initial.groupBy;
37
- exports.head = initial.head;
38
- exports.initial = initial.initial;
39
- exports.intersection = initial.intersection;
40
- exports.intersectionBy = initial.intersectionBy;
41
- exports.intersectionWith = initial.intersectionWith;
42
- exports.isSubset = initial.isSubset;
43
- exports.join = initial.join;
44
- exports.keyBy = initial.keyBy;
45
- exports.last = initial.last;
46
- exports.maxBy = initial.maxBy;
47
- exports.minBy = initial.minBy;
48
- exports.orderBy = initial.orderBy;
49
- exports.partition = initial.partition;
50
- exports.pullAt = initial.pullAt;
51
- exports.sample = initial.sample;
52
- exports.sampleSize = initial.sampleSize;
53
- exports.shuffle = initial.shuffle;
54
- exports.sortBy = initial.sortBy;
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;
20
+ exports.at = array_index.at;
21
+ exports.chunk = array_index.chunk;
22
+ exports.compact = array_index.compact;
23
+ exports.countBy = array_index.countBy;
24
+ exports.difference = array_index.difference;
25
+ exports.differenceBy = array_index.differenceBy;
26
+ exports.differenceWith = array_index.differenceWith;
27
+ exports.drop = array_index.drop;
28
+ exports.dropRight = array_index.dropRight;
29
+ exports.dropRightWhile = array_index.dropRightWhile;
30
+ exports.dropWhile = array_index.dropWhile;
31
+ exports.fill = array_index.fill;
32
+ exports.flatMap = array_index.flatMap;
33
+ exports.flatMapDeep = array_index.flatMapDeep;
34
+ exports.flatten = array_index.flatten;
76
35
  exports.flattenDeep = array_index.flattenDeep;
36
+ exports.forEachRight = array_index.forEachRight;
37
+ exports.groupBy = array_index.groupBy;
38
+ exports.head = array_index.head;
39
+ exports.initial = array_index.initial;
40
+ exports.intersection = array_index.intersection;
41
+ exports.intersectionBy = array_index.intersectionBy;
42
+ exports.intersectionWith = array_index.intersectionWith;
43
+ exports.isSubset = array_index.isSubset;
44
+ exports.join = array_index.join;
45
+ exports.keyBy = array_index.keyBy;
46
+ exports.last = array_index.last;
47
+ exports.maxBy = array_index.maxBy;
48
+ exports.minBy = array_index.minBy;
49
+ 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
+ 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
77
  exports.AbortError = promise_index.AbortError;
78
78
  exports.TimeoutError = promise_index.TimeoutError;
79
79
  exports.delay = promise_index.delay;
package/dist/index.mjs CHANGED
@@ -11,6 +11,7 @@ export { dropRightWhile } from './array/dropRightWhile.mjs';
11
11
  export { dropWhile } from './array/dropWhile.mjs';
12
12
  export { fill } from './array/fill.mjs';
13
13
  export { flatMap } from './array/flatMap.mjs';
14
+ export { flatMapDeep } from './array/flatMapDeep.mjs';
14
15
  export { flatten } from './array/flatten.mjs';
15
16
  export { flattenDeep } from './array/flattenDeep.mjs';
16
17
  export { forEachRight } from './array/forEachRight.mjs';
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.521+4fea8d2a",
4
+ "version": "1.17.0-dev.523+7ad4ef15",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {