es-toolkit 1.13.1-dev.301 → 1.13.1-dev.302
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/browser.js +5 -5
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +6 -7
- package/dist/browser.mjs.map +1 -1
- package/dist/chunk-B645AYL4.mjs +1 -0
- package/dist/{chunk-I24736ZF.mjs → chunk-BVNAXMKC.mjs} +15 -12
- package/dist/chunk-BVNAXMKC.mjs.map +1 -0
- package/dist/compat/index.d.mts +24 -2
- package/dist/compat/index.d.ts +24 -2
- package/dist/compat/index.js +5 -5
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +12 -14
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -14
- package/dist/predicate/index.d.mts +0 -1
- package/dist/predicate/index.d.ts +0 -1
- package/dist/predicate/index.js +0 -7
- package/dist/predicate/index.js.map +1 -1
- package/dist/predicate/index.mjs +4 -8
- package/dist/string/index.mjs +6 -6
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- package/dist/chunk-AGDMW65V.mjs +0 -9
- package/dist/chunk-AGDMW65V.mjs.map +0 -1
- package/dist/chunk-I24736ZF.mjs.map +0 -1
- package/dist/chunk-Y3ZTWIBR.mjs +0 -1
- package/dist/predicate/isArray.d.mts +0 -24
- package/dist/predicate/isArray.d.ts +0 -24
- package/dist/predicate/isArray.js +0 -33
- package/dist/predicate/isArray.js.map +0 -1
- package/dist/predicate/isArray.mjs +0 -8
- package/dist/predicate/isArray.mjs.map +0 -1
- /package/dist/{chunk-Y3ZTWIBR.mjs.map → chunk-B645AYL4.mjs.map} +0 -0
package/dist/compat/index.mjs
CHANGED
|
@@ -4,21 +4,16 @@ import {
|
|
|
4
4
|
difference,
|
|
5
5
|
endsWith,
|
|
6
6
|
get,
|
|
7
|
+
isArray,
|
|
7
8
|
isPlainObject,
|
|
8
9
|
max,
|
|
9
10
|
min,
|
|
10
11
|
set,
|
|
11
12
|
startsWith,
|
|
12
13
|
zipObjectDeep
|
|
13
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-BVNAXMKC.mjs";
|
|
14
15
|
import "../chunk-NKLIE2OI.mjs";
|
|
15
16
|
import "../chunk-XT74R35S.mjs";
|
|
16
|
-
import {
|
|
17
|
-
camelCase
|
|
18
|
-
} from "../chunk-Y5V7UAZZ.mjs";
|
|
19
|
-
import {
|
|
20
|
-
capitalize
|
|
21
|
-
} from "../chunk-U56ZOM7L.mjs";
|
|
22
17
|
import {
|
|
23
18
|
kebabCase
|
|
24
19
|
} from "../chunk-EYYZQFOP.mjs";
|
|
@@ -31,7 +26,6 @@ import {
|
|
|
31
26
|
import {
|
|
32
27
|
startCase
|
|
33
28
|
} from "../chunk-QXTNZR7B.mjs";
|
|
34
|
-
import "../chunk-WVQ7YVRK.mjs";
|
|
35
29
|
import "../chunk-4OIZM4HS.mjs";
|
|
36
30
|
import {
|
|
37
31
|
withTimeout
|
|
@@ -40,19 +34,20 @@ import "../chunk-CVVZHOJX.mjs";
|
|
|
40
34
|
import {
|
|
41
35
|
delay
|
|
42
36
|
} from "../chunk-O64NE2P4.mjs";
|
|
43
|
-
import "../chunk-Y3ZTWIBR.mjs";
|
|
44
37
|
import {
|
|
45
|
-
|
|
46
|
-
} from "../chunk-
|
|
38
|
+
camelCase
|
|
39
|
+
} from "../chunk-Y5V7UAZZ.mjs";
|
|
40
|
+
import {
|
|
41
|
+
capitalize
|
|
42
|
+
} from "../chunk-U56ZOM7L.mjs";
|
|
43
|
+
import "../chunk-WVQ7YVRK.mjs";
|
|
44
|
+
import "../chunk-B645AYL4.mjs";
|
|
47
45
|
import {
|
|
48
46
|
isNull
|
|
49
47
|
} from "../chunk-AIRSKN47.mjs";
|
|
50
48
|
import {
|
|
51
49
|
isUndefined
|
|
52
50
|
} from "../chunk-VH2PV426.mjs";
|
|
53
|
-
import {
|
|
54
|
-
isArray
|
|
55
|
-
} from "../chunk-AGDMW65V.mjs";
|
|
56
51
|
import {
|
|
57
52
|
isEqual
|
|
58
53
|
} from "../chunk-JYSV56US.mjs";
|
|
@@ -62,6 +57,9 @@ import {
|
|
|
62
57
|
import {
|
|
63
58
|
isNil
|
|
64
59
|
} from "../chunk-WMM7TZLG.mjs";
|
|
60
|
+
import {
|
|
61
|
+
isNotNil
|
|
62
|
+
} from "../chunk-BMRTZMRE.mjs";
|
|
65
63
|
import "../chunk-54TK5BIS.mjs";
|
|
66
64
|
import {
|
|
67
65
|
omitBy
|
package/dist/index.d.mts
CHANGED
|
@@ -80,7 +80,6 @@ export { isNull } from './predicate/isNull.mjs';
|
|
|
80
80
|
export { isUndefined } from './predicate/isUndefined.mjs';
|
|
81
81
|
export { isLength } from './predicate/isLength.mjs';
|
|
82
82
|
export { isPlainObject } from './predicate/isPlainObject.mjs';
|
|
83
|
-
export { isArray } from './predicate/isArray.mjs';
|
|
84
83
|
export { delay } from './promise/delay.mjs';
|
|
85
84
|
export { withTimeout } from './promise/withTimeout.mjs';
|
|
86
85
|
export { camelCase } from './string/camelCase.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -80,7 +80,6 @@ export { isNull } from './predicate/isNull.js';
|
|
|
80
80
|
export { isUndefined } from './predicate/isUndefined.js';
|
|
81
81
|
export { isLength } from './predicate/isLength.js';
|
|
82
82
|
export { isPlainObject } from './predicate/isPlainObject.js';
|
|
83
|
-
export { isArray } from './predicate/isArray.js';
|
|
84
83
|
export { delay } from './promise/delay.js';
|
|
85
84
|
export { withTimeout } from './promise/withTimeout.js';
|
|
86
85
|
export { camelCase } from './string/camelCase.js';
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,6 @@ __export(src_exports, {
|
|
|
86
86
|
intersectionBy: () => intersectionBy,
|
|
87
87
|
intersectionWith: () => intersectionWith,
|
|
88
88
|
invert: () => invert,
|
|
89
|
-
isArray: () => isArray,
|
|
90
89
|
isEqual: () => isEqual,
|
|
91
90
|
isLength: () => isLength,
|
|
92
91
|
isNil: () => isNil,
|
|
@@ -1028,11 +1027,6 @@ function isLength(value) {
|
|
|
1028
1027
|
return typeof value === "number" && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;
|
|
1029
1028
|
}
|
|
1030
1029
|
|
|
1031
|
-
// src/predicate/isArray.ts
|
|
1032
|
-
function isArray(value) {
|
|
1033
|
-
return Array.isArray(value);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
1030
|
// src/promise/delay.ts
|
|
1037
1031
|
function delay(ms, { signal } = {}) {
|
|
1038
1032
|
return new Promise((resolve, reject) => {
|
|
@@ -1156,7 +1150,6 @@ function startCase(str) {
|
|
|
1156
1150
|
intersectionBy,
|
|
1157
1151
|
intersectionWith,
|
|
1158
1152
|
invert,
|
|
1159
|
-
isArray,
|
|
1160
1153
|
isEqual,
|
|
1161
1154
|
isLength,
|
|
1162
1155
|
isNil,
|