es-toolkit 1.35.0-dev.1202 → 1.35.0-dev.1209

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.
Files changed (104) hide show
  1. package/dist/_chunk/{isPromise-ByAybB.js → isPromise-BqEEYJ.js} +126 -40
  2. package/dist/_chunk/{reverseString-D-wK2p.js → reverseString-BixeGz.js} +84 -13
  3. package/dist/_chunk/toSnakeCaseKeys-Bvb9j3.js +4578 -0
  4. package/dist/_chunk/{unary-BsNWRM.js → unary-EIEhcF.js} +46 -0
  5. package/dist/_chunk/{zip-DxZJSH.js → zipWith-CsbMsR.js} +114 -3
  6. package/dist/array/index.js +57 -126
  7. package/dist/array/take.d.mts +1 -1
  8. package/dist/array/take.d.ts +1 -1
  9. package/dist/array/take.mjs +4 -1
  10. package/dist/array/takeRight.d.mts +1 -1
  11. package/dist/array/takeRight.d.ts +1 -1
  12. package/dist/array/takeRight.mjs +5 -2
  13. package/dist/browser.global.js +1 -1
  14. package/dist/browser.global.js.map +1 -1
  15. package/dist/compat/compat.d.mts +301 -0
  16. package/dist/compat/compat.d.ts +301 -0
  17. package/dist/compat/compat.mjs +303 -0
  18. package/dist/compat/function/partial.d.mts +575 -0
  19. package/dist/compat/function/partial.d.ts +575 -0
  20. package/dist/compat/function/partial.mjs +8 -0
  21. package/dist/compat/function/partialRight.d.mts +651 -0
  22. package/dist/compat/function/partialRight.d.ts +651 -0
  23. package/dist/compat/function/partialRight.mjs +8 -0
  24. package/dist/compat/index.d.mts +10 -18
  25. package/dist/compat/index.d.ts +10 -18
  26. package/dist/compat/index.js +280 -4043
  27. package/dist/compat/index.mjs +13 -19
  28. package/dist/compat/object/defaults.mjs +7 -1
  29. package/dist/compat/string/repeat.d.mts +1 -1
  30. package/dist/compat/string/repeat.d.ts +1 -1
  31. package/dist/compat/string/repeat.mjs +12 -2
  32. package/dist/compat/string/words.d.mts +1 -1
  33. package/dist/compat/string/words.d.ts +1 -1
  34. package/dist/compat/string/words.mjs +2 -1
  35. package/dist/compat/toolkit.d.mts +9 -0
  36. package/dist/compat/toolkit.d.ts +9 -0
  37. package/dist/compat/toolkit.mjs +10 -0
  38. package/dist/function/index.js +3 -4
  39. package/dist/function/partial.d.mts +3 -3
  40. package/dist/function/partial.d.ts +3 -3
  41. package/dist/function/partial.mjs +17 -19
  42. package/dist/function/partialRight.d.mts +3 -3
  43. package/dist/function/partialRight.d.ts +3 -3
  44. package/dist/function/partialRight.mjs +18 -20
  45. package/dist/index.js +84 -87
  46. package/dist/object/index.js +15 -15
  47. package/dist/object/toCamelCaseKeys.mjs +3 -0
  48. package/dist/object/toSnakeCaseKeys.mjs +3 -0
  49. package/dist/predicate/index.js +4 -5
  50. package/dist/string/index.js +7 -8
  51. package/package.json +1 -1
  52. package/dist/_chunk/isPlainObject-Xaozpc.js +0 -93
  53. package/dist/_chunk/partialRight-B0_CSB.js +0 -50
  54. package/dist/_chunk/snakeCase-BtVEeB.js +0 -75
  55. package/dist/_chunk/toSnakeCaseKeys-BNpS71.js +0 -569
  56. package/dist/compat/_internal/copyArray.mjs +0 -12
  57. package/dist/compat/array/flatMap.d.mts +0 -20
  58. package/dist/compat/array/flatMap.d.ts +0 -20
  59. package/dist/compat/array/flatMap.mjs +0 -13
  60. package/dist/compat/array/forEachRight.d.mts +0 -106
  61. package/dist/compat/array/forEachRight.d.ts +0 -106
  62. package/dist/compat/array/forEachRight.mjs +0 -21
  63. package/dist/compat/array/partition.d.mts +0 -65
  64. package/dist/compat/array/partition.d.ts +0 -65
  65. package/dist/compat/array/partition.mjs +0 -24
  66. package/dist/compat/array/pullAllWith.d.mts +0 -59
  67. package/dist/compat/array/pullAllWith.d.ts +0 -59
  68. package/dist/compat/array/pullAllWith.mjs +0 -33
  69. package/dist/compat/array/pullAt.d.mts +0 -32
  70. package/dist/compat/array/pullAt.d.ts +0 -32
  71. package/dist/compat/array/pullAt.mjs +0 -34
  72. package/dist/compat/array/zipObject.d.mts +0 -49
  73. package/dist/compat/array/zipObject.d.ts +0 -49
  74. package/dist/compat/array/zipObject.mjs +0 -11
  75. package/dist/compat/array/zipWith.d.mts +0 -92
  76. package/dist/compat/array/zipWith.d.ts +0 -92
  77. package/dist/compat/array/zipWith.mjs +0 -20
  78. package/dist/compat/object/at.d.mts +0 -19
  79. package/dist/compat/object/at.d.ts +0 -19
  80. package/dist/compat/object/at.mjs +0 -27
  81. package/dist/compat/object/forIn.d.mts +0 -58
  82. package/dist/compat/object/forIn.d.ts +0 -58
  83. package/dist/compat/object/forIn.mjs +0 -16
  84. package/dist/compat/object/forInRight.d.mts +0 -58
  85. package/dist/compat/object/forInRight.d.ts +0 -58
  86. package/dist/compat/object/forInRight.mjs +0 -21
  87. package/dist/compat/object/forOwn.d.mts +0 -54
  88. package/dist/compat/object/forOwn.d.ts +0 -54
  89. package/dist/compat/object/forOwn.mjs +0 -19
  90. package/dist/compat/object/forOwnRight.d.mts +0 -54
  91. package/dist/compat/object/forOwnRight.d.ts +0 -54
  92. package/dist/compat/object/forOwnRight.mjs +0 -19
  93. package/dist/compat/object/hasIn.d.mts +0 -40
  94. package/dist/compat/object/hasIn.d.ts +0 -40
  95. package/dist/compat/object/hasIn.mjs +0 -34
  96. package/dist/compat/string/split.d.mts +0 -19
  97. package/dist/compat/string/split.d.ts +0 -19
  98. package/dist/compat/string/split.mjs +0 -7
  99. package/dist/compat/util/overEvery.d.mts +0 -67
  100. package/dist/compat/util/overEvery.d.ts +0 -67
  101. package/dist/compat/util/overEvery.mjs +0 -23
  102. package/dist/compat/util/overSome.d.mts +0 -69
  103. package/dist/compat/util/overSome.d.ts +0 -69
  104. package/dist/compat/util/overSome.mjs +0 -23
