@fangzhongya/utils 0.0.78 → 0.0.80
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 +21 -21
- package/dist/basic/index.js +20 -20
- package/dist/basic/object/index.cjs +14 -14
- package/dist/basic/object/index.js +17 -17
- package/dist/basic/string/index.cjs +7 -7
- package/dist/basic/string/index.js +6 -6
- package/dist/basic/string/toJsons.cjs +3 -3
- package/dist/basic/string/toJsons.js +2 -2
- package/dist/chunk-4PHNHHMJ.cjs +147 -0
- package/dist/{chunk-77HYQARJ.js → chunk-AFYMIG44.js} +4 -4
- package/dist/{chunk-OT7BE2QO.js → chunk-CVOKF2FY.js} +4 -4
- package/dist/{chunk-NY6AUY2V.cjs → chunk-DKSOW4ZW.cjs} +4 -4
- package/dist/chunk-H3AJ6I4R.js +147 -0
- package/dist/{chunk-ZNXYPYOR.cjs → chunk-HW7GNYRU.cjs} +8 -8
- package/dist/{chunk-4JXZQBCA.js → chunk-V3RZHI77.js} +11 -1
- package/dist/{chunk-FLGYKRQ6.cjs → chunk-YII73IJ4.cjs} +13 -3
- package/dist/html/getVueText.cjs +12 -2
- package/dist/html/getVueText.d.cts +21 -10
- package/dist/html/getVueText.d.ts +21 -10
- package/dist/html/getVueText.js +11 -1
- package/dist/html/index.cjs +13 -3
- package/dist/html/index.d.cts +1 -1
- package/dist/html/index.d.ts +1 -1
- package/dist/html/index.js +12 -2
- package/dist/index-CYl0_lOi.d.cts +21 -0
- package/dist/index-CnZTBIkh.d.ts +21 -0
- package/dist/index.cjs +40 -40
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +39 -39
- package/dist/iss/index.cjs +4 -4
- package/dist/iss/index.js +5 -5
- package/dist/tree/index.cjs +3 -3
- package/dist/tree/index.js +6 -6
- package/dist/urls/index.cjs +13 -13
- package/dist/urls/index.js +16 -16
- package/package.json +1 -1
- package/dist/chunk-6TBH7RAC.cjs +0 -51
- package/dist/chunk-7PJ2D3KR.js +0 -51
- package/dist/index-CdRz4xJD.d.ts +0 -15
- package/dist/index-CnrmwHvE.d.cts +0 -15
- package/dist/{chunk-7GCUYESU.cjs → chunk-AU3BKC3U.cjs} +12 -12
- package/dist/{chunk-B7H7E5OQ.js → chunk-IPLG5J7J.js} +4 -4
- package/dist/{chunk-QUIZWAFR.js → chunk-OVHYLUAS.js} +5 -5
- package/dist/{chunk-HNGSLKVN.js → chunk-PRGC5MIZ.js} +16 -16
- package/dist/{chunk-APRM3ELY.cjs → chunk-PV2N6PF2.cjs} +2 -2
- package/dist/{chunk-V4VRGXYP.cjs → chunk-RYVXUCAS.cjs} +3 -3
- package/dist/{chunk-3QB3GKVL.cjs → chunk-TKE7IK2M.cjs} +2 -2
- package/dist/{chunk-3DUFQKFF.js → chunk-UIVSKRGG.js} +15 -15
- package/dist/{chunk-E4BMU2DQ.cjs → chunk-YUKBGZQ4.cjs} +13 -13
- package/dist/{chunk-VJKUTNCV.js → chunk-ZADO6V3Z.js} +3 -3
package/dist/index.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
window_exports
|
|
3
|
-
} from "./chunk-PYYFCN7M.js";
|
|
4
|
-
import "./chunk-FDAJOMW5.js";
|
|
5
|
-
import "./chunk-LJVOVGGV.js";
|
|
6
1
|
import {
|
|
7
2
|
urls_exports
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-Z7NTQAAJ.js";
|
|
10
|
-
import "./chunk-WZUEX7IR.js";
|
|
11
|
-
import "./chunk-7KGS6354.js";
|
|
3
|
+
} from "./chunk-UIVSKRGG.js";
|
|
12
4
|
import "./chunk-I5IL3OO7.js";
|
|
13
|
-
import "./chunk-W45DTA4D.js";
|
|
14
|
-
import "./chunk-ZLEU2YQ2.js";
|
|
15
|
-
import "./chunk-NWIJYHAJ.js";
|
|
16
|
-
import "./chunk-KDOS4NFR.js";
|
|
17
5
|
import "./chunk-GHTDWIJ5.js";
|
|
18
6
|
import "./chunk-ZFA4L2GI.js";
|
|
19
7
|
import "./chunk-BRS7HYO6.js";
|
|
20
8
|
import "./chunk-ZJHRAMCL.js";
|
|
21
9
|
import "./chunk-SE7A43WC.js";
|
|
22
10
|
import "./chunk-GHJWTV6H.js";
|
|
11
|
+
import "./chunk-Z7NTQAAJ.js";
|
|
12
|
+
import "./chunk-WZUEX7IR.js";
|
|
13
|
+
import "./chunk-7KGS6354.js";
|
|
14
|
+
import {
|
|
15
|
+
window_exports
|
|
16
|
+
} from "./chunk-PYYFCN7M.js";
|
|
17
|
+
import "./chunk-FDAJOMW5.js";
|
|
18
|
+
import "./chunk-LJVOVGGV.js";
|
|
19
|
+
import {
|
|
20
|
+
tree_exports
|
|
21
|
+
} from "./chunk-OVHYLUAS.js";
|
|
22
|
+
import "./chunk-GVVJIN46.js";
|
|
23
|
+
import "./chunk-XQOH3NGZ.js";
|
|
24
|
+
import "./chunk-NWIJYHAJ.js";
|
|
25
|
+
import "./chunk-KDOS4NFR.js";
|
|
23
26
|
import {
|
|
24
27
|
name_exports
|
|
25
28
|
} from "./chunk-BFN33JM5.js";
|
|
@@ -27,11 +30,8 @@ import {
|
|
|
27
30
|
node_exports
|
|
28
31
|
} from "./chunk-UZ3LZBJ5.js";
|
|
29
32
|
import "./chunk-HWR2FRME.js";
|
|
30
|
-
import
|
|
31
|
-
|
|
32
|
-
} from "./chunk-QUIZWAFR.js";
|
|
33
|
-
import "./chunk-XQOH3NGZ.js";
|
|
34
|
-
import "./chunk-GVVJIN46.js";
|
|
33
|
+
import "./chunk-W45DTA4D.js";
|
|
34
|
+
import "./chunk-ZLEU2YQ2.js";
|
|
35
35
|
import {
|
|
36
36
|
load_exports
|
|
37
37
|
} from "./chunk-IAKHOOY7.js";
|
|
@@ -47,11 +47,11 @@ import "./chunk-AM67P3W7.js";
|
|
|
47
47
|
import "./chunk-XCDKXZFR.js";
|
|
48
48
|
import {
|
|
49
49
|
html_exports
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-V3RZHI77.js";
|
|
51
51
|
import "./chunk-NCSN3MC5.js";
|
|
52
52
|
import {
|
|
53
53
|
iss_exports
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-IPLG5J7J.js";
|
|
55
55
|
import {
|
|
56
56
|
judge_exports
|
|
57
57
|
} from "./chunk-X44UO4CZ.js";
|
|
@@ -71,7 +71,7 @@ import "./chunk-Q63V2U5G.js";
|
|
|
71
71
|
import "./chunk-AFFLQCJL.js";
|
|
72
72
|
import "./chunk-GIAO77MY.js";
|
|
73
73
|
import "./chunk-IV7XHH6K.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-H3AJ6I4R.js";
|
|
75
75
|
import {
|
|
76
76
|
css_exports
|
|
77
77
|
} from "./chunk-QM6EWX7J.js";
|
|
@@ -85,32 +85,32 @@ import "./chunk-EKY7GXCD.js";
|
|
|
85
85
|
import "./chunk-Q2EFMBMD.js";
|
|
86
86
|
import {
|
|
87
87
|
basic_exports
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-RD4EP3M5.js";
|
|
91
|
-
import "./chunk-B3IGSYZT.js";
|
|
92
|
-
import "./chunk-3LWFUVER.js";
|
|
93
|
-
import "./chunk-A6J46LQK.js";
|
|
94
|
-
import "./chunk-T4BAVDTH.js";
|
|
95
|
-
import "./chunk-BRIQCC74.js";
|
|
96
|
-
import "./chunk-YMKTU42G.js";
|
|
97
|
-
import "./chunk-S42NGJ5W.js";
|
|
98
|
-
import "./chunk-ZEAT23CI.js";
|
|
99
|
-
import "./chunk-3IR2ABRO.js";
|
|
100
|
-
import "./chunk-OT7BE2QO.js";
|
|
101
|
-
import "./chunk-YQ53QNMC.js";
|
|
88
|
+
} from "./chunk-AFYMIG44.js";
|
|
89
|
+
import "./chunk-CVOKF2FY.js";
|
|
102
90
|
import "./chunk-VKE5JARB.js";
|
|
103
91
|
import "./chunk-U6V3V5KH.js";
|
|
104
92
|
import "./chunk-TIZFQBWC.js";
|
|
105
|
-
import "./chunk-
|
|
106
|
-
import "./chunk-SHNH5OEU.js";
|
|
93
|
+
import "./chunk-ZADO6V3Z.js";
|
|
107
94
|
import "./chunk-ADPTUJSF.js";
|
|
108
95
|
import "./chunk-Q6BNW3MO.js";
|
|
109
96
|
import "./chunk-YKSVLAAK.js";
|
|
110
97
|
import "./chunk-4KYAGDPN.js";
|
|
111
98
|
import "./chunk-N5Y3XGHX.js";
|
|
112
99
|
import "./chunk-7DTHADVK.js";
|
|
100
|
+
import "./chunk-YQ53QNMC.js";
|
|
113
101
|
import "./chunk-FS4JPT23.js";
|
|
102
|
+
import "./chunk-PRGC5MIZ.js";
|
|
103
|
+
import "./chunk-B3IGSYZT.js";
|
|
104
|
+
import "./chunk-3LWFUVER.js";
|
|
105
|
+
import "./chunk-A6J46LQK.js";
|
|
106
|
+
import "./chunk-ZEAT23CI.js";
|
|
107
|
+
import "./chunk-3IR2ABRO.js";
|
|
108
|
+
import "./chunk-RD4EP3M5.js";
|
|
109
|
+
import "./chunk-SHNH5OEU.js";
|
|
110
|
+
import "./chunk-T4BAVDTH.js";
|
|
111
|
+
import "./chunk-BRIQCC74.js";
|
|
112
|
+
import "./chunk-YMKTU42G.js";
|
|
113
|
+
import "./chunk-S42NGJ5W.js";
|
|
114
114
|
import "./chunk-PVXQ2H5H.js";
|
|
115
115
|
import "./chunk-K33LOE73.js";
|
|
116
116
|
import "./chunk-APKFW4LU.js";
|
|
@@ -122,13 +122,13 @@ import "./chunk-USIMBBLW.js";
|
|
|
122
122
|
import "./chunk-P7AWHISY.js";
|
|
123
123
|
import "./chunk-LPMR5W6M.js";
|
|
124
124
|
import "./chunk-DMZP4RPN.js";
|
|
125
|
-
import "./chunk-A276ZDLP.js";
|
|
126
125
|
import "./chunk-O34QAOO7.js";
|
|
126
|
+
import "./chunk-A276ZDLP.js";
|
|
127
127
|
import "./chunk-4OBNLDTJ.js";
|
|
128
128
|
import "./chunk-EWJJKQIO.js";
|
|
129
|
+
import "./chunk-BEKTNBRJ.js";
|
|
129
130
|
import "./chunk-GYE23WAN.js";
|
|
130
131
|
import "./chunk-MXY4W3K5.js";
|
|
131
|
-
import "./chunk-BEKTNBRJ.js";
|
|
132
132
|
import "./chunk-5PX3AFSC.js";
|
|
133
133
|
import "./chunk-WX3JYE47.js";
|
|
134
134
|
import "./chunk-N3FZ4WUI.js";
|
package/dist/iss/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-RYVXUCAS.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkA5LHXE5Xcjs = require('../chunk-A5LHXE5X.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunkWWAPPA4Ecjs = require('../chunk-WWAPPA4E.cjs');
|
|
6
6
|
|
|
7
|
-
var _chunkMIC3W2VYcjs = require('../chunk-MIC3W2VY.cjs');
|
|
8
7
|
|
|
8
|
+
var _chunkA5LHXE5Xcjs = require('../chunk-A5LHXE5X.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMIC3W2VYcjs = require('../chunk-MIC3W2VY.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkISHLY7WMcjs = require('../chunk-ISHLY7WM.cjs');
|
package/dist/iss/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-IPLG5J7J.js";
|
|
2
|
+
import {
|
|
3
|
+
isEqual,
|
|
4
|
+
isEqualEnhanced
|
|
5
|
+
} from "../chunk-BEKTNBRJ.js";
|
|
2
6
|
import {
|
|
3
7
|
isObjectArray
|
|
4
8
|
} from "../chunk-GYE23WAN.js";
|
|
5
9
|
import {
|
|
6
10
|
isObject
|
|
7
11
|
} from "../chunk-MXY4W3K5.js";
|
|
8
|
-
import {
|
|
9
|
-
isEqual,
|
|
10
|
-
isEqualEnhanced
|
|
11
|
-
} from "../chunk-BEKTNBRJ.js";
|
|
12
12
|
import {
|
|
13
13
|
isArray
|
|
14
14
|
} from "../chunk-5PX3AFSC.js";
|
package/dist/tree/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
var
|
|
6
|
+
var _chunkYAD5PHVFcjs = require('../chunk-YAD5PHVF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRYBJGHXKcjs = require('../chunk-RYBJGHXK.cjs');
|
|
12
12
|
require('../chunk-XW3XIK3D.cjs');
|
|
13
13
|
require('../chunk-75ZPJI57.cjs');
|
|
14
14
|
|
package/dist/tree/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
splitGroup,
|
|
4
|
-
splitGroupDitto,
|
|
5
|
-
splitGroupExist
|
|
6
|
-
} from "../chunk-XQOH3NGZ.js";
|
|
1
|
+
import "../chunk-OVHYLUAS.js";
|
|
7
2
|
import {
|
|
8
3
|
arrayToTree,
|
|
9
4
|
getTreeObj,
|
|
10
5
|
treeToArray
|
|
11
6
|
} from "../chunk-GVVJIN46.js";
|
|
7
|
+
import {
|
|
8
|
+
splitGroup,
|
|
9
|
+
splitGroupDitto,
|
|
10
|
+
splitGroupExist
|
|
11
|
+
} from "../chunk-XQOH3NGZ.js";
|
|
12
12
|
import "../chunk-O34QAOO7.js";
|
|
13
13
|
import "../chunk-MLKGABMK.js";
|
|
14
14
|
export {
|
package/dist/urls/index.cjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-AU3BKC3U.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunk76G4GJ6Rcjs = require('../chunk-76G4GJ6R.cjs');
|
|
5
4
|
|
|
5
|
+
var _chunkJFAHWIZ3cjs = require('../chunk-JFAHWIZ3.cjs');
|
|
6
6
|
|
|
7
|
-
var _chunkETOSL4FHcjs = require('../chunk-ETOSL4FH.cjs');
|
|
8
7
|
|
|
8
|
+
var _chunkJAWXP52Ocjs = require('../chunk-JAWXP52O.cjs');
|
|
9
9
|
|
|
10
|
-
var _chunkTPOVGKBXcjs = require('../chunk-TPOVGKBX.cjs');
|
|
11
10
|
|
|
11
|
+
var _chunkKHFZCJ23cjs = require('../chunk-KHFZCJ23.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkA4K3QWLIcjs = require('../chunk-A4K3QWLI.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkRFUD3TOQcjs = require('../chunk-RFUD3TOQ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk3DD7YCN2cjs = require('../chunk-3DD7YCN2.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkHMAAC5QAcjs = require('../chunk-HMAAC5QA.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk76G4GJ6Rcjs = require('../chunk-76G4GJ6R.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkETOSL4FHcjs = require('../chunk-ETOSL4FH.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkTPOVGKBXcjs = require('../chunk-TPOVGKBX.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkH6KIVPAScjs = require('../chunk-H6KIVPAS.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkCVBJXH33cjs = require('../chunk-CVBJXH33.cjs');
|
|
39
39
|
require('../chunk-2H3KVSFA.cjs');
|
|
40
40
|
require('../chunk-ILJLXJ5O.cjs');
|
|
41
41
|
require('../chunk-OJBZ7UUC.cjs');
|
package/dist/urls/index.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
getSuffix
|
|
4
|
-
} from "../chunk-Z7NTQAAJ.js";
|
|
5
|
-
import {
|
|
6
|
-
getUrlCatalogue
|
|
7
|
-
} from "../chunk-WZUEX7IR.js";
|
|
8
|
-
import {
|
|
9
|
-
getUrlCatalogueLast
|
|
10
|
-
} from "../chunk-7KGS6354.js";
|
|
1
|
+
import "../chunk-UIVSKRGG.js";
|
|
11
2
|
import {
|
|
12
3
|
toUrlParam,
|
|
13
4
|
toUrlParams
|
|
14
5
|
} from "../chunk-I5IL3OO7.js";
|
|
15
|
-
import {
|
|
16
|
-
getImportUrlSuffix
|
|
17
|
-
} from "../chunk-NWIJYHAJ.js";
|
|
18
|
-
import {
|
|
19
|
-
getImportUrl
|
|
20
|
-
} from "../chunk-KDOS4NFR.js";
|
|
21
6
|
import {
|
|
22
7
|
getNewFileName
|
|
23
8
|
} from "../chunk-GHTDWIJ5.js";
|
|
@@ -36,6 +21,21 @@ import {
|
|
|
36
21
|
import {
|
|
37
22
|
getReplaceUrls
|
|
38
23
|
} from "../chunk-GHJWTV6H.js";
|
|
24
|
+
import {
|
|
25
|
+
getSuffix
|
|
26
|
+
} from "../chunk-Z7NTQAAJ.js";
|
|
27
|
+
import {
|
|
28
|
+
getUrlCatalogue
|
|
29
|
+
} from "../chunk-WZUEX7IR.js";
|
|
30
|
+
import {
|
|
31
|
+
getUrlCatalogueLast
|
|
32
|
+
} from "../chunk-7KGS6354.js";
|
|
33
|
+
import {
|
|
34
|
+
getImportUrlSuffix
|
|
35
|
+
} from "../chunk-NWIJYHAJ.js";
|
|
36
|
+
import {
|
|
37
|
+
getImportUrl
|
|
38
|
+
} from "../chunk-KDOS4NFR.js";
|
|
39
39
|
import "../chunk-USIMBBLW.js";
|
|
40
40
|
import "../chunk-P7AWHISY.js";
|
|
41
41
|
import "../chunk-LPMR5W6M.js";
|
package/package.json
CHANGED
package/dist/chunk-6TBH7RAC.cjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/html/getVueText.ts
|
|
2
|
-
function getVueText(content) {
|
|
3
|
-
const result = {
|
|
4
|
-
template: "",
|
|
5
|
-
scripts: [],
|
|
6
|
-
styles: [],
|
|
7
|
-
customBlocks: []
|
|
8
|
-
};
|
|
9
|
-
const templateRegex = /<template([\s\S]*?)>([\s\S]*?)<\/template>/;
|
|
10
|
-
const templateMatch = content.match(templateRegex);
|
|
11
|
-
if (templateMatch && templateMatch[2]) {
|
|
12
|
-
result.template = templateMatch[2];
|
|
13
|
-
}
|
|
14
|
-
const scriptRegex = /<script([\s\S]*?)>([\s\S]*?)<\/script>/g;
|
|
15
|
-
let scriptMatch;
|
|
16
|
-
while ((scriptMatch = scriptRegex.exec(content)) !== null) {
|
|
17
|
-
if (scriptMatch[2]) {
|
|
18
|
-
result.scripts.push(scriptMatch[2]);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const styleRegex = /<style([\s\S]*?)>([\s\S]*?)<\/style>/g;
|
|
22
|
-
let styleMatch;
|
|
23
|
-
while ((styleMatch = styleRegex.exec(content)) !== null) {
|
|
24
|
-
if (styleMatch[2]) {
|
|
25
|
-
result.styles.push(styleMatch[2]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const customBlockRegex = /<([a-z][a-z0-9-]*)([\s\S]*?)>([\s\S]*?)<\/\1>/g;
|
|
29
|
-
let customMatch;
|
|
30
|
-
while ((customMatch = customBlockRegex.exec(content)) !== null) {
|
|
31
|
-
if (!["template", "script", "style"].includes(customMatch[1])) {
|
|
32
|
-
result.customBlocks.push({
|
|
33
|
-
type: customMatch[1],
|
|
34
|
-
content: customMatch[3]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return result;
|
|
39
|
-
}
|
|
40
|
-
function getVueTexts(content) {
|
|
41
|
-
const obj = getVueText(content);
|
|
42
|
-
return {
|
|
43
|
-
script: obj.scripts.join("\n"),
|
|
44
|
-
style: obj.styles.join("\n")
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports.getVueText = getVueText; exports.getVueTexts = getVueTexts;
|
package/dist/chunk-7PJ2D3KR.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// packages/html/getVueText.ts
|
|
2
|
-
function getVueText(content) {
|
|
3
|
-
const result = {
|
|
4
|
-
template: "",
|
|
5
|
-
scripts: [],
|
|
6
|
-
styles: [],
|
|
7
|
-
customBlocks: []
|
|
8
|
-
};
|
|
9
|
-
const templateRegex = /<template([\s\S]*?)>([\s\S]*?)<\/template>/;
|
|
10
|
-
const templateMatch = content.match(templateRegex);
|
|
11
|
-
if (templateMatch && templateMatch[2]) {
|
|
12
|
-
result.template = templateMatch[2];
|
|
13
|
-
}
|
|
14
|
-
const scriptRegex = /<script([\s\S]*?)>([\s\S]*?)<\/script>/g;
|
|
15
|
-
let scriptMatch;
|
|
16
|
-
while ((scriptMatch = scriptRegex.exec(content)) !== null) {
|
|
17
|
-
if (scriptMatch[2]) {
|
|
18
|
-
result.scripts.push(scriptMatch[2]);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const styleRegex = /<style([\s\S]*?)>([\s\S]*?)<\/style>/g;
|
|
22
|
-
let styleMatch;
|
|
23
|
-
while ((styleMatch = styleRegex.exec(content)) !== null) {
|
|
24
|
-
if (styleMatch[2]) {
|
|
25
|
-
result.styles.push(styleMatch[2]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const customBlockRegex = /<([a-z][a-z0-9-]*)([\s\S]*?)>([\s\S]*?)<\/\1>/g;
|
|
29
|
-
let customMatch;
|
|
30
|
-
while ((customMatch = customBlockRegex.exec(content)) !== null) {
|
|
31
|
-
if (!["template", "script", "style"].includes(customMatch[1])) {
|
|
32
|
-
result.customBlocks.push({
|
|
33
|
-
type: customMatch[1],
|
|
34
|
-
content: customMatch[3]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return result;
|
|
39
|
-
}
|
|
40
|
-
function getVueTexts(content) {
|
|
41
|
-
const obj = getVueText(content);
|
|
42
|
-
return {
|
|
43
|
-
script: obj.scripts.join("\n"),
|
|
44
|
-
style: obj.styles.join("\n")
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export {
|
|
49
|
-
getVueText,
|
|
50
|
-
getVueTexts
|
|
51
|
-
};
|
package/dist/index-CdRz4xJD.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { analysisHtml } from './html/analysisHtml.js';
|
|
2
|
-
import { generateHtmlh } from './html/generateHtml.js';
|
|
3
|
-
import { getVueText, getVueTexts } from './html/getVueText.js';
|
|
4
|
-
import { htmlEscape } from './html/htmlEscape.js';
|
|
5
|
-
|
|
6
|
-
declare const index_analysisHtml: typeof analysisHtml;
|
|
7
|
-
declare const index_generateHtmlh: typeof generateHtmlh;
|
|
8
|
-
declare const index_getVueText: typeof getVueText;
|
|
9
|
-
declare const index_getVueTexts: typeof getVueTexts;
|
|
10
|
-
declare const index_htmlEscape: typeof htmlEscape;
|
|
11
|
-
declare namespace index {
|
|
12
|
-
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_getVueText as getVueText, index_getVueTexts as getVueTexts, index_htmlEscape as htmlEscape };
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { index as i };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { analysisHtml } from './html/analysisHtml.cjs';
|
|
2
|
-
import { generateHtmlh } from './html/generateHtml.cjs';
|
|
3
|
-
import { getVueText, getVueTexts } from './html/getVueText.cjs';
|
|
4
|
-
import { htmlEscape } from './html/htmlEscape.cjs';
|
|
5
|
-
|
|
6
|
-
declare const index_analysisHtml: typeof analysisHtml;
|
|
7
|
-
declare const index_generateHtmlh: typeof generateHtmlh;
|
|
8
|
-
declare const index_getVueText: typeof getVueText;
|
|
9
|
-
declare const index_getVueTexts: typeof getVueTexts;
|
|
10
|
-
declare const index_htmlEscape: typeof htmlEscape;
|
|
11
|
-
declare namespace index {
|
|
12
|
-
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_getVueText as getVueText, index_getVueTexts as getVueTexts, index_htmlEscape as htmlEscape };
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { index as i };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _chunk76G4GJ6Rcjs = require('./chunk-76G4GJ6R.cjs');
|
|
4
3
|
|
|
4
|
+
var _chunkJFAHWIZ3cjs = require('./chunk-JFAHWIZ3.cjs');
|
|
5
5
|
|
|
6
|
-
var _chunkETOSL4FHcjs = require('./chunk-ETOSL4FH.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkJAWXP52Ocjs = require('./chunk-JAWXP52O.cjs');
|
|
8
8
|
|
|
9
|
-
var _chunkTPOVGKBXcjs = require('./chunk-TPOVGKBX.cjs');
|
|
10
9
|
|
|
10
|
+
var _chunkKHFZCJ23cjs = require('./chunk-KHFZCJ23.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkA4K3QWLIcjs = require('./chunk-A4K3QWLI.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk3DD7YCN2cjs = require('./chunk-3DD7YCN2.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkHMAAC5QAcjs = require('./chunk-HMAAC5QA.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk76G4GJ6Rcjs = require('./chunk-76G4GJ6R.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkETOSL4FHcjs = require('./chunk-ETOSL4FH.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkTPOVGKBXcjs = require('./chunk-TPOVGKBX.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkH6KIVPAScjs = require('./chunk-H6KIVPAS.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkCVBJXH33cjs = require('./chunk-CVBJXH33.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isEqual,
|
|
3
|
+
isEqualEnhanced
|
|
4
|
+
} from "./chunk-BEKTNBRJ.js";
|
|
1
5
|
import {
|
|
2
6
|
isObjectArray
|
|
3
7
|
} from "./chunk-GYE23WAN.js";
|
|
4
8
|
import {
|
|
5
9
|
isObject
|
|
6
10
|
} from "./chunk-MXY4W3K5.js";
|
|
7
|
-
import {
|
|
8
|
-
isEqual,
|
|
9
|
-
isEqualEnhanced
|
|
10
|
-
} from "./chunk-BEKTNBRJ.js";
|
|
11
11
|
import {
|
|
12
12
|
isArray
|
|
13
13
|
} from "./chunk-5PX3AFSC.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
splitGroup,
|
|
3
|
-
splitGroupDitto,
|
|
4
|
-
splitGroupExist
|
|
5
|
-
} from "./chunk-XQOH3NGZ.js";
|
|
6
1
|
import {
|
|
7
2
|
arrayToTree,
|
|
8
3
|
getTreeObj,
|
|
9
4
|
treeToArray
|
|
10
5
|
} from "./chunk-GVVJIN46.js";
|
|
6
|
+
import {
|
|
7
|
+
splitGroup,
|
|
8
|
+
splitGroupDitto,
|
|
9
|
+
splitGroupExist
|
|
10
|
+
} from "./chunk-XQOH3NGZ.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mergeObject
|
|
3
|
-
} from "./chunk-RD4EP3M5.js";
|
|
4
1
|
import {
|
|
5
2
|
reverseObj
|
|
6
3
|
} from "./chunk-B3IGSYZT.js";
|
|
@@ -10,6 +7,19 @@ import {
|
|
|
10
7
|
import {
|
|
11
8
|
unmergeObject
|
|
12
9
|
} from "./chunk-A6J46LQK.js";
|
|
10
|
+
import {
|
|
11
|
+
getSort
|
|
12
|
+
} from "./chunk-ZEAT23CI.js";
|
|
13
|
+
import {
|
|
14
|
+
hasOwn
|
|
15
|
+
} from "./chunk-3IR2ABRO.js";
|
|
16
|
+
import {
|
|
17
|
+
mergeObject
|
|
18
|
+
} from "./chunk-RD4EP3M5.js";
|
|
19
|
+
import {
|
|
20
|
+
getObjValue,
|
|
21
|
+
setObjValue
|
|
22
|
+
} from "./chunk-SHNH5OEU.js";
|
|
13
23
|
import {
|
|
14
24
|
attrValueSort
|
|
15
25
|
} from "./chunk-T4BAVDTH.js";
|
|
@@ -28,25 +38,15 @@ import {
|
|
|
28
38
|
filterObject
|
|
29
39
|
} from "./chunk-S42NGJ5W.js";
|
|
30
40
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
hasOwn
|
|
35
|
-
} from "./chunk-3IR2ABRO.js";
|
|
36
|
-
import {
|
|
37
|
-
getObjValue,
|
|
38
|
-
setObjValue
|
|
39
|
-
} from "./chunk-SHNH5OEU.js";
|
|
41
|
+
isEqual,
|
|
42
|
+
isEqualEnhanced
|
|
43
|
+
} from "./chunk-BEKTNBRJ.js";
|
|
40
44
|
import {
|
|
41
45
|
isObjectArray
|
|
42
46
|
} from "./chunk-GYE23WAN.js";
|
|
43
47
|
import {
|
|
44
48
|
isObject
|
|
45
49
|
} from "./chunk-MXY4W3K5.js";
|
|
46
|
-
import {
|
|
47
|
-
isEqual,
|
|
48
|
-
isEqualEnhanced
|
|
49
|
-
} from "./chunk-BEKTNBRJ.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
52
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYAD5PHVFcjs = require('./chunk-YAD5PHVF.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRYBJGHXKcjs = require('./chunk-RYBJGHXK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _chunkA5LHXE5Xcjs = require('./chunk-A5LHXE5X.cjs');
|
|
4
3
|
|
|
4
|
+
var _chunkWWAPPA4Ecjs = require('./chunk-WWAPPA4E.cjs');
|
|
5
5
|
|
|
6
|
-
var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
|
|
7
6
|
|
|
7
|
+
var _chunkA5LHXE5Xcjs = require('./chunk-A5LHXE5X.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJJ37YIPJcjs = require('./chunk-JJ37YIPJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA5UJF6LPcjs = require('./chunk-A5UJF6LP.cjs');
|
|
7
7
|
|
|
8
8
|
// packages/basic/string/toJsons.ts
|
|
9
9
|
var TYPE_MARKERS = {
|