es-toolkit 1.10.0-dev.207 → 1.10.0-dev.210
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/array/chunk.mjs +1 -1
- package/dist/array/compact.mjs +1 -1
- package/dist/array/countBy.mjs +1 -1
- package/dist/array/difference.mjs +1 -1
- package/dist/array/differenceBy.mjs +1 -1
- package/dist/array/differenceWith.mjs +1 -1
- package/dist/array/drop.mjs +1 -1
- package/dist/array/dropRight.mjs +1 -1
- package/dist/array/dropRightWhile.mjs +1 -1
- package/dist/array/dropWhile.mjs +1 -1
- package/dist/array/fill.mjs +1 -1
- package/dist/array/flatten.mjs +1 -1
- package/dist/array/flattenDeep.mjs +1 -1
- package/dist/array/forEachRight.mjs +1 -1
- package/dist/array/groupBy.mjs +1 -1
- package/dist/array/head.mjs +1 -1
- package/dist/array/index.mjs +51 -51
- package/dist/array/initial.mjs +1 -1
- package/dist/array/intersection.mjs +1 -1
- package/dist/array/intersectionBy.mjs +1 -1
- package/dist/array/intersectionWith.mjs +1 -1
- package/dist/array/keyBy.mjs +1 -1
- package/dist/array/last.mjs +1 -1
- package/dist/array/maxBy.mjs +1 -1
- package/dist/array/minBy.mjs +1 -1
- package/dist/array/orderBy.mjs +1 -1
- package/dist/array/partition.mjs +1 -1
- package/dist/array/sample.mjs +1 -1
- package/dist/array/sampleSize.mjs +1 -1
- package/dist/array/shuffle.mjs +1 -1
- package/dist/array/tail.mjs +1 -1
- package/dist/array/take.mjs +1 -1
- package/dist/array/takeRight.mjs +1 -1
- package/dist/array/takeRightWhile.mjs +1 -1
- package/dist/array/takeWhile.mjs +1 -1
- package/dist/array/toFilled.mjs +1 -1
- package/dist/array/union.mjs +1 -1
- package/dist/array/unionBy.mjs +1 -1
- package/dist/array/unionWith.mjs +1 -1
- package/dist/array/uniq.mjs +1 -1
- package/dist/array/uniqBy.mjs +1 -1
- package/dist/array/uniqWith.mjs +1 -1
- package/dist/array/unzip.mjs +1 -1
- package/dist/array/unzipWith.mjs +1 -1
- package/dist/array/without.mjs +1 -1
- package/dist/array/xor.mjs +1 -1
- package/dist/array/xorBy.mjs +1 -1
- package/dist/array/xorWith.mjs +1 -1
- package/dist/array/zip.mjs +1 -1
- package/dist/array/zipObject.mjs +1 -1
- package/dist/array/zipWith.mjs +1 -1
- package/dist/chunk-2MM5EJJX.mjs +21 -0
- package/dist/{chunk-4E4D3BMI.mjs → chunk-QZITBKWX.mjs} +2 -2
- package/dist/chunk-Y5V7UAZZ.mjs +21 -0
- package/dist/chunk-Y5V7UAZZ.mjs.map +1 -0
- package/dist/compat/index.js +6 -5515
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +74 -74
- package/dist/error/AbortError.mjs +1 -1
- package/dist/error/index.mjs +1 -1
- package/dist/function/debounce.mjs +1 -1
- package/dist/function/index.mjs +7 -7
- package/dist/function/negate.mjs +1 -1
- package/dist/function/noop.mjs +1 -1
- package/dist/function/once.mjs +1 -1
- package/dist/function/throttle.mjs +1 -1
- package/dist/index.js +6 -5515
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +74 -74
- package/dist/math/clamp.mjs +1 -1
- package/dist/math/inRange.mjs +1 -1
- package/dist/math/index.mjs +1 -1
- package/dist/math/mean.mjs +1 -1
- package/dist/math/meanBy.mjs +1 -1
- package/dist/math/random.mjs +1 -1
- package/dist/math/randomInt.mjs +1 -1
- package/dist/math/range.mjs +1 -1
- package/dist/math/round.mjs +1 -1
- package/dist/math/sum.mjs +1 -1
- package/dist/math/sumBy.mjs +1 -1
- package/dist/object/clone.mjs +1 -1
- package/dist/object/index.mjs +2 -2
- package/dist/object/invert.mjs +1 -1
- package/dist/object/omit.mjs +2 -2
- package/dist/object/omitBy.mjs +1 -1
- package/dist/object/pick.mjs +1 -1
- package/dist/object/pickBy.mjs +1 -1
- package/dist/predicate/index.mjs +1 -1
- package/dist/predicate/isEqual.mjs +1 -1
- package/dist/predicate/isNil.mjs +1 -1
- package/dist/predicate/isNotNil.mjs +1 -1
- package/dist/predicate/isNull.mjs +1 -1
- package/dist/predicate/isUndefined.mjs +1 -1
- package/dist/promise/delay.mjs +1 -1
- package/dist/promise/index.mjs +1 -1
- package/dist/string/camelCase.js +6 -5508
- package/dist/string/camelCase.js.map +1 -1
- package/dist/string/camelCase.mjs +3 -2
- package/dist/string/capitalize.mjs +1 -1
- package/dist/string/index.js +6 -5515
- package/dist/string/index.js.map +1 -1
- package/dist/string/index.mjs +5 -5
- package/dist/string/kebabCase.mjs +1 -1
- package/dist/string/lowerCase.mjs +1 -1
- package/dist/string/snakeCase.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2HIMLZE3.mjs +0 -46
- package/dist/chunk-XGCYC4YA.mjs +0 -5516
- package/dist/chunk-XGCYC4YA.mjs.map +0 -1
- /package/dist/{chunk-2HIMLZE3.mjs.map → chunk-2MM5EJJX.mjs.map} +0 -0
- /package/dist/{chunk-4E4D3BMI.mjs.map → chunk-QZITBKWX.mjs.map} +0 -0
package/dist/compat/index.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import "../chunk-NKLIE2OI.mjs";
|
|
2
2
|
import "../chunk-QKYYOLJ6.mjs";
|
|
3
|
-
import {
|
|
4
|
-
capitalize
|
|
5
|
-
} from "../chunk-U56ZOM7L.mjs";
|
|
6
3
|
import {
|
|
7
4
|
kebabCase
|
|
8
5
|
} from "../chunk-EYYZQFOP.mjs";
|
|
@@ -18,7 +15,10 @@ import {
|
|
|
18
15
|
} from "../chunk-O64NE2P4.mjs";
|
|
19
16
|
import {
|
|
20
17
|
camelCase
|
|
21
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-Y5V7UAZZ.mjs";
|
|
19
|
+
import {
|
|
20
|
+
capitalize
|
|
21
|
+
} from "../chunk-U56ZOM7L.mjs";
|
|
22
22
|
import "../chunk-WVQ7YVRK.mjs";
|
|
23
23
|
import "../chunk-OSOLEQLZ.mjs";
|
|
24
24
|
import {
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "../chunk-74WWMNZS.mjs";
|
|
30
30
|
import {
|
|
31
31
|
omit
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-QZITBKWX.mjs";
|
|
33
33
|
import {
|
|
34
34
|
omitBy
|
|
35
35
|
} from "../chunk-BCTYOXT7.mjs";
|
|
@@ -55,10 +55,19 @@ import {
|
|
|
55
55
|
import {
|
|
56
56
|
isUndefined
|
|
57
57
|
} from "../chunk-VH2PV426.mjs";
|
|
58
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-236H5JZJ.mjs";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "../chunk-
|
|
60
|
+
negate
|
|
61
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
62
|
+
import {
|
|
63
|
+
noop
|
|
64
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
65
|
+
import {
|
|
66
|
+
once
|
|
67
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
68
|
+
import {
|
|
69
|
+
throttle
|
|
70
|
+
} from "../chunk-QOJGMVVR.mjs";
|
|
62
71
|
import "../chunk-FUS75PJ7.mjs";
|
|
63
72
|
import {
|
|
64
73
|
meanBy
|
|
@@ -84,23 +93,19 @@ import {
|
|
|
84
93
|
import {
|
|
85
94
|
inRange
|
|
86
95
|
} from "../chunk-BH6HLGBA.mjs";
|
|
87
|
-
import "../chunk-236H5JZJ.mjs";
|
|
88
|
-
import {
|
|
89
|
-
once
|
|
90
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
91
|
-
import {
|
|
92
|
-
throttle
|
|
93
|
-
} from "../chunk-QOJGMVVR.mjs";
|
|
94
96
|
import {
|
|
95
97
|
debounce
|
|
96
98
|
} from "../chunk-3IP4JVLL.mjs";
|
|
99
|
+
import "../chunk-2MRZANXZ.mjs";
|
|
97
100
|
import {
|
|
98
|
-
|
|
99
|
-
} from "../chunk-
|
|
101
|
+
without
|
|
102
|
+
} from "../chunk-PYEYV7BY.mjs";
|
|
100
103
|
import {
|
|
101
|
-
|
|
102
|
-
} from "../chunk-
|
|
103
|
-
import
|
|
104
|
+
xor
|
|
105
|
+
} from "../chunk-L7FQX5MN.mjs";
|
|
106
|
+
import {
|
|
107
|
+
xorBy
|
|
108
|
+
} from "../chunk-Q47NGNXT.mjs";
|
|
104
109
|
import {
|
|
105
110
|
xorWith
|
|
106
111
|
} from "../chunk-QRSJBBFY.mjs";
|
|
@@ -113,9 +118,24 @@ import {
|
|
|
113
118
|
import {
|
|
114
119
|
zipWith
|
|
115
120
|
} from "../chunk-4KYXHZ4R.mjs";
|
|
121
|
+
import {
|
|
122
|
+
union
|
|
123
|
+
} from "../chunk-R6QA7PLZ.mjs";
|
|
124
|
+
import {
|
|
125
|
+
unionBy
|
|
126
|
+
} from "../chunk-NFS7RWWE.mjs";
|
|
127
|
+
import {
|
|
128
|
+
unionWith
|
|
129
|
+
} from "../chunk-2ZCITDMK.mjs";
|
|
130
|
+
import {
|
|
131
|
+
uniq
|
|
132
|
+
} from "../chunk-DVK2N4KC.mjs";
|
|
116
133
|
import {
|
|
117
134
|
uniqBy
|
|
118
135
|
} from "../chunk-OXAZEEGP.mjs";
|
|
136
|
+
import {
|
|
137
|
+
uniqWith
|
|
138
|
+
} from "../chunk-237HGSZS.mjs";
|
|
119
139
|
import {
|
|
120
140
|
unzip
|
|
121
141
|
} from "../chunk-UYZKMBDO.mjs";
|
|
@@ -123,14 +143,20 @@ import {
|
|
|
123
143
|
unzipWith
|
|
124
144
|
} from "../chunk-IFNXROZR.mjs";
|
|
125
145
|
import {
|
|
126
|
-
|
|
127
|
-
} from "../chunk-
|
|
146
|
+
sampleSize
|
|
147
|
+
} from "../chunk-EHSKB6DF.mjs";
|
|
128
148
|
import {
|
|
129
|
-
|
|
130
|
-
} from "../chunk-
|
|
149
|
+
randomInt
|
|
150
|
+
} from "../chunk-GIWAOOFY.mjs";
|
|
131
151
|
import {
|
|
132
|
-
|
|
133
|
-
} from "../chunk-
|
|
152
|
+
random
|
|
153
|
+
} from "../chunk-SYWMYQYJ.mjs";
|
|
154
|
+
import {
|
|
155
|
+
shuffle
|
|
156
|
+
} from "../chunk-G7UQ5PUR.mjs";
|
|
157
|
+
import {
|
|
158
|
+
tail
|
|
159
|
+
} from "../chunk-OF6NM4G7.mjs";
|
|
134
160
|
import {
|
|
135
161
|
take
|
|
136
162
|
} from "../chunk-ME352XO7.mjs";
|
|
@@ -147,20 +173,14 @@ import {
|
|
|
147
173
|
toFilled
|
|
148
174
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
149
175
|
import {
|
|
150
|
-
|
|
151
|
-
} from "../chunk-
|
|
152
|
-
import {
|
|
153
|
-
uniq
|
|
154
|
-
} from "../chunk-DVK2N4KC.mjs";
|
|
155
|
-
import {
|
|
156
|
-
unionBy
|
|
157
|
-
} from "../chunk-NFS7RWWE.mjs";
|
|
176
|
+
intersectionWith
|
|
177
|
+
} from "../chunk-XI7KRD2C.mjs";
|
|
158
178
|
import {
|
|
159
|
-
|
|
160
|
-
} from "../chunk-
|
|
179
|
+
keyBy
|
|
180
|
+
} from "../chunk-AJKZMN2V.mjs";
|
|
161
181
|
import {
|
|
162
|
-
|
|
163
|
-
} from "../chunk-
|
|
182
|
+
last
|
|
183
|
+
} from "../chunk-KPBQ7OUY.mjs";
|
|
164
184
|
import {
|
|
165
185
|
maxBy
|
|
166
186
|
} from "../chunk-OOKNBU4V.mjs";
|
|
@@ -177,20 +197,14 @@ import {
|
|
|
177
197
|
sample
|
|
178
198
|
} from "../chunk-2KNLZB7V.mjs";
|
|
179
199
|
import {
|
|
180
|
-
|
|
181
|
-
} from "../chunk-
|
|
182
|
-
import {
|
|
183
|
-
randomInt
|
|
184
|
-
} from "../chunk-GIWAOOFY.mjs";
|
|
185
|
-
import {
|
|
186
|
-
random
|
|
187
|
-
} from "../chunk-SYWMYQYJ.mjs";
|
|
200
|
+
flattenDeep
|
|
201
|
+
} from "../chunk-ML727RRJ.mjs";
|
|
188
202
|
import {
|
|
189
|
-
|
|
190
|
-
} from "../chunk-
|
|
203
|
+
forEachRight
|
|
204
|
+
} from "../chunk-IEA53J7P.mjs";
|
|
191
205
|
import {
|
|
192
|
-
|
|
193
|
-
} from "../chunk-
|
|
206
|
+
groupBy
|
|
207
|
+
} from "../chunk-E6E4RZLN.mjs";
|
|
194
208
|
import {
|
|
195
209
|
head
|
|
196
210
|
} from "../chunk-HM2JT2RX.mjs";
|
|
@@ -204,14 +218,14 @@ import {
|
|
|
204
218
|
intersectionBy
|
|
205
219
|
} from "../chunk-O6UXZR3U.mjs";
|
|
206
220
|
import {
|
|
207
|
-
|
|
208
|
-
} from "../chunk-
|
|
221
|
+
differenceBy
|
|
222
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
209
223
|
import {
|
|
210
|
-
|
|
211
|
-
} from "../chunk-
|
|
224
|
+
differenceWith
|
|
225
|
+
} from "../chunk-6NVQAHXP.mjs";
|
|
212
226
|
import {
|
|
213
|
-
|
|
214
|
-
} from "../chunk-
|
|
227
|
+
drop
|
|
228
|
+
} from "../chunk-S3CORED5.mjs";
|
|
215
229
|
import {
|
|
216
230
|
dropRight
|
|
217
231
|
} from "../chunk-JEKUA56R.mjs";
|
|
@@ -224,18 +238,13 @@ import {
|
|
|
224
238
|
import {
|
|
225
239
|
fill
|
|
226
240
|
} from "../chunk-C4WE4GLC.mjs";
|
|
227
|
-
import {
|
|
228
|
-
flattenDeep
|
|
229
|
-
} from "../chunk-ML727RRJ.mjs";
|
|
230
241
|
import {
|
|
231
242
|
flatten
|
|
232
243
|
} from "../chunk-33MSBDC6.mjs";
|
|
244
|
+
import "../chunk-FZEZH22H.mjs";
|
|
233
245
|
import {
|
|
234
|
-
|
|
235
|
-
} from "../chunk-
|
|
236
|
-
import {
|
|
237
|
-
groupBy
|
|
238
|
-
} from "../chunk-E6E4RZLN.mjs";
|
|
246
|
+
AbortError
|
|
247
|
+
} from "../chunk-DXB7EZUQ.mjs";
|
|
239
248
|
import {
|
|
240
249
|
chunk
|
|
241
250
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -248,16 +257,7 @@ import {
|
|
|
248
257
|
import {
|
|
249
258
|
difference
|
|
250
259
|
} from "../chunk-JPUKH67K.mjs";
|
|
251
|
-
import
|
|
252
|
-
differenceBy
|
|
253
|
-
} from "../chunk-LVWX5B43.mjs";
|
|
254
|
-
import {
|
|
255
|
-
differenceWith
|
|
256
|
-
} from "../chunk-6NVQAHXP.mjs";
|
|
257
|
-
import {
|
|
258
|
-
drop
|
|
259
|
-
} from "../chunk-S3CORED5.mjs";
|
|
260
|
-
import "../chunk-2HIMLZE3.mjs";
|
|
260
|
+
import "../chunk-2MM5EJJX.mjs";
|
|
261
261
|
|
|
262
262
|
// src/compat/array/chunk.ts
|
|
263
263
|
function chunk2(arr, size = 1) {
|
package/dist/error/index.mjs
CHANGED
package/dist/function/index.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
negate
|
|
4
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
5
|
+
import {
|
|
6
|
+
noop
|
|
7
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
2
8
|
import {
|
|
3
9
|
once
|
|
4
10
|
} from "../chunk-CMBC4MXG.mjs";
|
|
@@ -8,13 +14,7 @@ import {
|
|
|
8
14
|
import {
|
|
9
15
|
debounce
|
|
10
16
|
} from "../chunk-3IP4JVLL.mjs";
|
|
11
|
-
import
|
|
12
|
-
negate
|
|
13
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
14
|
-
import {
|
|
15
|
-
noop
|
|
16
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
17
|
-
import "../chunk-2HIMLZE3.mjs";
|
|
17
|
+
import "../chunk-2MM5EJJX.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
|
20
20
|
negate,
|
package/dist/function/negate.mjs
CHANGED
package/dist/function/noop.mjs
CHANGED
package/dist/function/once.mjs
CHANGED