@@ -1,10 +1,15 @@
1
+ export { at } from '../array/at.mjs';
1
2
  export { countBy } from '../array/countBy.mjs';
3
+ export { flatMap } from '../array/flatMap.mjs';
2
4
  export { flatMapDeep } from '../array/flatMapDeep.mjs';
5
+ export { forEachRight } from '../array/forEachRight.mjs';
3
6
  export { groupBy } from '../array/groupBy.mjs';
4
7
  export { initial } from '../array/initial.mjs';
5
8
  export { isSubset } from '../array/isSubset.mjs';
6
9
  export { isSubsetWith } from '../array/isSubsetWith.mjs';
7
10
  export { keyBy } from '../array/keyBy.mjs';
11
+ export { partition } from '../array/partition.mjs';
12
+ export { pullAt } from '../array/pullAt.mjs';
8
13
  export { sampleSize } from '../array/sampleSize.mjs';
9
14
  export { shuffle } from '../array/shuffle.mjs';
10
15
  export { toFilled } from '../array/toFilled.mjs';
@@ -13,6 +18,8 @@ export { windowed } from '../array/windowed.mjs';
13
18
  export { xor } from '../array/xor.mjs';
14
19
  export { xorBy } from '../array/xorBy.mjs';
15
20
  export { xorWith } from '../array/xorWith.mjs';
21
+ export { zipObject } from '../array/zipObject.mjs';
22
+ export { zipWith } from '../array/zipWith.mjs';
16
23
  export { AbortError } from '../error/AbortError.mjs';
17
24
  export { TimeoutError } from '../error/TimeoutError.mjs';
18
25
  export { asyncNoop } from '../function/asyncNoop.mjs';
@@ -20,8 +27,6 @@ export { identity } from '../function/identity.mjs';
20
27
  export { MemoizeCache, memoize } from '../function/memoize.mjs';
21
28
  export { noop } from '../function/noop.mjs';
22
29
  export { once } from '../function/once.mjs';
