@fangzhongya/utils 0.0.50 → 0.0.55
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/basic/index.cjs +22 -21
- package/dist/basic/index.d.cts +2 -1
- package/dist/basic/index.d.ts +2 -1
- package/dist/basic/index.js +21 -20
- package/dist/basic/object/deepCopys.cjs +17 -0
- package/dist/basic/object/deepCopys.d.cts +31 -0
- package/dist/basic/object/deepCopys.d.ts +31 -0
- package/dist/basic/object/deepCopys.js +17 -0
- package/dist/basic/object/index.cjs +24 -10
- package/dist/basic/object/index.d.cts +1 -0
- package/dist/basic/object/index.d.ts +1 -0
- package/dist/basic/object/index.js +30 -16
- package/dist/basic/string/index.cjs +11 -11
- package/dist/basic/string/index.js +13 -13
- package/dist/basic/string/toJsons.cjs +3 -3
- package/dist/basic/string/toJsons.js +2 -2
- package/dist/{chunk-XU7MQD33.js → chunk-6BFEQDEL.js} +29 -15
- package/dist/{chunk-LY3XJLNL.js → chunk-7EHG5A4B.js} +11 -11
- package/dist/{chunk-QC5UCHB5.cjs → chunk-7RFWR2DR.cjs} +12 -12
- package/dist/{chunk-J2WRN55J.cjs → chunk-FL2HPQ66.cjs} +6 -6
- package/dist/{chunk-53EIYZSN.cjs → chunk-G7BRLTGL.cjs} +4 -4
- package/dist/{chunk-UCDL7HLX.cjs → chunk-IODGCXUS.cjs} +22 -8
- package/dist/{chunk-Z4TJLQF2.js → chunk-MNS676PI.js} +4 -4
- package/dist/chunk-SJ74DU4B.cjs +275 -0
- package/dist/{chunk-7VGVDOZH.js → chunk-X44UO4CZ.js} +12 -12
- package/dist/chunk-YMKTU42G.js +275 -0
- package/dist/date/index.cjs +4 -4
- package/dist/date/index.js +4 -4
- package/dist/{index-BHI-3z9i.d.cts → index-Cz8fWd5l.d.cts} +8 -1
- package/dist/{index-C6fjPfzn.d.ts → index-J-xiEtN9.d.ts} +1 -1
- package/dist/{index-DYRjlOZp.d.cts → index-KftqgSWD.d.cts} +1 -1
- package/dist/{index-qKkaUBR7.d.ts → index-oW2flHUo.d.ts} +8 -1
- package/dist/index.cjs +44 -43
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +44 -43
- package/dist/judge/index.cjs +7 -7
- package/dist/judge/index.js +13 -13
- package/dist/judge/matchs.cjs +3 -3
- package/dist/judge/matchs.js +2 -2
- package/package.json +593 -588
- package/dist/{chunk-T2QKEABG.js → chunk-33X65PQS.js} +3 -3
- package/dist/{chunk-T22I7TJQ.cjs → chunk-3YUI42XN.cjs} +3 -3
- package/dist/{chunk-5SOPYS7L.cjs → chunk-7NEXCOZZ.cjs} +3 -3
- package/dist/{chunk-5HC662VK.js → chunk-I5D6RCLU.js} +3 -3
- package/dist/{chunk-H22VVRP6.js → chunk-JPQN3LUH.js} +3 -3
- package/dist/{chunk-ETMYYVQJ.cjs → chunk-L6JTKQ65.cjs} +2 -2
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
// packages/basic/object/deepCopys.ts
|
|
2
|
+
function deepCopys(obj, options = {}) {
|
|
3
|
+
const {
|
|
4
|
+
visited = /* @__PURE__ */ new WeakMap(),
|
|
5
|
+
maxDepth = 100,
|
|
6
|
+
handleProxy = "unwrap",
|
|
7
|
+
currentDepth = 0
|
|
8
|
+
} = options;
|
|
9
|
+
if (currentDepth >= maxDepth) {
|
|
10
|
+
console.warn("deepCopys: Maximum depth reached, returning reference");
|
|
11
|
+
return obj;
|
|
12
|
+
}
|
|
13
|
+
if (obj === null || obj === void 0 || typeof obj !== "object") {
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
if (typeof obj === "function") {
|
|
17
|
+
return obj;
|
|
18
|
+
}
|
|
19
|
+
if (visited.has(obj)) {
|
|
20
|
+
return visited.get(obj);
|
|
21
|
+
}
|
|
22
|
+
const isProxy = isProxyObject(obj);
|
|
23
|
+
if (isProxy) {
|
|
24
|
+
switch (handleProxy) {
|
|
25
|
+
case "unwrap":
|
|
26
|
+
const rawValue = getProxyTarget(obj);
|
|
27
|
+
if (rawValue !== obj) {
|
|
28
|
+
return deepCopys(rawValue, {
|
|
29
|
+
visited,
|
|
30
|
+
maxDepth,
|
|
31
|
+
handleProxy,
|
|
32
|
+
currentDepth: currentDepth + 1
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
case "clone":
|
|
37
|
+
const target = getProxyTarget(obj);
|
|
38
|
+
if (target !== obj) {
|
|
39
|
+
const result = deepCopys(target, {
|
|
40
|
+
visited,
|
|
41
|
+
maxDepth,
|
|
42
|
+
handleProxy,
|
|
43
|
+
currentDepth: currentDepth + 1
|
|
44
|
+
});
|
|
45
|
+
visited.set(obj, result);
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
case "keep":
|
|
50
|
+
return obj;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (obj instanceof Date) {
|
|
54
|
+
const copy = new Date(obj.getTime());
|
|
55
|
+
visited.set(obj, copy);
|
|
56
|
+
return copy;
|
|
57
|
+
}
|
|
58
|
+
if (obj instanceof RegExp) {
|
|
59
|
+
const copy = new RegExp(obj.source, obj.flags);
|
|
60
|
+
visited.set(obj, copy);
|
|
61
|
+
return copy;
|
|
62
|
+
}
|
|
63
|
+
if (obj instanceof Map) {
|
|
64
|
+
const copy = /* @__PURE__ */ new Map();
|
|
65
|
+
visited.set(obj, copy);
|
|
66
|
+
obj.forEach((value, key) => {
|
|
67
|
+
copy.set(
|
|
68
|
+
deepCopys(key, {
|
|
69
|
+
visited,
|
|
70
|
+
maxDepth,
|
|
71
|
+
handleProxy,
|
|
72
|
+
currentDepth: currentDepth + 1
|
|
73
|
+
}),
|
|
74
|
+
deepCopys(value, {
|
|
75
|
+
visited,
|
|
76
|
+
maxDepth,
|
|
77
|
+
handleProxy,
|
|
78
|
+
currentDepth: currentDepth + 1
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
});
|
|
82
|
+
return copy;
|
|
83
|
+
}
|
|
84
|
+
if (obj instanceof Set) {
|
|
85
|
+
const copy = /* @__PURE__ */ new Set();
|
|
86
|
+
visited.set(obj, copy);
|
|
87
|
+
obj.forEach((value) => {
|
|
88
|
+
copy.add(
|
|
89
|
+
deepCopys(value, {
|
|
90
|
+
visited,
|
|
91
|
+
maxDepth,
|
|
92
|
+
handleProxy,
|
|
93
|
+
currentDepth: currentDepth + 1
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
});
|
|
97
|
+
return copy;
|
|
98
|
+
}
|
|
99
|
+
if (obj instanceof ArrayBuffer) {
|
|
100
|
+
const copy = obj.slice(0);
|
|
101
|
+
visited.set(obj, copy);
|
|
102
|
+
return copy;
|
|
103
|
+
}
|
|
104
|
+
if (ArrayBuffer.isView(obj)) {
|
|
105
|
+
const copy = obj.slice();
|
|
106
|
+
visited.set(obj, copy);
|
|
107
|
+
return copy;
|
|
108
|
+
}
|
|
109
|
+
if (isPromise(obj)) {
|
|
110
|
+
return obj;
|
|
111
|
+
}
|
|
112
|
+
const objClone = Array.isArray(obj) ? [] : {};
|
|
113
|
+
visited.set(obj, objClone);
|
|
114
|
+
const keys = getAllPropertyKeys(obj);
|
|
115
|
+
for (const key of keys) {
|
|
116
|
+
try {
|
|
117
|
+
const descriptor = Object.getOwnPropertyDescriptor(
|
|
118
|
+
obj,
|
|
119
|
+
key
|
|
120
|
+
);
|
|
121
|
+
if (descriptor && descriptor.get) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const value = obj[key];
|
|
125
|
+
objClone[key] = deepCopys(value, {
|
|
126
|
+
visited,
|
|
127
|
+
maxDepth,
|
|
128
|
+
handleProxy,
|
|
129
|
+
currentDepth: currentDepth + 1
|
|
130
|
+
});
|
|
131
|
+
} catch (error) {
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return objClone;
|
|
136
|
+
}
|
|
137
|
+
function isProxyObject(obj) {
|
|
138
|
+
if (!obj || typeof obj !== "object") return false;
|
|
139
|
+
try {
|
|
140
|
+
if (obj && obj.__v_isReactive || obj.__v_isReadonly) {
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
} catch {
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
const str = Object.prototype.toString.call(obj);
|
|
147
|
+
if (str === "[object Proxy]") {
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
} catch {
|
|
151
|
+
}
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
function getProxyTarget(obj) {
|
|
155
|
+
if (!obj || typeof obj !== "object") return obj;
|
|
156
|
+
try {
|
|
157
|
+
const raw = obj.__v_raw;
|
|
158
|
+
if (raw !== void 0) {
|
|
159
|
+
return raw;
|
|
160
|
+
}
|
|
161
|
+
} catch {
|
|
162
|
+
}
|
|
163
|
+
return obj;
|
|
164
|
+
}
|
|
165
|
+
function isPromise(obj) {
|
|
166
|
+
return obj && typeof obj === "object" && typeof obj.then === "function";
|
|
167
|
+
}
|
|
168
|
+
function getAllPropertyKeys(obj) {
|
|
169
|
+
const keys = [];
|
|
170
|
+
const ownKeys = Reflect.ownKeys(obj);
|
|
171
|
+
keys.push(...ownKeys);
|
|
172
|
+
return keys;
|
|
173
|
+
}
|
|
174
|
+
function safeDeepCopy(obj) {
|
|
175
|
+
try {
|
|
176
|
+
const rawObj = getRawReactiveValue(obj);
|
|
177
|
+
if (rawObj !== obj) {
|
|
178
|
+
return deepCopys(rawObj, {
|
|
179
|
+
handleProxy: "unwrap",
|
|
180
|
+
maxDepth: 50
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
} catch (error) {
|
|
184
|
+
}
|
|
185
|
+
return deepCopys(obj, {
|
|
186
|
+
handleProxy: "unwrap",
|
|
187
|
+
maxDepth: 50
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function getRawReactiveValue(obj) {
|
|
191
|
+
if (!obj || typeof obj !== "object") return obj;
|
|
192
|
+
try {
|
|
193
|
+
const raw = obj.__v_raw;
|
|
194
|
+
if (raw !== void 0) {
|
|
195
|
+
return raw;
|
|
196
|
+
}
|
|
197
|
+
} catch {
|
|
198
|
+
}
|
|
199
|
+
try {
|
|
200
|
+
if (obj.__ob__) {
|
|
201
|
+
const plainObj = { ...obj };
|
|
202
|
+
delete plainObj.__ob__;
|
|
203
|
+
return plainObj;
|
|
204
|
+
}
|
|
205
|
+
} catch {
|
|
206
|
+
}
|
|
207
|
+
return obj;
|
|
208
|
+
}
|
|
209
|
+
function fastDeepCopy(obj) {
|
|
210
|
+
if (obj === null || obj === void 0 || typeof obj !== "object") {
|
|
211
|
+
return obj;
|
|
212
|
+
}
|
|
213
|
+
if (obj instanceof Date) {
|
|
214
|
+
return new Date(obj.getTime());
|
|
215
|
+
}
|
|
216
|
+
if (obj instanceof RegExp) {
|
|
217
|
+
return new RegExp(obj.source, obj.flags);
|
|
218
|
+
}
|
|
219
|
+
try {
|
|
220
|
+
return JSON.parse(JSON.stringify(obj));
|
|
221
|
+
} catch (e) {
|
|
222
|
+
console.warn("fastDeepCopy failed, falling back to deepCopys", e);
|
|
223
|
+
return deepCopys(obj, {
|
|
224
|
+
handleProxy: "unwrap",
|
|
225
|
+
maxDepth: 100
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function structuredCloneCopy(obj) {
|
|
230
|
+
if (typeof structuredClone === "function") {
|
|
231
|
+
try {
|
|
232
|
+
return structuredClone(obj);
|
|
233
|
+
} catch (e) {
|
|
234
|
+
console.warn(
|
|
235
|
+
"structuredClone failed, falling back to deepCopys",
|
|
236
|
+
e
|
|
237
|
+
);
|
|
238
|
+
return deepCopys(obj);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return deepCopys(obj);
|
|
242
|
+
}
|
|
243
|
+
function isPlainObject(obj) {
|
|
244
|
+
return obj !== null && typeof obj === "object" && obj.constructor === Object;
|
|
245
|
+
}
|
|
246
|
+
function simpleDeepCopy(obj) {
|
|
247
|
+
if (obj === null || obj === void 0 || typeof obj !== "object") {
|
|
248
|
+
return obj;
|
|
249
|
+
}
|
|
250
|
+
if (Array.isArray(obj)) {
|
|
251
|
+
return obj.map((item) => simpleDeepCopy(item));
|
|
252
|
+
}
|
|
253
|
+
if (obj instanceof Date) {
|
|
254
|
+
return new Date(obj.getTime());
|
|
255
|
+
}
|
|
256
|
+
if (obj instanceof RegExp) {
|
|
257
|
+
return new RegExp(obj.source, obj.flags);
|
|
258
|
+
}
|
|
259
|
+
const copy = {};
|
|
260
|
+
for (const key in obj) {
|
|
261
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
262
|
+
copy[key] = simpleDeepCopy(obj[key]);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return copy;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export {
|
|
269
|
+
deepCopys,
|
|
270
|
+
safeDeepCopy,
|
|
271
|
+
fastDeepCopy,
|
|
272
|
+
structuredCloneCopy,
|
|
273
|
+
isPlainObject,
|
|
274
|
+
simpleDeepCopy
|
|
275
|
+
};
|
package/dist/date/index.cjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkZ2EAQZ47cjs = require('../chunk-Z2EAQZ47.cjs');
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-7NEXCOZZ.cjs');
|
|
5
2
|
|
|
6
3
|
|
|
7
4
|
|
|
@@ -9,6 +6,9 @@ var _chunk7TGGIID4cjs = require('../chunk-7TGGIID4.cjs');
|
|
|
9
6
|
|
|
10
7
|
|
|
11
8
|
var _chunk75UYCE4Xcjs = require('../chunk-75UYCE4X.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkZ2EAQZ47cjs = require('../chunk-Z2EAQZ47.cjs');
|
|
12
12
|
require('../chunk-75ZPJI57.cjs');
|
|
13
13
|
|
|
14
14
|
|
package/dist/date/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
hourFormat
|
|
4
|
-
} from "../chunk-UCF3YRN2.js";
|
|
1
|
+
import "../chunk-JPQN3LUH.js";
|
|
5
2
|
import {
|
|
6
3
|
format,
|
|
7
4
|
parseDateString
|
|
@@ -9,6 +6,9 @@ import {
|
|
|
9
6
|
import {
|
|
10
7
|
getEndOfDay
|
|
11
8
|
} from "../chunk-Q2EFMBMD.js";
|
|
9
|
+
import {
|
|
10
|
+
hourFormat
|
|
11
|
+
} from "../chunk-UCF3YRN2.js";
|
|
12
12
|
import "../chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
format,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { attrValueSort } from './basic/object/attrValueSort.cjs';
|
|
2
2
|
import { deepCopy } from './basic/object/deepCopy.cjs';
|
|
3
|
+
import { deepCopys, fastDeepCopy, isPlainObject, safeDeepCopy, simpleDeepCopy, structuredCloneCopy } from './basic/object/deepCopys.cjs';
|
|
3
4
|
import { filterObject } from './basic/object/filterObject.cjs';
|
|
4
5
|
import { getSort } from './basic/object/getSort.cjs';
|
|
5
6
|
import { hasOwn } from './basic/object/hasOwn.cjs';
|
|
@@ -14,6 +15,8 @@ import { unmergeObject } from './basic/object/unmergeObject.cjs';
|
|
|
14
15
|
|
|
15
16
|
declare const index_attrValueSort: typeof attrValueSort;
|
|
16
17
|
declare const index_deepCopy: typeof deepCopy;
|
|
18
|
+
declare const index_deepCopys: typeof deepCopys;
|
|
19
|
+
declare const index_fastDeepCopy: typeof fastDeepCopy;
|
|
17
20
|
declare const index_filterObject: typeof filterObject;
|
|
18
21
|
declare const index_getObjValue: typeof getObjValue;
|
|
19
22
|
declare const index_getSort: typeof getSort;
|
|
@@ -22,13 +25,17 @@ declare const index_isEqual: typeof isEqual;
|
|
|
22
25
|
declare const index_isEqualEnhanced: typeof isEqualEnhanced;
|
|
23
26
|
declare const index_isObject: typeof isObject;
|
|
24
27
|
declare const index_isObjectArray: typeof isObjectArray;
|
|
28
|
+
declare const index_isPlainObject: typeof isPlainObject;
|
|
25
29
|
declare const index_mergeObject: typeof mergeObject;
|
|
26
30
|
declare const index_reverseObj: typeof reverseObj;
|
|
31
|
+
declare const index_safeDeepCopy: typeof safeDeepCopy;
|
|
27
32
|
declare const index_setObjValue: typeof setObjValue;
|
|
28
33
|
declare const index_setSort: typeof setSort;
|
|
34
|
+
declare const index_simpleDeepCopy: typeof simpleDeepCopy;
|
|
35
|
+
declare const index_structuredCloneCopy: typeof structuredCloneCopy;
|
|
29
36
|
declare const index_unmergeObject: typeof unmergeObject;
|
|
30
37
|
declare namespace index {
|
|
31
|
-
export { index_attrValueSort as attrValueSort, index_deepCopy as deepCopy, index_filterObject as filterObject, index_getObjValue as getObjValue, index_getSort as getSort, index_hasOwn as hasOwn, index_isEqual as isEqual, index_isEqualEnhanced as isEqualEnhanced, index_isObject as isObject, index_isObjectArray as isObjectArray, index_mergeObject as mergeObject, index_reverseObj as reverseObj, index_setObjValue as setObjValue, index_setSort as setSort, index_unmergeObject as unmergeObject };
|
|
38
|
+
export { index_attrValueSort as attrValueSort, index_deepCopy as deepCopy, index_deepCopys as deepCopys, index_fastDeepCopy as fastDeepCopy, index_filterObject as filterObject, index_getObjValue as getObjValue, index_getSort as getSort, index_hasOwn as hasOwn, index_isEqual as isEqual, index_isEqualEnhanced as isEqualEnhanced, index_isObject as isObject, index_isObjectArray as isObjectArray, index_isPlainObject as isPlainObject, index_mergeObject as mergeObject, index_reverseObj as reverseObj, index_safeDeepCopy as safeDeepCopy, index_setObjValue as setObjValue, index_setSort as setSort, index_simpleDeepCopy as simpleDeepCopy, index_structuredCloneCopy as structuredCloneCopy, index_unmergeObject as unmergeObject };
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export { index as i };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { attrValueSort } from './basic/object/attrValueSort.js';
|
|
2
2
|
import { deepCopy } from './basic/object/deepCopy.js';
|
|
3
|
+
import { deepCopys, fastDeepCopy, isPlainObject, safeDeepCopy, simpleDeepCopy, structuredCloneCopy } from './basic/object/deepCopys.js';
|
|
3
4
|
import { filterObject } from './basic/object/filterObject.js';
|
|
4
5
|
import { getSort } from './basic/object/getSort.js';
|
|
5
6
|
import { hasOwn } from './basic/object/hasOwn.js';
|
|
@@ -14,6 +15,8 @@ import { unmergeObject } from './basic/object/unmergeObject.js';
|
|
|
14
15
|
|
|
15
16
|
declare const index_attrValueSort: typeof attrValueSort;
|
|
16
17
|
declare const index_deepCopy: typeof deepCopy;
|
|
18
|
+
declare const index_deepCopys: typeof deepCopys;
|
|
19
|
+
declare const index_fastDeepCopy: typeof fastDeepCopy;
|
|
17
20
|
declare const index_filterObject: typeof filterObject;
|
|
18
21
|
declare const index_getObjValue: typeof getObjValue;
|
|
19
22
|
declare const index_getSort: typeof getSort;
|
|
@@ -22,13 +25,17 @@ declare const index_isEqual: typeof isEqual;
|
|
|
22
25
|
declare const index_isEqualEnhanced: typeof isEqualEnhanced;
|
|
23
26
|
declare const index_isObject: typeof isObject;
|
|
24
27
|
declare const index_isObjectArray: typeof isObjectArray;
|
|
28
|
+
declare const index_isPlainObject: typeof isPlainObject;
|
|
25
29
|
declare const index_mergeObject: typeof mergeObject;
|
|
26
30
|
declare const index_reverseObj: typeof reverseObj;
|
|
31
|
+
declare const index_safeDeepCopy: typeof safeDeepCopy;
|
|
27
32
|
declare const index_setObjValue: typeof setObjValue;
|
|
28
33
|
declare const index_setSort: typeof setSort;
|
|
34
|
+
declare const index_simpleDeepCopy: typeof simpleDeepCopy;
|
|
35
|
+
declare const index_structuredCloneCopy: typeof structuredCloneCopy;
|
|
29
36
|
declare const index_unmergeObject: typeof unmergeObject;
|
|
30
37
|
declare namespace index {
|
|
31
|
-
export { index_attrValueSort as attrValueSort, index_deepCopy as deepCopy, index_filterObject as filterObject, index_getObjValue as getObjValue, index_getSort as getSort, index_hasOwn as hasOwn, index_isEqual as isEqual, index_isEqualEnhanced as isEqualEnhanced, index_isObject as isObject, index_isObjectArray as isObjectArray, index_mergeObject as mergeObject, index_reverseObj as reverseObj, index_setObjValue as setObjValue, index_setSort as setSort, index_unmergeObject as unmergeObject };
|
|
38
|
+
export { index_attrValueSort as attrValueSort, index_deepCopy as deepCopy, index_deepCopys as deepCopys, index_fastDeepCopy as fastDeepCopy, index_filterObject as filterObject, index_getObjValue as getObjValue, index_getSort as getSort, index_hasOwn as hasOwn, index_isEqual as isEqual, index_isEqualEnhanced as isEqualEnhanced, index_isObject as isObject, index_isObjectArray as isObjectArray, index_isPlainObject as isPlainObject, index_mergeObject as mergeObject, index_reverseObj as reverseObj, index_safeDeepCopy as safeDeepCopy, index_setObjValue as setObjValue, index_setSort as setSort, index_simpleDeepCopy as simpleDeepCopy, index_structuredCloneCopy as structuredCloneCopy, index_unmergeObject as unmergeObject };
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
export { index as i };
|
package/dist/index.cjs
CHANGED
|
@@ -22,10 +22,10 @@ require('./chunk-HMAAC5QA.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkBG2YS767cjs = require('./chunk-BG2YS767.cjs');
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-KRBTSMT2.cjs');
|
|
26
|
+
require('./chunk-O6P3QI3B.cjs');
|
|
27
|
+
require('./chunk-XHR36FJK.cjs');
|
|
28
|
+
require('./chunk-WI55O3IV.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkAPRM3ELYcjs = require('./chunk-APRM3ELY.cjs');
|
|
@@ -33,12 +33,17 @@ require('./chunk-RYBJGHXK.cjs');
|
|
|
33
33
|
require('./chunk-YAD5PHVF.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
var _chunkBD6DK4QKcjs = require('./chunk-BD6DK4QK.cjs');
|
|
37
|
+
require('./chunk-HCEAYQHS.cjs');
|
|
38
|
+
require('./chunk-FP5ETUFZ.cjs');
|
|
39
|
+
|
|
40
|
+
|
|
36
41
|
var _chunkHUKQYAV6cjs = require('./chunk-HUKQYAV6.cjs');
|
|
37
42
|
require('./chunk-5VQ4EAJZ.cjs');
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
require('./chunk-
|
|
41
|
-
require('./chunk-
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var _chunkV6PYRA4Acjs = require('./chunk-V6PYRA4A.cjs');
|
|
46
|
+
require('./chunk-FGQXKLTH.cjs');
|
|
42
47
|
|
|
43
48
|
|
|
44
49
|
var _chunkFLGYKRQ6cjs = require('./chunk-FLGYKRQ6.cjs');
|
|
@@ -48,26 +53,21 @@ require('./chunk-EWXBN4VG.cjs');
|
|
|
48
53
|
var _chunkRYVXUCAScjs = require('./chunk-RYVXUCAS.cjs');
|
|
49
54
|
|
|
50
55
|
|
|
51
|
-
var
|
|
52
|
-
require('./chunk-
|
|
53
|
-
require('./chunk-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var _chunkJ2WRN55Jcjs = require('./chunk-J2WRN55J.cjs');
|
|
57
|
-
require('./chunk-T22I7TJQ.cjs');
|
|
56
|
+
var _chunkFL2HPQ66cjs = require('./chunk-FL2HPQ66.cjs');
|
|
57
|
+
require('./chunk-V2DXOH6B.cjs');
|
|
58
|
+
require('./chunk-3YUI42XN.cjs');
|
|
59
|
+
require('./chunk-2BY5RQHU.cjs');
|
|
58
60
|
require('./chunk-YGJOBIEO.cjs');
|
|
59
61
|
require('./chunk-ZZEFL2TE.cjs');
|
|
60
|
-
require('./chunk-2BY5RQHU.cjs');
|
|
61
|
-
require('./chunk-V2DXOH6B.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
65
|
-
require('./chunk-Z2EAQZ47.cjs');
|
|
64
|
+
var _chunkZUIHJQD6cjs = require('./chunk-ZUIHJQD6.cjs');
|
|
66
65
|
|
|
67
66
|
|
|
68
|
-
var
|
|
69
|
-
require('./chunk-
|
|
70
|
-
require('./chunk-
|
|
67
|
+
var _chunk7NEXCOZZcjs = require('./chunk-7NEXCOZZ.cjs');
|
|
68
|
+
require('./chunk-7TGGIID4.cjs');
|
|
69
|
+
require('./chunk-75UYCE4X.cjs');
|
|
70
|
+
require('./chunk-Z2EAQZ47.cjs');
|
|
71
71
|
require('./chunk-LEPZYF2N.cjs');
|
|
72
72
|
require('./chunk-E2MM4MEC.cjs');
|
|
73
73
|
require('./chunk-6TBH7RAC.cjs');
|
|
@@ -80,32 +80,33 @@ require('./chunk-CTLBHJGF.cjs');
|
|
|
80
80
|
require('./chunk-4X7AFGTV.cjs');
|
|
81
81
|
require('./chunk-LTVXRDTD.cjs');
|
|
82
82
|
require('./chunk-HJTIJGIF.cjs');
|
|
83
|
-
require('./chunk-
|
|
84
|
-
require('./chunk-
|
|
83
|
+
require('./chunk-2OR4FUOA.cjs');
|
|
84
|
+
require('./chunk-EOJVE3HL.cjs');
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
88
|
-
require('./chunk-
|
|
89
|
-
require('./chunk-ETMYYVQJ.cjs');
|
|
90
|
-
require('./chunk-XG44HG5N.cjs');
|
|
91
|
-
require('./chunk-J7S3KBHL.cjs');
|
|
92
|
-
require('./chunk-L7FSHU27.cjs');
|
|
93
|
-
require('./chunk-JHV27P2Q.cjs');
|
|
94
|
-
require('./chunk-QXK4IUBI.cjs');
|
|
95
|
-
require('./chunk-FQCXDJQ3.cjs');
|
|
96
|
-
require('./chunk-HWHYHL6J.cjs');
|
|
97
|
-
require('./chunk-XWCRGY54.cjs');
|
|
98
|
-
require('./chunk-UCDL7HLX.cjs');
|
|
99
|
-
require('./chunk-3VYRYSWK.cjs');
|
|
100
|
-
require('./chunk-NRJPCN4J.cjs');
|
|
101
|
-
require('./chunk-E4WBX6J5.cjs');
|
|
87
|
+
var _chunkG7BRLTGLcjs = require('./chunk-G7BRLTGL.cjs');
|
|
88
|
+
require('./chunk-IODGCXUS.cjs');
|
|
102
89
|
require('./chunk-SLXKYTEU.cjs');
|
|
103
90
|
require('./chunk-IIKQHLKT.cjs');
|
|
91
|
+
require('./chunk-3VYRYSWK.cjs');
|
|
92
|
+
require('./chunk-7AIT4XSD.cjs');
|
|
93
|
+
require('./chunk-GOUC2DFA.cjs');
|
|
94
|
+
require('./chunk-NRJPCN4J.cjs');
|
|
104
95
|
require('./chunk-UFYLVZNU.cjs');
|
|
105
96
|
require('./chunk-CDQONLGU.cjs');
|
|
97
|
+
require('./chunk-SJ74DU4B.cjs');
|
|
106
98
|
require('./chunk-D3SX7OUV.cjs');
|
|
107
|
-
require('./chunk-
|
|
108
|
-
require('./chunk-
|
|
99
|
+
require('./chunk-7RFWR2DR.cjs');
|
|
100
|
+
require('./chunk-JHV27P2Q.cjs');
|
|
101
|
+
require('./chunk-L6JTKQ65.cjs');
|
|
102
|
+
require('./chunk-E4WBX6J5.cjs');
|
|
103
|
+
require('./chunk-XG44HG5N.cjs');
|
|
104
|
+
require('./chunk-QXK4IUBI.cjs');
|
|
105
|
+
require('./chunk-FQCXDJQ3.cjs');
|
|
106
|
+
require('./chunk-HWHYHL6J.cjs');
|
|
107
|
+
require('./chunk-J7S3KBHL.cjs');
|
|
108
|
+
require('./chunk-L7FSHU27.cjs');
|
|
109
|
+
require('./chunk-XWCRGY54.cjs');
|
|
109
110
|
require('./chunk-65O7KWP4.cjs');
|
|
110
111
|
require('./chunk-MHHMXDHD.cjs');
|
|
111
112
|
require('./chunk-SOAKYJIG.cjs');
|
|
@@ -118,9 +119,9 @@ require('./chunk-ILJLXJ5O.cjs');
|
|
|
118
119
|
require('./chunk-OJBZ7UUC.cjs');
|
|
119
120
|
require('./chunk-JR6ZN6QD.cjs');
|
|
120
121
|
require('./chunk-PW7RP73J.cjs');
|
|
121
|
-
require('./chunk-XW3XIK3D.cjs');
|
|
122
122
|
require('./chunk-UEVMS6QD.cjs');
|
|
123
123
|
require('./chunk-OQL4GIEJ.cjs');
|
|
124
|
+
require('./chunk-XW3XIK3D.cjs');
|
|
124
125
|
require('./chunk-WWAPPA4E.cjs');
|
|
125
126
|
require('./chunk-A5LHXE5X.cjs');
|
|
126
127
|
require('./chunk-MIC3W2VY.cjs');
|
|
@@ -147,4 +148,4 @@ require('./chunk-75ZPJI57.cjs');
|
|
|
147
148
|
|
|
148
149
|
|
|
149
150
|
|
|
150
|
-
exports.basic =
|
|
151
|
+
exports.basic = _chunkG7BRLTGLcjs.basic_exports; exports.css = _chunkXDTLZL44cjs.css_exports; exports.date = _chunk7NEXCOZZcjs.date_exports; exports.dom = _chunkZUIHJQD6cjs.dom_exports; exports.html = _chunkFLGYKRQ6cjs.html_exports; exports.iss = _chunkRYVXUCAScjs.iss_exports; exports.judge = _chunkFL2HPQ66cjs.judge_exports; exports.load = _chunkBD6DK4QKcjs.load_exports; exports.log = _chunkHUKQYAV6cjs.log_exports; exports.name = _chunkBG2YS767cjs.name_exports; exports.node = _chunkV6PYRA4Acjs.node_exports; exports.tree = _chunkAPRM3ELYcjs.tree_exports; exports.urls = _chunk7GCUYESUcjs.urls_exports; exports.window = _chunk72GMBSE6cjs.window_exports;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as basic } from './index-
|
|
1
|
+
export { i as basic } from './index-KftqgSWD.cjs';
|
|
2
2
|
export { i as css } from './index-C0q7yBX5.cjs';
|
|
3
3
|
export { i as date } from './index-x-yhJQ-1.cjs';
|
|
4
4
|
export { i as dom } from './index-BiHaQlE9.cjs';
|
|
@@ -21,9 +21,10 @@ import './basic/array/isArray.cjs';
|
|
|
21
21
|
import './basic/array/replaceAfter.cjs';
|
|
22
22
|
import './basic/array/sortObj.cjs';
|
|
23
23
|
import './basic/array/toggleArray.cjs';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-Cz8fWd5l.cjs';
|
|
25
25
|
import './basic/object/attrValueSort.cjs';
|
|
26
26
|
import './basic/object/deepCopy.cjs';
|
|
27
|
+
import './basic/object/deepCopys.cjs';
|
|
27
28
|
import './basic/object/filterObject.cjs';
|
|
28
29
|
import './basic/object/getSort.cjs';
|
|
29
30
|
import './basic/object/hasOwn.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as basic } from './index-
|
|
1
|
+
export { i as basic } from './index-J-xiEtN9.js';
|
|
2
2
|
export { i as css } from './index-Bq6WKjlK.js';
|
|
3
3
|
export { i as date } from './index-BFahmWSa.js';
|
|
4
4
|
export { i as dom } from './index-BqhKBGyX.js';
|
|
@@ -21,9 +21,10 @@ import './basic/array/isArray.js';
|
|
|
21
21
|
import './basic/array/replaceAfter.js';
|
|
22
22
|
import './basic/array/sortObj.js';
|
|
23
23
|
import './basic/array/toggleArray.js';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-oW2flHUo.js';
|
|
25
25
|
import './basic/object/attrValueSort.js';
|
|
26
26
|
import './basic/object/deepCopy.js';
|
|
27
|
+
import './basic/object/deepCopys.js';
|
|
27
28
|
import './basic/object/filterObject.js';
|
|
28
29
|
import './basic/object/getSort.js';
|
|
29
30
|
import './basic/object/hasOwn.js';
|