es-toolkit 1.10.1-dev.257 → 1.10.1-dev.258
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/drop.js +2 -1
- package/dist/array/drop.js.map +1 -1
- package/dist/array/drop.mjs +1 -1
- package/dist/array/dropRight.js +3 -3
- package/dist/array/dropRight.js.map +1 -1
- package/dist/array/dropRight.mjs +1 -1
- package/dist/array/index.js +5 -4
- package/dist/array/index.js.map +1 -1
- package/dist/array/index.mjs +33 -33
- package/dist/chunk-3EZAFZG3.mjs +10 -0
- package/dist/{chunk-TF3J4M5O.mjs.map → chunk-3EZAFZG3.mjs.map} +1 -1
- package/dist/chunk-OXZCMC5I.mjs +13 -0
- package/dist/{chunk-WRSDEUO4.mjs.map → chunk-OXZCMC5I.mjs.map} +1 -1
- package/dist/compat/index.js +5 -4
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +54 -54
- package/dist/function/index.mjs +6 -6
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -54
- package/package.json +1 -1
- package/dist/chunk-TF3J4M5O.mjs +0 -9
- package/dist/chunk-WRSDEUO4.mjs +0 -13
package/dist/compat/index.mjs
CHANGED
|
@@ -84,35 +84,10 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
round
|
|
86
86
|
} from "../chunk-5PMKOZ2F.mjs";
|
|
87
|
-
import "../chunk-236H5JZJ.mjs";
|
|
88
|
-
import {
|
|
89
|
-
debounce
|
|
90
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
91
|
-
import {
|
|
92
|
-
negate
|
|
93
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
94
|
-
import {
|
|
95
|
-
noop
|
|
96
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
97
|
-
import {
|
|
98
|
-
once
|
|
99
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
100
|
-
import {
|
|
101
|
-
throttle
|
|
102
|
-
} from "../chunk-QOJGMVVR.mjs";
|
|
103
87
|
import {
|
|
104
88
|
clamp
|
|
105
89
|
} from "../chunk-MLCL773E.mjs";
|
|
106
90
|
import "../chunk-DDH7K4QM.mjs";
|
|
107
|
-
import {
|
|
108
|
-
zipWith
|
|
109
|
-
} from "../chunk-4KYXHZ4R.mjs";
|
|
110
|
-
import {
|
|
111
|
-
unzip
|
|
112
|
-
} from "../chunk-UYZKMBDO.mjs";
|
|
113
|
-
import {
|
|
114
|
-
unzipWith
|
|
115
|
-
} from "../chunk-IFNXROZR.mjs";
|
|
116
91
|
import {
|
|
117
92
|
without
|
|
118
93
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -132,11 +107,8 @@ import {
|
|
|
132
107
|
zipObject
|
|
133
108
|
} from "../chunk-6GWEY5EL.mjs";
|
|
134
109
|
import {
|
|
135
|
-
|
|
136
|
-
} from "../chunk-
|
|
137
|
-
import {
|
|
138
|
-
toFilled
|
|
139
|
-
} from "../chunk-OP4OAKQJ.mjs";
|
|
110
|
+
zipWith
|
|
111
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
140
112
|
import {
|
|
141
113
|
union
|
|
142
114
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -156,11 +128,11 @@ import {
|
|
|
156
128
|
uniqWith
|
|
157
129
|
} from "../chunk-237HGSZS.mjs";
|
|
158
130
|
import {
|
|
159
|
-
|
|
160
|
-
} from "../chunk-
|
|
131
|
+
unzip
|
|
132
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
161
133
|
import {
|
|
162
|
-
|
|
163
|
-
} from "../chunk-
|
|
134
|
+
unzipWith
|
|
135
|
+
} from "../chunk-IFNXROZR.mjs";
|
|
164
136
|
import {
|
|
165
137
|
sampleSize
|
|
166
138
|
} from "../chunk-EHSKB6DF.mjs";
|
|
@@ -186,11 +158,11 @@ import {
|
|
|
186
158
|
takeRightWhile
|
|
187
159
|
} from "../chunk-NTLX2MPV.mjs";
|
|
188
160
|
import {
|
|
189
|
-
|
|
190
|
-
} from "../chunk-
|
|
161
|
+
takeWhile
|
|
162
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
191
163
|
import {
|
|
192
|
-
|
|
193
|
-
} from "../chunk-
|
|
164
|
+
toFilled
|
|
165
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
194
166
|
import {
|
|
195
167
|
intersectionWith
|
|
196
168
|
} from "../chunk-XI7KRD2C.mjs";
|
|
@@ -210,14 +182,14 @@ import {
|
|
|
210
182
|
orderBy
|
|
211
183
|
} from "../chunk-7B7W36UP.mjs";
|
|
212
184
|
import {
|
|
213
|
-
|
|
214
|
-
} from "../chunk-
|
|
185
|
+
partition
|
|
186
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
187
|
+
import {
|
|
188
|
+
sample
|
|
189
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
215
190
|
import {
|
|
216
191
|
flattenDeep
|
|
217
192
|
} from "../chunk-ML727RRJ.mjs";
|
|
218
|
-
import {
|
|
219
|
-
flatten
|
|
220
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
221
193
|
import {
|
|
222
194
|
forEachRight
|
|
223
195
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -231,20 +203,20 @@ import {
|
|
|
231
203
|
initial
|
|
232
204
|
} from "../chunk-XPSOKBRZ.mjs";
|
|
233
205
|
import {
|
|
234
|
-
|
|
235
|
-
} from "../chunk-
|
|
206
|
+
intersection
|
|
207
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
236
208
|
import {
|
|
237
|
-
|
|
238
|
-
} from "../chunk-
|
|
209
|
+
intersectionBy
|
|
210
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
239
211
|
import {
|
|
240
212
|
differenceWith
|
|
241
213
|
} from "../chunk-6NVQAHXP.mjs";
|
|
242
214
|
import {
|
|
243
215
|
drop
|
|
244
|
-
} from "../chunk-
|
|
216
|
+
} from "../chunk-3EZAFZG3.mjs";
|
|
245
217
|
import {
|
|
246
218
|
dropRight
|
|
247
|
-
} from "../chunk-
|
|
219
|
+
} from "../chunk-OXZCMC5I.mjs";
|
|
248
220
|
import {
|
|
249
221
|
dropRightWhile
|
|
250
222
|
} from "../chunk-M7SBBYV2.mjs";
|
|
@@ -254,13 +226,12 @@ import {
|
|
|
254
226
|
import {
|
|
255
227
|
fill
|
|
256
228
|
} from "../chunk-YFN6KOC4.mjs";
|
|
257
|
-
import "../chunk-F47GLYUU.mjs";
|
|
258
229
|
import {
|
|
259
|
-
|
|
260
|
-
} from "../chunk-
|
|
230
|
+
flatMap
|
|
231
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
261
232
|
import {
|
|
262
|
-
|
|
263
|
-
} from "../chunk-
|
|
233
|
+
flatten
|
|
234
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
264
235
|
import {
|
|
265
236
|
chunk
|
|
266
237
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -270,6 +241,35 @@ import {
|
|
|
270
241
|
import {
|
|
271
242
|
countBy
|
|
272
243
|
} from "../chunk-CRSKT4WW.mjs";
|
|
244
|
+
import {
|
|
245
|
+
difference
|
|
246
|
+
} from "../chunk-JPUKH67K.mjs";
|
|
247
|
+
import {
|
|
248
|
+
differenceBy
|
|
249
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
250
|
+
import "../chunk-F47GLYUU.mjs";
|
|
251
|
+
import {
|
|
252
|
+
AbortError
|
|
253
|
+
} from "../chunk-DXB7EZUQ.mjs";
|
|
254
|
+
import {
|
|
255
|
+
TimeoutError
|
|
256
|
+
} from "../chunk-KIOYQRMQ.mjs";
|
|
257
|
+
import "../chunk-236H5JZJ.mjs";
|
|
258
|
+
import {
|
|
259
|
+
noop
|
|
260
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
261
|
+
import {
|
|
262
|
+
once
|
|
263
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
264
|
+
import {
|
|
265
|
+
throttle
|
|
266
|
+
} from "../chunk-QOJGMVVR.mjs";
|
|
267
|
+
import {
|
|
268
|
+
debounce
|
|
269
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
270
|
+
import {
|
|
271
|
+
negate
|
|
272
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
273
273
|
import "../chunk-424M7IR7.mjs";
|
|
274
274
|
|
|
275
275
|
// src/compat/array/chunk.ts
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
debounce
|
|
4
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
5
|
-
import {
|
|
6
|
-
negate
|
|
7
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
8
2
|
import {
|
|
9
3
|
noop
|
|
10
4
|
} from "../chunk-LKXCOLNY.mjs";
|
|
@@ -14,6 +8,12 @@ import {
|
|
|
14
8
|
import {
|
|
15
9
|
throttle
|
|
16
10
|
} from "../chunk-QOJGMVVR.mjs";
|
|
11
|
+
import {
|
|
12
|
+
debounce
|
|
13
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
14
|
+
import {
|
|
15
|
+
negate
|
|
16
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
17
17
|
import "../chunk-424M7IR7.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.js
CHANGED
|
@@ -206,16 +206,17 @@ function differenceWith(firstArr, secondArr, areItemsEqual) {
|
|
|
206
206
|
|
|
207
207
|
// src/array/drop.ts
|
|
208
208
|
function drop(arr, itemsCount) {
|
|
209
|
-
|
|
209
|
+
itemsCount = Math.max(itemsCount, 0);
|
|
210
|
+
return arr.slice(itemsCount);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
// src/array/dropRight.ts
|
|
213
214
|
function dropRight(arr, itemsCount) {
|
|
214
|
-
|
|
215
|
-
if (
|
|
215
|
+
itemsCount = Math.min(-itemsCount, 0);
|
|
216
|
+
if (itemsCount === 0) {
|
|
216
217
|
return arr.slice();
|
|
217
218
|
}
|
|
218
|
-
return arr.slice(0,
|
|
219
|
+
return arr.slice(0, itemsCount);
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
// src/array/dropRightWhile.ts
|