es-toolkit 1.13.1-dev.295 → 1.13.1-dev.298
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 +35 -35
- package/dist/browser.js +3 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +25 -25
- package/dist/{chunk-QJZPJCVU.mjs → chunk-72G6BLM4.mjs} +56 -56
- package/dist/{chunk-U4JGKZ56.mjs → chunk-VRUTBJYS.mjs} +4 -2
- package/dist/{chunk-U4JGKZ56.mjs.map → chunk-VRUTBJYS.mjs.map} +1 -1
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +55 -55
- package/dist/function/index.mjs +3 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -56
- package/dist/object/clone.js +3 -1
- package/dist/object/clone.js.map +1 -1
- package/dist/object/clone.mjs +1 -1
- package/dist/object/index.js +3 -1
- package/dist/object/index.js.map +1 -1
- package/dist/object/index.mjs +1 -1
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- /package/dist/{chunk-QJZPJCVU.mjs.map → chunk-72G6BLM4.mjs.map} +0 -0
package/dist/compat/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
set,
|
|
11
11
|
startsWith,
|
|
12
12
|
zipObjectDeep
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-72G6BLM4.mjs";
|
|
14
14
|
import "../chunk-NKLIE2OI.mjs";
|
|
15
15
|
import "../chunk-XT74R35S.mjs";
|
|
16
16
|
import {
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "../chunk-6CLH5YZ2.mjs";
|
|
72
72
|
import {
|
|
73
73
|
clone
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-VRUTBJYS.mjs";
|
|
75
75
|
import {
|
|
76
76
|
flattenObject
|
|
77
77
|
} from "../chunk-XGQWTHW6.mjs";
|
|
@@ -107,32 +107,7 @@ import {
|
|
|
107
107
|
import {
|
|
108
108
|
range
|
|
109
109
|
} from "../chunk-DPH2KE6O.mjs";
|
|
110
|
-
import "../chunk-236H5JZJ.mjs";
|
|
111
|
-
import {
|
|
112
|
-
debounce
|
|
113
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
114
|
-
import {
|
|
115
|
-
negate
|
|
116
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
117
|
-
import {
|
|
118
|
-
noop
|
|
119
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
120
|
-
import {
|
|
121
|
-
once
|
|
122
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
123
|
-
import {
|
|
124
|
-
throttle
|
|
125
|
-
} from "../chunk-QOJGMVVR.mjs";
|
|
126
110
|
import "../chunk-DDH7K4QM.mjs";
|
|
127
|
-
import {
|
|
128
|
-
zipObject
|
|
129
|
-
} from "../chunk-6GWEY5EL.mjs";
|
|
130
|
-
import {
|
|
131
|
-
zipWith
|
|
132
|
-
} from "../chunk-4KYXHZ4R.mjs";
|
|
133
|
-
import {
|
|
134
|
-
unzip
|
|
135
|
-
} from "../chunk-UYZKMBDO.mjs";
|
|
136
111
|
import {
|
|
137
112
|
unzipWith
|
|
138
113
|
} from "../chunk-IFNXROZR.mjs";
|
|
@@ -152,11 +127,11 @@ import {
|
|
|
152
127
|
zip
|
|
153
128
|
} from "../chunk-IDCUZVJL.mjs";
|
|
154
129
|
import {
|
|
155
|
-
|
|
156
|
-
} from "../chunk-
|
|
130
|
+
zipObject
|
|
131
|
+
} from "../chunk-6GWEY5EL.mjs";
|
|
157
132
|
import {
|
|
158
|
-
|
|
159
|
-
} from "../chunk-
|
|
133
|
+
zipWith
|
|
134
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
160
135
|
import {
|
|
161
136
|
toFilled
|
|
162
137
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
@@ -169,9 +144,6 @@ import {
|
|
|
169
144
|
import {
|
|
170
145
|
unionWith
|
|
171
146
|
} from "../chunk-2ZCITDMK.mjs";
|
|
172
|
-
import {
|
|
173
|
-
uniqWith
|
|
174
|
-
} from "../chunk-237HGSZS.mjs";
|
|
175
147
|
import {
|
|
176
148
|
uniq
|
|
177
149
|
} from "../chunk-DVK2N4KC.mjs";
|
|
@@ -179,11 +151,11 @@ import {
|
|
|
179
151
|
uniqBy
|
|
180
152
|
} from "../chunk-B4COTK4K.mjs";
|
|
181
153
|
import {
|
|
182
|
-
|
|
183
|
-
} from "../chunk-
|
|
154
|
+
uniqWith
|
|
155
|
+
} from "../chunk-237HGSZS.mjs";
|
|
184
156
|
import {
|
|
185
|
-
|
|
186
|
-
} from "../chunk-
|
|
157
|
+
unzip
|
|
158
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
187
159
|
import {
|
|
188
160
|
sample
|
|
189
161
|
} from "../chunk-2KNLZB7V.mjs";
|
|
@@ -209,11 +181,11 @@ import {
|
|
|
209
181
|
takeRight
|
|
210
182
|
} from "../chunk-IQLKIDXF.mjs";
|
|
211
183
|
import {
|
|
212
|
-
|
|
213
|
-
} from "../chunk-
|
|
184
|
+
takeRightWhile
|
|
185
|
+
} from "../chunk-NTLX2MPV.mjs";
|
|
214
186
|
import {
|
|
215
|
-
|
|
216
|
-
} from "../chunk-
|
|
187
|
+
takeWhile
|
|
188
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
217
189
|
import {
|
|
218
190
|
intersectionBy
|
|
219
191
|
} from "../chunk-O6UXZR3U.mjs";
|
|
@@ -233,17 +205,14 @@ import {
|
|
|
233
205
|
minBy
|
|
234
206
|
} from "../chunk-IJD7FE2Z.mjs";
|
|
235
207
|
import {
|
|
236
|
-
|
|
237
|
-
} from "../chunk-
|
|
208
|
+
orderBy
|
|
209
|
+
} from "../chunk-7B7W36UP.mjs";
|
|
238
210
|
import {
|
|
239
|
-
|
|
240
|
-
} from "../chunk-
|
|
211
|
+
partition
|
|
212
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
241
213
|
import {
|
|
242
214
|
flattenDeep
|
|
243
215
|
} from "../chunk-ML727RRJ.mjs";
|
|
244
|
-
import {
|
|
245
|
-
flatten
|
|
246
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
247
216
|
import {
|
|
248
217
|
forEachRight
|
|
249
218
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -254,9 +223,11 @@ import {
|
|
|
254
223
|
head
|
|
255
224
|
} from "../chunk-HM2JT2RX.mjs";
|
|
256
225
|
import {
|
|
257
|
-
|
|
258
|
-
} from "../chunk-
|
|
259
|
-
import
|
|
226
|
+
initial
|
|
227
|
+
} from "../chunk-XPSOKBRZ.mjs";
|
|
228
|
+
import {
|
|
229
|
+
intersection
|
|
230
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
260
231
|
import {
|
|
261
232
|
differenceBy
|
|
262
233
|
} from "../chunk-LVWX5B43.mjs";
|
|
@@ -275,6 +246,23 @@ import {
|
|
|
275
246
|
import {
|
|
276
247
|
dropWhile
|
|
277
248
|
} from "../chunk-LJ2C6MVP.mjs";
|
|
249
|
+
import {
|
|
250
|
+
fill
|
|
251
|
+
} from "../chunk-YFN6KOC4.mjs";
|
|
252
|
+
import {
|
|
253
|
+
flatMap
|
|
254
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
255
|
+
import {
|
|
256
|
+
flatten
|
|
257
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
258
|
+
import "../chunk-E6C5EZQA.mjs";
|
|
259
|
+
import {
|
|
260
|
+
compact
|
|
261
|
+
} from "../chunk-DTJJIMKJ.mjs";
|
|
262
|
+
import {
|
|
263
|
+
countBy
|
|
264
|
+
} from "../chunk-CRSKT4WW.mjs";
|
|
265
|
+
import "../chunk-JPUKH67K.mjs";
|
|
278
266
|
import "../chunk-F47GLYUU.mjs";
|
|
279
267
|
import {
|
|
280
268
|
AbortError
|
|
@@ -282,10 +270,22 @@ import {
|
|
|
282
270
|
import {
|
|
283
271
|
TimeoutError
|
|
284
272
|
} from "../chunk-KIOYQRMQ.mjs";
|
|
285
|
-
import "../chunk-
|
|
273
|
+
import "../chunk-236H5JZJ.mjs";
|
|
286
274
|
import {
|
|
287
|
-
|
|
288
|
-
} from "../chunk-
|
|
275
|
+
negate
|
|
276
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
277
|
+
import {
|
|
278
|
+
noop
|
|
279
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
280
|
+
import {
|
|
281
|
+
once
|
|
282
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
283
|
+
import {
|
|
284
|
+
throttle
|
|
285
|
+
} from "../chunk-QOJGMVVR.mjs";
|
|
286
|
+
import {
|
|
287
|
+
debounce
|
|
288
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
289
289
|
import "../chunk-24FKGR6U.mjs";
|
|
290
290
|
export {
|
|
291
291
|
AbortError,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
debounce
|
|
4
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
5
2
|
import {
|
|
6
3
|
negate
|
|
7
4
|
} from "../chunk-BOOQBJN2.mjs";
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
throttle
|
|
16
13
|
} from "../chunk-QOJGMVVR.mjs";
|
|
14
|
+
import {
|
|
15
|
+
debounce
|
|
16
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
17
17
|
import "../chunk-24FKGR6U.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.js
CHANGED
|
@@ -912,7 +912,9 @@ function clone(obj) {
|
|
|
912
912
|
return result;
|
|
913
913
|
}
|
|
914
914
|
if (typeof obj === "object") {
|
|
915
|
-
|
|
915
|
+
const prototype = Object.getPrototypeOf(obj);
|
|
916
|
+
const result = Object.create(prototype);
|
|
917
|
+
return Object.assign(result, obj);
|
|
916
918
|
}
|
|
917
919
|
return obj;
|
|
918
920
|
}
|