23
- export { partial } from '../function/partial.mjs';
24
- export { partialRight } from '../function/partialRight.mjs';
25
30
  export { retry } from '../function/retry.mjs';
26
31
  export { ThrottledFunction } from '../function/throttle.mjs';
27
32
  export { unary } from '../function/unary.mjs';
@@ -77,12 +82,10 @@ export { find } from './array/find.mjs';
77
82
  export { findIndex } from './array/findIndex.mjs';
78
83
  export { findLast } from './array/findLast.mjs';
79
84
  export { findLastIndex } from './array/findLastIndex.mjs';
80
- export { flatMap } from './array/flatMap.mjs';
81
85
  export { flatten } from './array/flatten.mjs';
82
86
  export { flattenDeep } from './array/flattenDeep.mjs';
83
87
  export { flattenDepth } from './array/flattenDepth.mjs';
84
88
  export { forEach as each, forEach } from './array/forEach.mjs';
85
- export { forEachRight as eachRight, forEachRight } from './array/forEachRight.mjs';
86
89
  export { head as first, head } from './array/head.mjs';
87
90
  export { includes } from './array/includes.mjs';
88
91
  export { indexOf } from './array/indexOf.mjs';
@@ -95,12 +98,9 @@ export { lastIndexOf } from './array/lastIndexOf.mjs';
95
98
  export { map } from './array/map.mjs';
96
99
  export { nth } from './array/nth.mjs';
97
100
  export { orderBy } from './array/orderBy.mjs';
98
- export { partition } from './array/partition.mjs';
99
101
  export { pull } from './array/pull.mjs';
100
102
  export { pullAll } from './array/pullAll.mjs';
101
103
  export { pullAllBy } from './array/pullAllBy.mjs';
102
- export { pullAllWith } from './array/pullAllWith.mjs';
103
- export { pullAt } from './array/pullAt.mjs';
104
104
  export { reduce } from './array/reduce.mjs';
105
105
  export { reduceRight } from './array/reduceRight.mjs';
106
106
  export { reject } from './array/reject.mjs';
@@ -130,9 +130,7 @@ export { uniqWith } from './array/uniqWith.mjs';
130
130
  export { unzip } from './array/unzip.mjs';
131
131
  export { without } from './array/without.mjs';
132
132
  export { zip } from './array/zip.mjs';
133
- export { zipObject } from './array/zipObject.mjs';
134
133
  export { zipObjectDeep } from './array/zipObjectDeep.mjs';
135
- export { zipWith } from './array/zipWith.mjs';
136
134
  export { after } from './function/after.mjs';
137
135
  export { ary } from './function/ary.mjs';
138
136
  export { attempt } from './function/attempt.mjs';
@@ -149,6 +147,8 @@ export { flow } from './function/flow.mjs';
149
147
  export { flowRight } from './function/flowRight.mjs';
150
148
  export { negate } from './function/negate.mjs';
151
149
  export { nthArg } from './function/nthArg.mjs';
150
+ export { partial } from './function/partial.mjs';
151
+ export { partialRight } from './function/partialRight.mjs';
152
152
  export { rearg } from './function/rearg.mjs';
153
153
  export { rest } from './function/rest.mjs';
154
154
  export { spread } from './function/spread.mjs';
@@ -178,22 +178,16 @@ export { assign } from './object/assign.mjs';
178
178
  export { assignIn, assignIn as extend } from './object/assignIn.mjs';
179
179
  export { assignInWith, assignInWith as extendWith } from './object/assignInWith.mjs';
180
180
  export { assignWith } from './object/assignWith.mjs';
181
- export { at } from './object/at.mjs';
182
181
  export { cloneDeep } from './object/cloneDeep.mjs';
183
182
  export { cloneDeepWith } from './object/cloneDeepWith.mjs';
184
183
  export { create } from './object/create.mjs';
185
184
  export { defaults } from './object/defaults.mjs';
186
185
  export { findKey } from './object/findKey.mjs';
187
- export { forIn } from './object/forIn.mjs';
188
- export { forInRight } from './object/forInRight.mjs';
189
- export { forOwn } from './object/forOwn.mjs';
190
- export { forOwnRight } from './object/forOwnRight.mjs';
191
186
  export { fromPairs } from './object/fromPairs.mjs';
192
187
  export { functions } from './object/functions.mjs';
193
188
  export { functionsIn } from './object/functionsIn.mjs';
194
189
  export { get } from './object/get.mjs';
195
190
  export { has } from './object/has.mjs';
196
- export { hasIn } from './object/hasIn.mjs';
197
191
  export { invertBy } from './object/invertBy.mjs';
