es-toolkit 1.12.0-dev.277 → 1.12.0-dev.278
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/index.mjs +31 -31
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +2 -0
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +53 -52
- package/dist/function/index.mjs +6 -6
- package/dist/index.mjs +52 -52
- package/package.json +1 -1
package/dist/compat/index.mjs
CHANGED
|
@@ -84,10 +84,35 @@ 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";
|
|
87
103
|
import {
|
|
88
104
|
clamp
|
|
89
105
|
} from "../chunk-MLCL773E.mjs";
|
|
90
106
|
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";
|
|
91
116
|
import {
|
|
92
117
|
without
|
|
93
118
|
} from "../chunk-PYEYV7BY.mjs";
|
|
@@ -107,8 +132,11 @@ import {
|
|
|
107
132
|
zipObject
|
|
108
133
|
} from "../chunk-6GWEY5EL.mjs";
|
|
109
134
|
import {
|
|
110
|
-
|
|
111
|
-
} from "../chunk-
|
|
135
|
+
takeWhile
|
|
136
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
137
|
+
import {
|
|
138
|
+
toFilled
|
|
139
|
+
} from "../chunk-OP4OAKQJ.mjs";
|
|
112
140
|
import {
|
|
113
141
|
union
|
|
114
142
|
} from "../chunk-R6QA7PLZ.mjs";
|
|
@@ -128,11 +156,11 @@ import {
|
|
|
128
156
|
uniqWith
|
|
129
157
|
} from "../chunk-237HGSZS.mjs";
|
|
130
158
|
import {
|
|
131
|
-
|
|
132
|
-
} from "../chunk-
|
|
159
|
+
partition
|
|
160
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
133
161
|
import {
|
|
134
|
-
|
|
135
|
-
} from "../chunk-
|
|
162
|
+
sample
|
|
163
|
+
} from "../chunk-2KNLZB7V.mjs";
|
|
136
164
|
import {
|
|
137
165
|
sampleSize
|
|
138
166
|
} from "../chunk-EHSKB6DF.mjs";
|
|
@@ -158,11 +186,11 @@ import {
|
|
|
158
186
|
takeRightWhile
|
|
159
187
|
} from "../chunk-NTLX2MPV.mjs";
|
|
160
188
|
import {
|
|
161
|
-
|
|
162
|
-
} from "../chunk-
|
|
189
|
+
intersection
|
|
190
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
163
191
|
import {
|
|
164
|
-
|
|
165
|
-
} from "../chunk-
|
|
192
|
+
intersectionBy
|
|
193
|
+
} from "../chunk-O6UXZR3U.mjs";
|
|
166
194
|
import {
|
|
167
195
|
intersectionWith
|
|
168
196
|
} from "../chunk-XI7KRD2C.mjs";
|
|
@@ -182,14 +210,14 @@ import {
|
|
|
182
210
|
orderBy
|
|
183
211
|
} from "../chunk-7B7W36UP.mjs";
|
|
184
212
|
import {
|
|
185
|
-
|
|
186
|
-
} from "../chunk-
|
|
187
|
-
import {
|
|
188
|
-
sample
|
|
189
|
-
} from "../chunk-2KNLZB7V.mjs";
|
|
213
|
+
flatMap
|
|
214
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
190
215
|
import {
|
|
191
216
|
flattenDeep
|
|
192
217
|
} from "../chunk-ML727RRJ.mjs";
|
|
218
|
+
import {
|
|
219
|
+
flatten
|
|
220
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
193
221
|
import {
|
|
194
222
|
forEachRight
|
|
195
223
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -203,11 +231,11 @@ import {
|
|
|
203
231
|
initial
|
|
204
232
|
} from "../chunk-XPSOKBRZ.mjs";
|
|
205
233
|
import {
|
|
206
|
-
|
|
207
|
-
} from "../chunk-
|
|
234
|
+
difference
|
|
235
|
+
} from "../chunk-JPUKH67K.mjs";
|
|
208
236
|
import {
|
|
209
|
-
|
|
210
|
-
} from "../chunk-
|
|
237
|
+
differenceBy
|
|
238
|
+
} from "../chunk-LVWX5B43.mjs";
|
|
211
239
|
import {
|
|
212
240
|
differenceWith
|
|
213
241
|
} from "../chunk-6NVQAHXP.mjs";
|
|
@@ -226,12 +254,13 @@ import {
|
|
|
226
254
|
import {
|
|
227
255
|
fill
|
|
228
256
|
} from "../chunk-YFN6KOC4.mjs";
|
|
257
|
+
import "../chunk-F47GLYUU.mjs";
|
|
229
258
|
import {
|
|
230
|
-
|
|
231
|
-
} from "../chunk-
|
|
259
|
+
AbortError
|
|
260
|
+
} from "../chunk-DXB7EZUQ.mjs";
|
|
232
261
|
import {
|
|
233
|
-
|
|
234
|
-
} from "../chunk-
|
|
262
|
+
TimeoutError
|
|
263
|
+
} from "../chunk-KIOYQRMQ.mjs";
|
|
235
264
|
import {
|
|
236
265
|
chunk
|
|
237
266
|
} from "../chunk-E6C5EZQA.mjs";
|
|
@@ -241,35 +270,6 @@ import {
|
|
|
241
270
|
import {
|
|
242
271
|
countBy
|
|
243
272
|
} 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
|
|
@@ -471,6 +471,7 @@ export {
|
|
|
471
471
|
dropWhile,
|
|
472
472
|
endsWith,
|
|
473
473
|
fill,
|
|
474
|
+
head as first,
|
|
474
475
|
flatMap,
|
|
475
476
|
flatten,
|
|
476
477
|
flattenDeep,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
debounce
|
|
4
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
negate
|
|
7
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
2
8
|
import {
|
|
3
9
|
noop
|
|
4
10
|
} from "../chunk-LKXCOLNY.mjs";
|
|
@@ -8,12 +14,6 @@ import {
|
|
|
8
14
|
import {
|
|
9
15
|
throttle
|
|
10
16
|
} 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.mjs
CHANGED
|
@@ -84,10 +84,35 @@ 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";
|
|
87
103
|
import {
|
|
88
104
|
clamp
|
|
89
105
|
} from "./chunk-MLCL773E.mjs";
|
|
90
106
|
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";
|
|
91
116
|
import {
|
|
92
117
|
without
|
|
93
118
|
} from "./chunk-PYEYV7BY.mjs";
|
|
@@ -107,8 +132,11 @@ import {
|
|
|
107
132
|
zipObject
|
|
108
133
|
} from "./chunk-6GWEY5EL.mjs";
|
|
109
134
|
import {
|
|
110
|
-
|
|
111
|
-
} from "./chunk-
|
|
135
|
+
takeWhile
|
|
136
|
+
} from "./chunk-2IXFGSUA.mjs";
|
|
137
|
+
import {
|
|
138
|
+
toFilled
|
|
139
|
+
} from "./chunk-OP4OAKQJ.mjs";
|
|
112
140
|
import {
|
|
113
141
|
union
|
|
114
142
|
} from "./chunk-R6QA7PLZ.mjs";
|
|
@@ -128,11 +156,11 @@ import {
|
|
|
128
156
|
uniqWith
|
|
129
157
|
} from "./chunk-237HGSZS.mjs";
|
|
130
158
|
import {
|
|
131
|
-
|
|
132
|
-
} from "./chunk-
|
|
159
|
+
partition
|
|
160
|
+
} from "./chunk-DN3NOZ3H.mjs";
|
|
133
161
|
import {
|
|
134
|
-
|
|
135
|
-
} from "./chunk-
|
|
162
|
+
sample
|
|
163
|
+
} from "./chunk-2KNLZB7V.mjs";
|
|
136
164
|
import {
|
|
137
165
|
sampleSize
|
|
138
166
|
} from "./chunk-EHSKB6DF.mjs";
|
|
@@ -158,11 +186,11 @@ import {
|
|
|
158
186
|
takeRightWhile
|
|
159
187
|
} from "./chunk-NTLX2MPV.mjs";
|
|
160
188
|
import {
|
|
161
|
-
|
|
162
|
-
} from "./chunk-
|
|
189
|
+
intersection
|
|
190
|
+
} from "./chunk-FVVSE2F2.mjs";
|
|
163
191
|
import {
|
|
164
|
-
|
|
165
|
-
} from "./chunk-
|
|
192
|
+
intersectionBy
|
|
193
|
+
} from "./chunk-O6UXZR3U.mjs";
|
|
166
194
|
import {
|
|
167
195
|
intersectionWith
|
|
168
196
|
} from "./chunk-XI7KRD2C.mjs";
|
|
@@ -182,14 +210,14 @@ import {
|
|
|
182
210
|
orderBy
|
|
183
211
|
} from "./chunk-7B7W36UP.mjs";
|
|
184
212
|
import {
|
|
185
|
-
|
|
186
|
-
} from "./chunk-
|
|
187
|
-
import {
|
|
188
|
-
sample
|
|
189
|
-
} from "./chunk-2KNLZB7V.mjs";
|
|
213
|
+
flatMap
|
|
214
|
+
} from "./chunk-UY76KTPE.mjs";
|
|
190
215
|
import {
|
|
191
216
|
flattenDeep
|
|
192
217
|
} from "./chunk-ML727RRJ.mjs";
|
|
218
|
+
import {
|
|
219
|
+
flatten
|
|
220
|
+
} from "./chunk-33MSBDC6.mjs";
|
|
193
221
|
import {
|
|
194
222
|
forEachRight
|
|
195
223
|
} from "./chunk-IEA53J7P.mjs";
|
|
@@ -203,11 +231,11 @@ import {
|
|
|
203
231
|
initial
|
|
204
232
|
} from "./chunk-XPSOKBRZ.mjs";
|
|
205
233
|
import {
|
|
206
|
-
|
|
207
|
-
} from "./chunk-
|
|
234
|
+
difference
|
|
235
|
+
} from "./chunk-JPUKH67K.mjs";
|
|
208
236
|
import {
|
|
209
|
-
|
|
210
|
-
} from "./chunk-
|
|
237
|
+
differenceBy
|
|
238
|
+
} from "./chunk-LVWX5B43.mjs";
|
|
211
239
|
import {
|
|
212
240
|
differenceWith
|
|
213
241
|
} from "./chunk-6NVQAHXP.mjs";
|
|
@@ -226,12 +254,13 @@ import {
|
|
|
226
254
|
import {
|
|
227
255
|
fill
|
|
228
256
|
} from "./chunk-YFN6KOC4.mjs";
|
|
257
|
+
import "./chunk-F47GLYUU.mjs";
|
|
229
258
|
import {
|
|
230
|
-
|
|
231
|
-
} from "./chunk-
|
|
259
|
+
AbortError
|
|
260
|
+
} from "./chunk-DXB7EZUQ.mjs";
|
|
232
261
|
import {
|
|
233
|
-
|
|
234
|
-
} from "./chunk-
|
|
262
|
+
TimeoutError
|
|
263
|
+
} from "./chunk-KIOYQRMQ.mjs";
|
|
235
264
|
import {
|
|
236
265
|
chunk
|
|
237
266
|
} from "./chunk-E6C5EZQA.mjs";
|
|
@@ -241,35 +270,6 @@ import {
|
|
|
241
270
|
import {
|
|
242
271
|
countBy
|
|
243
272
|
} 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
|
export {
|
|
275
275
|
AbortError,
|
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.12.0-dev.
|
|
4
|
+
"version": "1.12.0-dev.278+0bb2a1ad",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|