@base-web-kits/base-tools-ts 1.1.18-alpha.1 → 1.2.0
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/base-tools-ts.umd.global.js +310 -275
- package/dist/base-tools-ts.umd.global.js.map +1 -1
- package/dist/es-toolkit/index.d.ts +6 -1
- package/dist/es-toolkit/index.d.ts.map +1 -1
- package/dist/index.cjs +190 -2901
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +191 -2721
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/ts/es-toolkit/index.ts +197 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base-web-kits/base-tools-ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Independent TS utilities package built from src/ts.",
|
|
6
6
|
"keywords": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"es-toolkit": "^1.
|
|
28
|
+
"es-toolkit": "^1.44.0",
|
|
29
29
|
"bignumber.js": "^9.1.2",
|
|
30
30
|
"dayjs": "^1.11.19",
|
|
31
31
|
"mitt": "^3.0.1"
|
|
@@ -1,6 +1,197 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* re-export 全量 es-toolkit
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* re-export 全量 es-toolkit
|
|
3
|
+
* 版本: 1.44.0
|
|
4
|
+
* 文档: https://es-toolkit.dev/
|
|
5
|
+
* 目的: 提供常用工具,收敛依赖版本
|
|
6
|
+
*
|
|
7
|
+
* 注意: 此文件由 scripts/update-es-toolkit-exports.ts 生成, 请勿手动修改.
|
|
8
|
+
* 如需更新, 请先升级es-toolkit, 然后运行: npm run update:es-toolkit
|
|
9
|
+
*/
|
|
10
|
+
export {
|
|
11
|
+
AbortError,
|
|
12
|
+
Mutex,
|
|
13
|
+
Semaphore,
|
|
14
|
+
TimeoutError,
|
|
15
|
+
after,
|
|
16
|
+
ary,
|
|
17
|
+
assert,
|
|
18
|
+
asyncNoop,
|
|
19
|
+
at,
|
|
20
|
+
attempt,
|
|
21
|
+
attemptAsync,
|
|
22
|
+
before,
|
|
23
|
+
camelCase,
|
|
24
|
+
capitalize,
|
|
25
|
+
chunk,
|
|
26
|
+
clamp,
|
|
27
|
+
clone,
|
|
28
|
+
cloneDeep,
|
|
29
|
+
cloneDeepWith,
|
|
30
|
+
compact,
|
|
31
|
+
constantCase,
|
|
32
|
+
countBy,
|
|
33
|
+
curry,
|
|
34
|
+
curryRight,
|
|
35
|
+
debounce,
|
|
36
|
+
deburr,
|
|
37
|
+
delay,
|
|
38
|
+
difference,
|
|
39
|
+
differenceBy,
|
|
40
|
+
differenceWith,
|
|
41
|
+
drop,
|
|
42
|
+
dropRight,
|
|
43
|
+
dropRightWhile,
|
|
44
|
+
dropWhile,
|
|
45
|
+
escape,
|
|
46
|
+
escapeRegExp,
|
|
47
|
+
fill,
|
|
48
|
+
filterAsync,
|
|
49
|
+
findKey,
|
|
50
|
+
flatMap,
|
|
51
|
+
flatMapAsync,
|
|
52
|
+
flatMapDeep,
|
|
53
|
+
flatten,
|
|
54
|
+
flattenDeep,
|
|
55
|
+
flattenObject,
|
|
56
|
+
flow,
|
|
57
|
+
flowRight,
|
|
58
|
+
forEachAsync,
|
|
59
|
+
forEachRight,
|
|
60
|
+
groupBy,
|
|
61
|
+
head,
|
|
62
|
+
identity,
|
|
63
|
+
inRange,
|
|
64
|
+
initial,
|
|
65
|
+
intersection,
|
|
66
|
+
intersectionBy,
|
|
67
|
+
intersectionWith,
|
|
68
|
+
invariant,
|
|
69
|
+
invert,
|
|
70
|
+
isArrayBuffer,
|
|
71
|
+
isBlob,
|
|
72
|
+
isBoolean,
|
|
73
|
+
isBrowser,
|
|
74
|
+
isBuffer,
|
|
75
|
+
isDate,
|
|
76
|
+
isEmptyObject,
|
|
77
|
+
isEqual,
|
|
78
|
+
isEqualWith,
|
|
79
|
+
isError,
|
|
80
|
+
isFile,
|
|
81
|
+
isFunction,
|
|
82
|
+
isJSON,
|
|
83
|
+
isJSONArray,
|
|
84
|
+
isJSONObject,
|
|
85
|
+
isJSONValue,
|
|
86
|
+
isLength,
|
|
87
|
+
isMap,
|
|
88
|
+
isNil,
|
|
89
|
+
isNode,
|
|
90
|
+
isNotNil,
|
|
91
|
+
isNull,
|
|
92
|
+
isNumber,
|
|
93
|
+
isPlainObject,
|
|
94
|
+
isPrimitive,
|
|
95
|
+
isPromise,
|
|
96
|
+
isRegExp,
|
|
97
|
+
isSet,
|
|
98
|
+
isString,
|
|
99
|
+
isSubset,
|
|
100
|
+
isSubsetWith,
|
|
101
|
+
isSymbol,
|
|
102
|
+
isTypedArray,
|
|
103
|
+
isUndefined,
|
|
104
|
+
isWeakMap,
|
|
105
|
+
isWeakSet,
|
|
106
|
+
kebabCase,
|
|
107
|
+
keyBy,
|
|
108
|
+
last,
|
|
109
|
+
limitAsync,
|
|
110
|
+
lowerCase,
|
|
111
|
+
lowerFirst,
|
|
112
|
+
mapAsync,
|
|
113
|
+
mapKeys,
|
|
114
|
+
mapValues,
|
|
115
|
+
maxBy,
|
|
116
|
+
mean,
|
|
117
|
+
meanBy,
|
|
118
|
+
median,
|
|
119
|
+
medianBy,
|
|
120
|
+
memoize,
|
|
121
|
+
merge,
|
|
122
|
+
mergeWith,
|
|
123
|
+
minBy,
|
|
124
|
+
negate,
|
|
125
|
+
noop,
|
|
126
|
+
omit,
|
|
127
|
+
omitBy,
|
|
128
|
+
once,
|
|
129
|
+
orderBy,
|
|
130
|
+
pad,
|
|
131
|
+
partial,
|
|
132
|
+
partialRight,
|
|
133
|
+
partition,
|
|
134
|
+
pascalCase,
|
|
135
|
+
pick,
|
|
136
|
+
pickBy,
|
|
137
|
+
pull,
|
|
138
|
+
pullAt,
|
|
139
|
+
random,
|
|
140
|
+
randomInt,
|
|
141
|
+
range,
|
|
142
|
+
rangeRight,
|
|
143
|
+
reduceAsync,
|
|
144
|
+
remove,
|
|
145
|
+
rest,
|
|
146
|
+
retry,
|
|
147
|
+
reverseString,
|
|
148
|
+
round,
|
|
149
|
+
sample,
|
|
150
|
+
sampleSize,
|
|
151
|
+
shuffle,
|
|
152
|
+
snakeCase,
|
|
153
|
+
sortBy,
|
|
154
|
+
spread,
|
|
155
|
+
startCase,
|
|
156
|
+
sum,
|
|
157
|
+
sumBy,
|
|
158
|
+
tail,
|
|
159
|
+
take,
|
|
160
|
+
takeRight,
|
|
161
|
+
takeRightWhile,
|
|
162
|
+
takeWhile,
|
|
163
|
+
throttle,
|
|
164
|
+
timeout,
|
|
165
|
+
toCamelCaseKeys,
|
|
166
|
+
toFilled,
|
|
167
|
+
toMerged,
|
|
168
|
+
toSnakeCaseKeys,
|
|
169
|
+
trim,
|
|
170
|
+
trimEnd,
|
|
171
|
+
trimStart,
|
|
172
|
+
unary,
|
|
173
|
+
unescape,
|
|
174
|
+
union,
|
|
175
|
+
unionBy,
|
|
176
|
+
unionWith,
|
|
177
|
+
uniq,
|
|
178
|
+
uniqBy,
|
|
179
|
+
uniqWith,
|
|
180
|
+
unzip,
|
|
181
|
+
unzipWith,
|
|
182
|
+
upperCase,
|
|
183
|
+
upperFirst,
|
|
184
|
+
windowed,
|
|
185
|
+
withTimeout,
|
|
186
|
+
without,
|
|
187
|
+
words,
|
|
188
|
+
xor,
|
|
189
|
+
xorBy,
|
|
190
|
+
xorWith,
|
|
191
|
+
zip,
|
|
192
|
+
zipObject,
|
|
193
|
+
zipWith,
|
|
194
|
+
} from 'es-toolkit';
|
|
195
|
+
|
|
196
|
+
// 导出类型
|
|
197
|
+
export type * from 'es-toolkit';
|