198
192
  export { keys } from './object/keys.mjs';
199
193
  export { keysIn } from './object/keysIn.mjs';
@@ -263,7 +257,6 @@ export { padStart } from './string/padStart.mjs';
263
257
  export { repeat } from './string/repeat.mjs';
264
258
  export { replace } from './string/replace.mjs';
265
259
  export { snakeCase } from './string/snakeCase.mjs';
266
- export { split } from './string/split.mjs';
267
260
  export { startCase } from './string/startCase.mjs';
268
261
  export { startsWith } from './string/startsWith.mjs';
269
262
  export { template, templateSettings } from './string/template.mjs';
@@ -290,8 +283,6 @@ export { method } from './util/method.mjs';
290
283
  export { methodOf } from './util/methodOf.mjs';
291
284
  export { now } from './util/now.mjs';
292
285
  export { over } from './util/over.mjs';
293
- export { overEvery } from './util/overEvery.mjs';
294
- export { overSome } from './util/overSome.mjs';
295
286
  export { stubArray } from './util/stubArray.mjs';
296
287
  export { stubFalse } from './util/stubFalse.mjs';
297
288
  export { stubObject } from './util/stubObject.mjs';
@@ -308,3 +299,4 @@ export { toPlainObject } from './util/toPlainObject.mjs';
308
299
  export { toSafeInteger } from './util/toSafeInteger.mjs';
309
300
  export { toString } from './util/toString.mjs';
310
301
  export { uniqueId } from './util/uniqueId.mjs';
302
+ export { toolkit as default } from './toolkit.mjs';
@@ -1,10 +1,15 @@
1
+ export { at } from '../array/at.js';
1
2
  export { countBy } from '../array/countBy.js';
3
+ export { flatMap } from '../array/flatMap.js';
2
4
  export { flatMapDeep } from '../array/flatMapDeep.js';
5
+ export { forEachRight } from '../array/forEachRight.js';
3
6
  export { groupBy } from '../array/groupBy.js';
4
7
  export { initial } from '../array/initial.js';
5
8
  export { isSubset } from '../array/isSubset.js';
6
9
  export { isSubsetWith } from '../array/isSubsetWith.js';
7
10
  export { keyBy } from '../array/keyBy.js';
11
+ export { partition } from '../array/partition.js';
12
+ export { pullAt } from '../array/pullAt.js';
8
13
  export { sampleSize } from '../array/sampleSize.js';
9
14
  export { shuffle } from '../array/shuffle.js';
10
15
  export { toFilled } from '../array/toFilled.js';
@@ -13,6 +18,8 @@ export { windowed } from '../array/windowed.js';
13
18
  export { xor } from '../array/xor.js';
14
19
  export { xorBy } from '../array/xorBy.js';
15
20
  export { xorWith } from '../array/xorWith.js';
21
+ export { zipObject } from '../array/zipObject.js';
22
+ export { zipWith } from '../array/zipWith.js';
16
23
  export { AbortError } from '../error/AbortError.js';
17
24
  export { TimeoutError } from '../error/TimeoutError.js';
18
25
  export { asyncNoop } from '../function/asyncNoop.js';
@@ -20,8 +27,6 @@ export { identity } from '../function/identity.js';
20
27
  export { MemoizeCache, memoize } from '../function/memoize.js';
21
28
  export { noop } from '../function/noop.js';
22
29
  export { once } from '../function/once.js';
23
- export { partial } from '../function/partial.js';
24
- export { partialRight } from '../function/partialRight.js';
25
30
  export { retry } from '../function/retry.js';
26
31
  export { ThrottledFunction } from '../function/throttle.js';
27
32
  export { unary } from '../function/unary.js';
@@ -77,12 +82,10 @@ export { find } from './array/find.js';
77
82
  export { findIndex } from './array/findIndex.js';
78
83
  export { findLast } from './array/findLast.js';
79
84
  export { findLastIndex } from './array/findLastIndex.js';
80
- export { flatMap } from './array/flatMap.js';
81
85
  export { flatten } from './array/flatten.js';
82
86
  export { flattenDeep } from './array/flattenDeep.js';
83
87
  export { flattenDepth } from './array/flattenDepth.js';
84
88
  export { forEach as each, forEach } from './array/forEach.js';
85
- export { forEachRight as eachRight, forEachRight } from './array/forEachRight.js';
86
89
  export { head as first, head } from './array/head.js';
87
90
  export { includes } from './array/includes.js';
88
91
  export { indexOf } from './array/indexOf.js';
