@fangzhongya/utils 0.0.11 → 0.0.15
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/array/index.cjs +10 -6
- package/dist/basic/array/index.d.cts +1 -0
- package/dist/basic/array/index.d.ts +1 -0
- package/dist/basic/array/index.js +10 -6
- package/dist/basic/array/sortObj.cjs +7 -0
- package/dist/basic/array/sortObj.d.cts +10 -0
- package/dist/basic/array/sortObj.d.ts +10 -0
- package/dist/basic/array/sortObj.js +7 -0
- package/dist/basic/index.cjs +18 -15
- package/dist/basic/index.d.cts +6 -3
- package/dist/basic/index.d.ts +6 -3
- package/dist/basic/index.js +17 -14
- package/dist/basic/object/index.cjs +14 -8
- package/dist/basic/object/index.d.cts +1 -0
- package/dist/basic/object/index.d.ts +1 -0
- package/dist/basic/object/index.js +13 -7
- package/dist/basic/object/objValue.cjs +9 -0
- package/dist/basic/object/objValue.d.cts +7 -0
- package/dist/basic/object/objValue.d.ts +7 -0
- package/dist/basic/object/objValue.js +9 -0
- package/dist/basic/string/index.cjs +15 -4
- package/dist/basic/string/index.d.cts +1 -0
- package/dist/basic/string/index.d.ts +1 -0
- package/dist/basic/string/index.js +14 -3
- package/dist/basic/string/toFunction.cjs +2 -2
- package/dist/basic/string/toFunction.d.cts +15 -7
- package/dist/basic/string/toFunction.d.ts +15 -7
- package/dist/basic/string/toFunction.js +1 -1
- package/dist/basic/string/toJson.cjs +3 -3
- package/dist/basic/string/toJson.d.cts +2 -5
- package/dist/basic/string/toJson.d.ts +2 -5
- package/dist/basic/string/toJson.js +2 -2
- package/dist/basic/string/toJsons.cjs +15 -0
- package/dist/basic/string/toJsons.d.cts +60 -0
- package/dist/basic/string/toJsons.d.ts +60 -0
- package/dist/basic/string/toJsons.js +15 -0
- package/dist/{chunk-45M6CPWK.cjs → chunk-4VLLDFBC.cjs} +16 -6
- package/dist/chunk-5HC662VK.js +432 -0
- package/dist/{chunk-VQKOHGV5.cjs → chunk-5WOFUMZG.cjs} +8 -4
- package/dist/chunk-754Z5VW6.js +29 -0
- package/dist/chunk-7O4MJOHM.js +142 -0
- package/dist/chunk-E4WBX6J5.cjs +29 -0
- package/dist/chunk-ETMYYVQJ.cjs +432 -0
- package/dist/{chunk-QJVB3JIZ.js → chunk-HWR2FRME.js} +1 -1
- package/dist/{chunk-JJLYV6GY.js → chunk-IEQHKLEL.js} +12 -6
- package/dist/chunk-JHV27P2Q.cjs +54 -0
- package/dist/{chunk-R5TH6GQE.js → chunk-KE6Z4OCB.js} +5 -5
- package/dist/{chunk-GIJMEVTJ.js → chunk-N46TJUMT.js} +12 -2
- package/dist/chunk-O34QAOO7.js +16 -0
- package/dist/{chunk-YHLI3SF7.js → chunk-OVHYLUAS.js} +8 -0
- package/dist/chunk-PLNZCEDI.js +442 -0
- package/dist/{chunk-V5HVA7TW.cjs → chunk-PV2N6PF2.cjs} +8 -0
- package/dist/chunk-QXK4IUBI.cjs +142 -0
- package/dist/chunk-RYBJGHXK.cjs +153 -0
- package/dist/chunk-U3PZBQ6G.js +54 -0
- package/dist/{chunk-SLRWY5FH.cjs → chunk-UGT4QBTM.cjs} +12 -6
- package/dist/chunk-UHKL2RG3.cjs +80 -0
- package/dist/{chunk-2KT66KQH.js → chunk-UN6NW2BW.js} +9 -5
- package/dist/chunk-UV6KZOFD.cjs +24 -0
- package/dist/{chunk-FCCQIHFD.js → chunk-UZ3LZBJ5.js} +1 -1
- package/dist/chunk-V2DXOH6B.cjs +442 -0
- package/dist/chunk-XQOH3NGZ.js +153 -0
- package/dist/chunk-XW3XIK3D.cjs +16 -0
- package/dist/chunk-YKNGDK4I.js +80 -0
- package/dist/index-6KUSPX5S.d.cts +9 -0
- package/dist/index-B7gdHwF9.d.cts +40 -0
- package/dist/{index-EY4Ag8_f.d.cts → index-BU0xla6v.d.cts} +4 -1
- package/dist/{index-DBBlm0PZ.d.cts → index-BzNlzEhU.d.cts} +7 -1
- package/dist/{index-D92-6As_.d.ts → index-C29DFVeC.d.ts} +3 -1
- package/dist/index-CPO1AFVg.d.ts +14 -0
- package/dist/index-C_7JHW0u.d.ts +9 -0
- package/dist/{index-CsP95PJy.d.ts → index-DOq59RNr.d.ts} +4 -1
- package/dist/index-DPrdy8Ms.d.ts +40 -0
- package/dist/index-cuR7l2XV.d.cts +14 -0
- package/dist/{index-BrxHOuw0.d.cts → index-qUiGxoy_.d.cts} +3 -1
- package/dist/{index-DjtNMmhM.d.ts → index-rVnsK7Ft.d.ts} +7 -1
- package/dist/index.cjs +33 -28
- package/dist/index.d.cts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +35 -30
- package/dist/judge/index.cjs +57 -5
- package/dist/judge/index.d.cts +1 -0
- package/dist/judge/index.d.ts +1 -0
- package/dist/judge/index.js +57 -5
- package/dist/judge/judge.cjs +55 -0
- package/dist/judge/judge.d.cts +155 -0
- package/dist/judge/judge.d.ts +155 -0
- package/dist/judge/judge.js +55 -0
- package/dist/judge/matchs.cjs +3 -3
- package/dist/judge/matchs.js +2 -2
- package/dist/name/index.cjs +3 -3
- package/dist/name/index.js +4 -4
- package/dist/node/getPort.js +1 -1
- package/dist/node/index.js +2 -2
- package/dist/tree/index.cjs +11 -2
- package/dist/tree/index.d.cts +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +10 -1
- package/dist/tree/splitGroup.cjs +12 -0
- package/dist/tree/splitGroup.d.cts +15 -0
- package/dist/tree/splitGroup.d.ts +15 -0
- package/dist/tree/splitGroup.js +12 -0
- package/dist/urls/index.cjs +10 -10
- package/dist/urls/index.js +13 -13
- package/package.json +31 -6
- package/dist/chunk-6YI3CDEW.js +0 -35
- package/dist/chunk-AFKJQ4QP.js +0 -35
- package/dist/chunk-JYPJ5QJ5.cjs +0 -35
- package/dist/chunk-T7XQBASK.js +0 -28
- package/dist/chunk-U5TCBGC3.cjs +0 -28
- package/dist/chunk-WMZ6P3AK.cjs +0 -24
- package/dist/chunk-ZJIRJ4YJ.cjs +0 -35
- package/dist/index-BWAB-b69.d.ts +0 -10
- package/dist/index-CIOxFVHu.d.ts +0 -9
- package/dist/index-CVNtXK0N.d.ts +0 -14
- package/dist/index-D-5HNg2W.d.cts +0 -14
- package/dist/index-DTk8hXm8.d.cts +0 -10
- package/dist/index-DfmnOk56.d.cts +0 -9
- package/dist/{chunk-LZ7JIJ4I.cjs → chunk-222T3EXB.cjs} +9 -9
- package/dist/{chunk-IVDRKJ33.js → chunk-BFN33JM5.js} +3 -3
- package/dist/{chunk-ZXWKQRGH.cjs → chunk-BG2YS767.cjs} +2 -2
- package/dist/{chunk-X4WTO4NR.js → chunk-JM55S2OL.js} +12 -12
- package/dist/{chunk-NGQKVTCR.cjs → chunk-T22I7TJQ.cjs} +3 -3
- package/dist/{chunk-FRGDQOX4.js → chunk-T2QKEABG.js} +3 -3
package/dist/judge/matchs.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT22I7TJQcjs = require('../chunk-T22I7TJQ.cjs');
|
|
4
|
+
require('../chunk-YGJOBIEO.cjs');
|
|
4
5
|
require('../chunk-ZZEFL2TE.cjs');
|
|
5
6
|
require('../chunk-2BY5RQHU.cjs');
|
|
6
|
-
require('../chunk-YGJOBIEO.cjs');
|
|
7
7
|
require('../chunk-75ZPJI57.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.matchs =
|
|
10
|
+
exports.matchs = _chunkT22I7TJQcjs.matchs;
|
package/dist/judge/matchs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
matchs
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-T2QKEABG.js";
|
|
4
|
+
import "../chunk-YNOFNHEK.js";
|
|
4
5
|
import "../chunk-S6JRKYPY.js";
|
|
5
6
|
import "../chunk-IRGCP7KH.js";
|
|
6
|
-
import "../chunk-YNOFNHEK.js";
|
|
7
7
|
import "../chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
matchs
|
package/dist/name/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BG2YS767.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkKRBTSMT2cjs = require('../chunk-KRBTSMT2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkO6P3QI3Bcjs = require('../chunk-O6P3QI3B.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkXHR36FJKcjs = require('../chunk-XHR36FJK.cjs');
|
package/dist/name/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
getNames
|
|
4
|
-
} from "../chunk-EJWFLQF3.js";
|
|
1
|
+
import "../chunk-BFN33JM5.js";
|
|
5
2
|
import {
|
|
6
3
|
getComponentNames
|
|
7
4
|
} from "../chunk-VRRDYCUH.js";
|
|
5
|
+
import {
|
|
6
|
+
getNames
|
|
7
|
+
} from "../chunk-EJWFLQF3.js";
|
|
8
8
|
import {
|
|
9
9
|
lineToSmallHump
|
|
10
10
|
} from "../chunk-AM67P3W7.js";
|
package/dist/node/getPort.js
CHANGED
package/dist/node/index.js
CHANGED
package/dist/tree/index.cjs
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PV2N6PF2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkYAD5PHVFcjs = require('../chunk-YAD5PHVF.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkRYBJGHXKcjs = require('../chunk-RYBJGHXK.cjs');
|
|
12
|
+
require('../chunk-XW3XIK3D.cjs');
|
|
7
13
|
require('../chunk-75ZPJI57.cjs');
|
|
8
14
|
|
|
9
15
|
|
|
10
16
|
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.arrayToTree = _chunkYAD5PHVFcjs.arrayToTree; exports.getTreeObj = _chunkYAD5PHVFcjs.getTreeObj; exports.splitGroup = _chunkRYBJGHXKcjs.splitGroup; exports.splitGroupDitto = _chunkRYBJGHXKcjs.splitGroupDitto; exports.splitGroupExist = _chunkRYBJGHXKcjs.splitGroupExist; exports.treeToArray = _chunkYAD5PHVFcjs.treeToArray;
|
package/dist/tree/index.d.cts
CHANGED
package/dist/tree/index.d.ts
CHANGED
package/dist/tree/index.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-OVHYLUAS.js";
|
|
2
2
|
import {
|
|
3
3
|
arrayToTree,
|
|
4
4
|
getTreeObj,
|
|
5
5
|
treeToArray
|
|
6
6
|
} from "../chunk-GVVJIN46.js";
|
|
7
|
+
import {
|
|
8
|
+
splitGroup,
|
|
9
|
+
splitGroupDitto,
|
|
10
|
+
splitGroupExist
|
|
11
|
+
} from "../chunk-XQOH3NGZ.js";
|
|
12
|
+
import "../chunk-O34QAOO7.js";
|
|
7
13
|
import "../chunk-MLKGABMK.js";
|
|
8
14
|
export {
|
|
9
15
|
arrayToTree,
|
|
10
16
|
getTreeObj,
|
|
17
|
+
splitGroup,
|
|
18
|
+
splitGroupDitto,
|
|
19
|
+
splitGroupExist,
|
|
11
20
|
treeToArray
|
|
12
21
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkRYBJGHXKcjs = require('../chunk-RYBJGHXK.cjs');
|
|
6
|
+
require('../chunk-XW3XIK3D.cjs');
|
|
7
|
+
require('../chunk-75ZPJI57.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.splitGroup = _chunkRYBJGHXKcjs.splitGroup; exports.splitGroupDitto = _chunkRYBJGHXKcjs.splitGroupDitto; exports.splitGroupExist = _chunkRYBJGHXKcjs.splitGroupExist;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字符串数组 排序 - 分割 分组
|
|
3
|
+
*/
|
|
4
|
+
type ObjVal = {
|
|
5
|
+
value: string;
|
|
6
|
+
father?: string;
|
|
7
|
+
exist?: string;
|
|
8
|
+
children?: ObjVal[];
|
|
9
|
+
is?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare function splitGroupExist(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
|
|
12
|
+
declare function splitGroupDitto(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
|
|
13
|
+
declare function splitGroup(arr: string[], way?: string, isMergeOrder?: boolean, type?: number | string | boolean): ObjVal[];
|
|
14
|
+
|
|
15
|
+
export { splitGroup, splitGroupDitto, splitGroupExist };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字符串数组 排序 - 分割 分组
|
|
3
|
+
*/
|
|
4
|
+
type ObjVal = {
|
|
5
|
+
value: string;
|
|
6
|
+
father?: string;
|
|
7
|
+
exist?: string;
|
|
8
|
+
children?: ObjVal[];
|
|
9
|
+
is?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare function splitGroupExist(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
|
|
12
|
+
declare function splitGroupDitto(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
|
|
13
|
+
declare function splitGroup(arr: string[], way?: string, isMergeOrder?: boolean, type?: number | string | boolean): ObjVal[];
|
|
14
|
+
|
|
15
|
+
export { splitGroup, splitGroupDitto, splitGroupExist };
|
package/dist/urls/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-222T3EXB.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk27WA7EI2cjs = require('../chunk-27WA7EI2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIRKWYW5Bcjs = require('../chunk-IRKWYW5B.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk43VE3KXLcjs = require('../chunk-43VE3KXL.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk77SI5VSScjs = require('../chunk-77SI5VSS.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRFUD3TOQcjs = require('../chunk-RFUD3TOQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk6RIGEV6Gcjs = require('../chunk-6RIGEV6G.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk6A6EAFGLcjs = require('../chunk-6A6EAFGL.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCP2ZSRMUcjs = require('../chunk-CP2ZSRMU.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk3ERQHPTDcjs = require('../chunk-3ERQHPTD.cjs');
|
|
29
29
|
require('../chunk-3HXQ7TGV.cjs');
|
|
30
30
|
require('../chunk-JR6ZN6QD.cjs');
|
|
31
31
|
require('../chunk-PW7RP73J.cjs');
|
package/dist/urls/index.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
getReplaceUrl
|
|
4
|
-
} from "../chunk-ZRZ5HATA.js";
|
|
5
|
-
import {
|
|
6
|
-
getSuffix
|
|
7
|
-
} from "../chunk-UOADEBDH.js";
|
|
8
|
-
import {
|
|
9
|
-
getUrlCatalogue
|
|
10
|
-
} from "../chunk-YWL2IWBT.js";
|
|
11
|
-
import {
|
|
12
|
-
getUrlCatalogueLast
|
|
13
|
-
} from "../chunk-BDJORZRC.js";
|
|
1
|
+
import "../chunk-JM55S2OL.js";
|
|
14
2
|
import {
|
|
15
3
|
getImportUrlSuffix
|
|
16
4
|
} from "../chunk-XBZX5YZW.js";
|
|
@@ -26,6 +14,18 @@ import {
|
|
|
26
14
|
import {
|
|
27
15
|
getReplaceImportUrl
|
|
28
16
|
} from "../chunk-ZJHRAMCL.js";
|
|
17
|
+
import {
|
|
18
|
+
getReplaceUrl
|
|
19
|
+
} from "../chunk-ZRZ5HATA.js";
|
|
20
|
+
import {
|
|
21
|
+
getSuffix
|
|
22
|
+
} from "../chunk-UOADEBDH.js";
|
|
23
|
+
import {
|
|
24
|
+
getUrlCatalogue
|
|
25
|
+
} from "../chunk-YWL2IWBT.js";
|
|
26
|
+
import {
|
|
27
|
+
getUrlCatalogueLast
|
|
28
|
+
} from "../chunk-BDJORZRC.js";
|
|
29
29
|
import "../chunk-SNABGVNO.js";
|
|
30
30
|
import "../chunk-DMZP4RPN.js";
|
|
31
31
|
import "../chunk-A276ZDLP.js";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fangzhongya/utils",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.15",
|
|
6
6
|
"description ": "个人工具库",
|
|
7
7
|
"author": "fangzhongya ",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@fangzhongya/create": "0.2.
|
|
22
|
-
"@types/node": "^
|
|
21
|
+
"@fangzhongya/create": "0.2.23",
|
|
22
|
+
"@types/node": "^24.0.15",
|
|
23
23
|
"ts-node": "^10.9.2",
|
|
24
|
-
"tsup": "^8.
|
|
24
|
+
"tsup": "^8.5.0",
|
|
25
25
|
"typescript": "^5.8.3",
|
|
26
|
-
"vite": "^
|
|
27
|
-
"vitest": "^3.
|
|
26
|
+
"vite": "^7.0.5",
|
|
27
|
+
"vitest": "^3.2.4"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist"
|
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
"require": "./dist/basic/array/replaceAfter.cjs",
|
|
77
77
|
"import": "./dist/basic/array/replaceAfter.js"
|
|
78
78
|
},
|
|
79
|
+
"./basic/array/sortObj": {
|
|
80
|
+
"types": "./dist/basic/array/sortObj.d.ts",
|
|
81
|
+
"require": "./dist/basic/array/sortObj.cjs",
|
|
82
|
+
"import": "./dist/basic/array/sortObj.js"
|
|
83
|
+
},
|
|
79
84
|
"./basic/array/toggleArray": {
|
|
80
85
|
"types": "./dist/basic/array/toggleArray.d.ts",
|
|
81
86
|
"require": "./dist/basic/array/toggleArray.cjs",
|
|
@@ -126,6 +131,11 @@
|
|
|
126
131
|
"require": "./dist/basic/object/mergeObject.cjs",
|
|
127
132
|
"import": "./dist/basic/object/mergeObject.js"
|
|
128
133
|
},
|
|
134
|
+
"./basic/object/objValue": {
|
|
135
|
+
"types": "./dist/basic/object/objValue.d.ts",
|
|
136
|
+
"require": "./dist/basic/object/objValue.cjs",
|
|
137
|
+
"import": "./dist/basic/object/objValue.js"
|
|
138
|
+
},
|
|
129
139
|
"./basic/object/reverseObj": {
|
|
130
140
|
"types": "./dist/basic/object/reverseObj.d.ts",
|
|
131
141
|
"require": "./dist/basic/object/reverseObj.cjs",
|
|
@@ -191,6 +201,11 @@
|
|
|
191
201
|
"require": "./dist/basic/string/toJson.cjs",
|
|
192
202
|
"import": "./dist/basic/string/toJson.js"
|
|
193
203
|
},
|
|
204
|
+
"./basic/string/toJsons": {
|
|
205
|
+
"types": "./dist/basic/string/toJsons.d.ts",
|
|
206
|
+
"require": "./dist/basic/string/toJsons.cjs",
|
|
207
|
+
"import": "./dist/basic/string/toJsons.js"
|
|
208
|
+
},
|
|
194
209
|
"./css": {
|
|
195
210
|
"types": "./dist/css/index.d.ts",
|
|
196
211
|
"require": "./dist/css/index.cjs",
|
|
@@ -291,6 +306,11 @@
|
|
|
291
306
|
"require": "./dist/judge/index.cjs",
|
|
292
307
|
"import": "./dist/judge/index.js"
|
|
293
308
|
},
|
|
309
|
+
"./judge/judge": {
|
|
310
|
+
"types": "./dist/judge/judge.d.ts",
|
|
311
|
+
"require": "./dist/judge/judge.cjs",
|
|
312
|
+
"import": "./dist/judge/judge.js"
|
|
313
|
+
},
|
|
294
314
|
"./judge/matchs": {
|
|
295
315
|
"types": "./dist/judge/matchs.d.ts",
|
|
296
316
|
"require": "./dist/judge/matchs.cjs",
|
|
@@ -386,6 +406,11 @@
|
|
|
386
406
|
"require": "./dist/tree/getTreeObj.cjs",
|
|
387
407
|
"import": "./dist/tree/getTreeObj.js"
|
|
388
408
|
},
|
|
409
|
+
"./tree/splitGroup": {
|
|
410
|
+
"types": "./dist/tree/splitGroup.d.ts",
|
|
411
|
+
"require": "./dist/tree/splitGroup.cjs",
|
|
412
|
+
"import": "./dist/tree/splitGroup.js"
|
|
413
|
+
},
|
|
389
414
|
"./urls": {
|
|
390
415
|
"types": "./dist/urls/index.d.ts",
|
|
391
416
|
"require": "./dist/urls/index.cjs",
|
package/dist/chunk-6YI3CDEW.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// packages/basic/string/toFunction.ts
|
|
2
|
-
function toFunction(str) {
|
|
3
|
-
const obj = getFunctionFormat(str);
|
|
4
|
-
if (obj && obj.body) {
|
|
5
|
-
const param = (obj.param || "").split(",").map((o) => o.trim()).filter((v) => v);
|
|
6
|
-
return new Function(...param, obj.body);
|
|
7
|
-
} else {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function getFunctionFormat(v) {
|
|
12
|
-
if (v) {
|
|
13
|
-
let st = v.toString();
|
|
14
|
-
st = st.trim();
|
|
15
|
-
let name = "([a-z|A-Z|_|$][a-z|A-Z|_|$|0-9]*)?";
|
|
16
|
-
let fun = "((function)?\\s*" + name + "\\s*)?";
|
|
17
|
-
let param = "(\\(([^\\(|\\)]*)\\)\\s*)?";
|
|
18
|
-
let body = "[\\s|\\n|\\r]*\\{((.|\n|\r)+?)\\}[\\s|\\n|\\r]*";
|
|
19
|
-
let reg = new RegExp("^" + fun + param + body + "$");
|
|
20
|
-
let vts = reg.exec(st);
|
|
21
|
-
if (vts && vts.length > 0) {
|
|
22
|
-
return {
|
|
23
|
-
name: vts[3],
|
|
24
|
-
param: vts[5],
|
|
25
|
-
body: vts[6]
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
toFunction,
|
|
34
|
-
getFunctionFormat
|
|
35
|
-
};
|
package/dist/chunk-AFKJQ4QP.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
toFunction
|
|
3
|
-
} from "./chunk-6YI3CDEW.js";
|
|
4
|
-
|
|
5
|
-
// packages/basic/string/toJson.ts
|
|
6
|
-
function toJSONStringify(obj, jb) {
|
|
7
|
-
return JSON.stringify(
|
|
8
|
-
obj,
|
|
9
|
-
function(_k, v) {
|
|
10
|
-
if (typeof v === "function") {
|
|
11
|
-
return "+Fun|" + v.toString().trim();
|
|
12
|
-
} else {
|
|
13
|
-
return v;
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
jb
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
function toJSONParse(str) {
|
|
20
|
-
return JSON.parse(str, function(_k, v) {
|
|
21
|
-
if (typeof v === "string") {
|
|
22
|
-
if (/^\+Fun\|(.|\n|\r)+?\}$/g.test(v)) {
|
|
23
|
-
return toFunction(v.replace(/^\+Fun\|/, "")) || v;
|
|
24
|
-
} else {
|
|
25
|
-
return v;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return v;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
toJSONStringify,
|
|
34
|
-
toJSONParse
|
|
35
|
-
};
|
package/dist/chunk-JYPJ5QJ5.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkZJIRJ4YJcjs = require('./chunk-ZJIRJ4YJ.cjs');
|
|
4
|
-
|
|
5
|
-
// packages/basic/string/toJson.ts
|
|
6
|
-
function toJSONStringify(obj, jb) {
|
|
7
|
-
return JSON.stringify(
|
|
8
|
-
obj,
|
|
9
|
-
function(_k, v) {
|
|
10
|
-
if (typeof v === "function") {
|
|
11
|
-
return "+Fun|" + v.toString().trim();
|
|
12
|
-
} else {
|
|
13
|
-
return v;
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
jb
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
function toJSONParse(str) {
|
|
20
|
-
return JSON.parse(str, function(_k, v) {
|
|
21
|
-
if (typeof v === "string") {
|
|
22
|
-
if (/^\+Fun\|(.|\n|\r)+?\}$/g.test(v)) {
|
|
23
|
-
return _chunkZJIRJ4YJcjs.toFunction.call(void 0, v.replace(/^\+Fun\|/, "")) || v;
|
|
24
|
-
} else {
|
|
25
|
-
return v;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return v;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
exports.toJSONStringify = toJSONStringify; exports.toJSONParse = toJSONParse;
|
package/dist/chunk-T7XQBASK.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
matchs
|
|
3
|
-
} from "./chunk-FRGDQOX4.js";
|
|
4
|
-
import {
|
|
5
|
-
matchsStart
|
|
6
|
-
} from "./chunk-S6JRKYPY.js";
|
|
7
|
-
import {
|
|
8
|
-
matchsWhole
|
|
9
|
-
} from "./chunk-IRGCP7KH.js";
|
|
10
|
-
import {
|
|
11
|
-
matchsEnd
|
|
12
|
-
} from "./chunk-YNOFNHEK.js";
|
|
13
|
-
import {
|
|
14
|
-
__export
|
|
15
|
-
} from "./chunk-MLKGABMK.js";
|
|
16
|
-
|
|
17
|
-
// packages/judge/index.ts
|
|
18
|
-
var judge_exports = {};
|
|
19
|
-
__export(judge_exports, {
|
|
20
|
-
matchs: () => matchs,
|
|
21
|
-
matchsEnd: () => matchsEnd,
|
|
22
|
-
matchsStart: () => matchsStart,
|
|
23
|
-
matchsWhole: () => matchsWhole
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
judge_exports
|
|
28
|
-
};
|
package/dist/chunk-U5TCBGC3.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkNGQKVTCRcjs = require('./chunk-NGQKVTCR.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
16
|
-
|
|
17
|
-
// packages/judge/index.ts
|
|
18
|
-
var judge_exports = {};
|
|
19
|
-
_chunk75ZPJI57cjs.__export.call(void 0, judge_exports, {
|
|
20
|
-
matchs: () => _chunkNGQKVTCRcjs.matchs,
|
|
21
|
-
matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
|
|
22
|
-
matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
|
|
23
|
-
matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
exports.judge_exports = judge_exports;
|
package/dist/chunk-WMZ6P3AK.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkSLRWY5FHcjs = require('./chunk-SLRWY5FH.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk45M6CPWKcjs = require('./chunk-45M6CPWK.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkVQKOHGV5cjs = require('./chunk-VQKOHGV5.cjs');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
13
|
-
|
|
14
|
-
// packages/basic/index.ts
|
|
15
|
-
var basic_exports = {};
|
|
16
|
-
_chunk75ZPJI57cjs.__export.call(void 0, basic_exports, {
|
|
17
|
-
array: () => _chunkVQKOHGV5cjs.array_exports,
|
|
18
|
-
object: () => _chunkSLRWY5FHcjs.object_exports,
|
|
19
|
-
string: () => _chunk45M6CPWKcjs.string_exports
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.basic_exports = basic_exports;
|
package/dist/chunk-ZJIRJ4YJ.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/toFunction.ts
|
|
2
|
-
function toFunction(str) {
|
|
3
|
-
const obj = getFunctionFormat(str);
|
|
4
|
-
if (obj && obj.body) {
|
|
5
|
-
const param = (obj.param || "").split(",").map((o) => o.trim()).filter((v) => v);
|
|
6
|
-
return new Function(...param, obj.body);
|
|
7
|
-
} else {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function getFunctionFormat(v) {
|
|
12
|
-
if (v) {
|
|
13
|
-
let st = v.toString();
|
|
14
|
-
st = st.trim();
|
|
15
|
-
let name = "([a-z|A-Z|_|$][a-z|A-Z|_|$|0-9]*)?";
|
|
16
|
-
let fun = "((function)?\\s*" + name + "\\s*)?";
|
|
17
|
-
let param = "(\\(([^\\(|\\)]*)\\)\\s*)?";
|
|
18
|
-
let body = "[\\s|\\n|\\r]*\\{((.|\n|\r)+?)\\}[\\s|\\n|\\r]*";
|
|
19
|
-
let reg = new RegExp("^" + fun + param + body + "$");
|
|
20
|
-
let vts = reg.exec(st);
|
|
21
|
-
if (vts && vts.length > 0) {
|
|
22
|
-
return {
|
|
23
|
-
name: vts[3],
|
|
24
|
-
param: vts[5],
|
|
25
|
-
body: vts[6]
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
exports.toFunction = toFunction; exports.getFunctionFormat = getFunctionFormat;
|
package/dist/index-BWAB-b69.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { arrayToTree, getTreeObj, treeToArray } from './tree/getTreeObj.js';
|
|
2
|
-
|
|
3
|
-
declare const index_arrayToTree: typeof arrayToTree;
|
|
4
|
-
declare const index_getTreeObj: typeof getTreeObj;
|
|
5
|
-
declare const index_treeToArray: typeof treeToArray;
|
|
6
|
-
declare namespace index {
|
|
7
|
-
export { index_arrayToTree as arrayToTree, index_getTreeObj as getTreeObj, index_treeToArray as treeToArray };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { index as i };
|
package/dist/index-CIOxFVHu.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { i as index$1 } from './index-D92-6As_.js';
|
|
2
|
-
import { i as index$2 } from './index-CsP95PJy.js';
|
|
3
|
-
import { i as index$3 } from './index-DjtNMmhM.js';
|
|
4
|
-
|
|
5
|
-
declare namespace index {
|
|
6
|
-
export { index$1 as array, index$2 as object, index$3 as string };
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { index as i };
|
package/dist/index-CVNtXK0N.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { matchs } from './judge/matchs.js';
|
|
2
|
-
import { matchsEnd } from './judge/matchsEnd.js';
|
|
3
|
-
import { matchsStart } from './judge/matchsStart.js';
|
|
4
|
-
import { matchsWhole } from './judge/matchsWhole.js';
|
|
5
|
-
|
|
6
|
-
declare const index_matchs: typeof matchs;
|
|
7
|
-
declare const index_matchsEnd: typeof matchsEnd;
|
|
8
|
-
declare const index_matchsStart: typeof matchsStart;
|
|
9
|
-
declare const index_matchsWhole: typeof matchsWhole;
|
|
10
|
-
declare namespace index {
|
|
11
|
-
export { index_matchs as matchs, index_matchsEnd as matchsEnd, index_matchsStart as matchsStart, index_matchsWhole as matchsWhole };
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { index as i };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { matchs } from './judge/matchs.cjs';
|
|
2
|
-
import { matchsEnd } from './judge/matchsEnd.cjs';
|
|
3
|
-
import { matchsStart } from './judge/matchsStart.cjs';
|
|
4
|
-
import { matchsWhole } from './judge/matchsWhole.cjs';
|
|
5
|
-
|
|
6
|
-
declare const index_matchs: typeof matchs;
|
|
7
|
-
declare const index_matchsEnd: typeof matchsEnd;
|
|
8
|
-
declare const index_matchsStart: typeof matchsStart;
|
|
9
|
-
declare const index_matchsWhole: typeof matchsWhole;
|
|
10
|
-
declare namespace index {
|
|
11
|
-
export { index_matchs as matchs, index_matchsEnd as matchsEnd, index_matchsStart as matchsStart, index_matchsWhole as matchsWhole };
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { index as i };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { arrayToTree, getTreeObj, treeToArray } from './tree/getTreeObj.cjs';
|
|
2
|
-
|
|
3
|
-
declare const index_arrayToTree: typeof arrayToTree;
|
|
4
|
-
declare const index_getTreeObj: typeof getTreeObj;
|
|
5
|
-
declare const index_treeToArray: typeof treeToArray;
|
|
6
|
-
declare namespace index {
|
|
7
|
-
export { index_arrayToTree as arrayToTree, index_getTreeObj as getTreeObj, index_treeToArray as treeToArray };
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { index as i };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { i as index$1 } from './index-BrxHOuw0.cjs';
|
|
2
|
-
import { i as index$2 } from './index-EY4Ag8_f.cjs';
|
|
3
|
-
import { i as index$3 } from './index-DBBlm0PZ.cjs';
|
|
4
|
-
|
|
5
|
-
declare namespace index {
|
|
6
|
-
export { index$1 as array, index$2 as object, index$3 as string };
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { index as i };
|