@@ -95,12 +98,9 @@ export { lastIndexOf } from './array/lastIndexOf.js';
95
98
  export { map } from './array/map.js';
96
99
  export { nth } from './array/nth.js';
97
100
  export { orderBy } from './array/orderBy.js';
98
- export { partition } from './array/partition.js';
99
101
  export { pull } from './array/pull.js';
100
102
  export { pullAll } from './array/pullAll.js';
101
103
  export { pullAllBy } from './array/pullAllBy.js';
102
- export { pullAllWith } from './array/pullAllWith.js';
103
- export { pullAt } from './array/pullAt.js';
104
104
  export { reduce } from './array/reduce.js';
105
105
  export { reduceRight } from './array/reduceRight.js';
106
106
  export { reject } from './array/reject.js';
@@ -130,9 +130,7 @@ export { uniqWith } from './array/uniqWith.js';
130
130
  export { unzip } from './array/unzip.js';
131
131
  export { without } from './array/without.js';
132
132
  export { zip } from './array/zip.js';
133
- export { zipObject } from './array/zipObject.js';
134
133
  export { zipObjectDeep } from './array/zipObjectDeep.js';
135
- export { zipWith } from './array/zipWith.js';
136
134
  export { after } from './function/after.js';
137
135
  export { ary } from './function/ary.js';
138
136
  export { attempt } from './function/attempt.js';
@@ -149,6 +147,8 @@ export { flow } from './function/flow.js';
149
147
  export { flowRight } from './function/flowRight.js';
150
148
  export { negate } from './function/negate.js';
151
149
  export { nthArg } from './function/nthArg.js';
150
+ export { partial } from './function/partial.js';
151
+ export { partialRight } from './function/partialRight.js';
152
152
  export { rearg } from './function/rearg.js';
153
153
  export { rest } from './function/rest.js';
154
154
  export { spread } from './function/spread.js';
@@ -178,22 +178,16 @@ export { assign } from './object/assign.js';
178
178
  export { assignIn, assignIn as extend } from './object/assignIn.js';
179
179
  export { assignInWith, assignInWith as extendWith } from './object/assignInWith.js';
180
180
  export { assignWith } from './object/assignWith.js';
181
- export { at } from './object/at.js';
182
181
  export { cloneDeep } from './object/cloneDeep.js';
183
182
  export { cloneDeepWith } from './object/cloneDeepWith.js';
184
183
  export { create } from './object/create.js';
185
184
  export { defaults } from './object/defaults.js';
186
185
  export { findKey } from './object/findKey.js';
187
- export { forIn } from './object/forIn.js';
188
- export { forInRight } from './object/forInRight.js';
189
- export { forOwn } from './object/forOwn.js';
190
- export { forOwnRight } from './object/forOwnRight.js';
191
186
  export { fromPairs } from './object/fromPairs.js';
192
187
  export { functions } from './object/functions.js';
193
188
  export { functionsIn } from './object/functionsIn.js';
194
189
  export { get } from './object/get.js';
195
190
  export { has } from './object/has.js';
196
- export { hasIn } from './object/hasIn.js';
197
191
  export { invertBy } from './object/invertBy.js';
198
192
  export { keys } from './object/keys.js';
199
193
  export { keysIn } from './object/keysIn.js';
@@ -263,7 +257,6 @@ export { padStart } from './string/padStart.js';
263
257
  export { repeat } from './string/repeat.js';
264
258
  export { replace } from './string/replace.js';
265
259
  export { snakeCase } from './string/snakeCase.js';
266
- export { split } from './string/split.js';
267
260
  export { startCase } from './string/startCase.js';
268
261
  export { startsWith } from './string/startsWith.js';
269
262
  export { template, templateSettings } from './string/template.js';
@@ -290,8 +283,6 @@ export { method } from './util/method.js';
290
283
  export { methodOf } from './util/methodOf.js';
291
284
  export { now } from './util/now.js';
292
285
  export { over } from './util/over.js';
293
- export { overEvery } from './util/overEvery.js';
294
- export { overSome } from './util/overSome.js';
295
286
  export { stubArray } from './util/stubArray.js';
296
287
  export { stubFalse } from './util/stubFalse.js';
297
288
  export { stubObject } from './util/stubObject.js';
@@ -308,3 +299,4 @@ export { toPlainObject } from './util/toPlainObject.js';
308
299
  export { toSafeInteger } from './util/toSafeInteger.js';
309
300
  export { toString } from './util/toString.js';
310
301
  export { uniqueId } from './util/uniqueId.js';
302
+ export { toolkit as default } from './toolkit.js';