@fangzhongya/utils 0.0.20 → 0.0.21
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 +4 -4
- package/dist/basic/array/index.js +4 -4
- package/dist/basic/index.cjs +8 -8
- package/dist/basic/index.js +7 -7
- package/dist/basic/string/getImports.d.cts +1 -1
- package/dist/basic/string/getImports.d.ts +1 -1
- package/dist/basic/string/index.cjs +5 -5
- package/dist/basic/string/index.js +6 -6
- package/dist/chunk-6TBH7RAC.cjs +51 -0
- package/dist/chunk-7PJ2D3KR.js +51 -0
- package/dist/{chunk-5O3HXCVU.js → chunk-ADPANWVU.js} +2 -2
- package/dist/{chunk-WAWXWJLQ.js → chunk-EJZIISBA.js} +9 -3
- package/dist/{chunk-X3S7OYCE.cjs → chunk-GCVQ4KN2.cjs} +12 -12
- package/dist/{chunk-KRZBLPZC.js → chunk-NYRG5SN2.js} +12 -12
- package/dist/{chunk-TFGOCPGF.cjs → chunk-OKL7QE62.cjs} +4 -4
- package/dist/{chunk-ACMKQANI.cjs → chunk-QN6KZWKM.cjs} +9 -3
- package/dist/html/getVueText.cjs +9 -0
- package/dist/html/getVueText.d.cts +16 -0
- package/dist/html/getVueText.d.ts +16 -0
- package/dist/html/getVueText.js +9 -0
- package/dist/html/index.cjs +11 -5
- package/dist/html/index.d.cts +1 -0
- package/dist/html/index.d.ts +1 -0
- package/dist/html/index.js +10 -4
- package/dist/{index-CTSD8gS7.d.ts → index-CdRz4xJD.d.ts} +4 -1
- package/dist/{index-DyDvVtuo.d.cts → index-CnrmwHvE.d.cts} +4 -1
- package/dist/index.cjs +39 -38
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +41 -40
- package/dist/load/index.cjs +3 -3
- package/dist/load/index.js +4 -4
- package/dist/urls/getReplaceCompleteUrl.cjs +3 -3
- package/dist/urls/getReplaceCompleteUrl.js +2 -2
- package/dist/urls/getReplaceUrl.cjs +3 -3
- package/dist/urls/getReplaceUrl.js +2 -2
- package/dist/urls/index.cjs +14 -14
- package/dist/urls/index.js +15 -15
- package/dist/window/index.cjs +3 -3
- package/dist/window/index.js +4 -4
- package/package.json +6 -1
- package/dist/{chunk-TV3NKA26.cjs → chunk-3DD7YCN2.cjs} +2 -2
- package/dist/{chunk-QS6GY3QV.js → chunk-3NBXSBFM.js} +3 -3
- package/dist/{chunk-7ZBXKVHR.js → chunk-4HDH7W4I.js} +5 -5
- package/dist/{chunk-S5LO76T2.js → chunk-5M5OM6N6.js} +3 -3
- package/dist/{chunk-XXS5G6S6.cjs → chunk-BD6DK4QK.cjs} +2 -2
- package/dist/{chunk-LU22MUUS.js → chunk-EGM54DV6.js} +3 -3
- package/dist/{chunk-F4P3HMNK.js → chunk-IAKHOOY7.js} +3 -3
- package/dist/{chunk-UF6FYYWF.cjs → chunk-NESVPZNF.cjs} +2 -2
- package/dist/{chunk-BHKDQ72N.cjs → chunk-OPQR6SKT.cjs} +4 -4
- package/dist/{chunk-4BGJIMWM.cjs → chunk-S5SLR7IL.cjs} +3 -3
- package/dist/{chunk-KOLCUFXV.js → chunk-SE7A43WC.js} +3 -3
- package/dist/{chunk-ZFUTCZ7S.cjs → chunk-VCQOLLVK.cjs} +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-S5SLR7IL.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkMHHMXDHDcjs = require('../../chunk-MHHMXDHD.cjs');
|
|
2
5
|
|
|
3
6
|
|
|
4
7
|
var _chunkSOAKYJIGcjs = require('../../chunk-SOAKYJIG.cjs');
|
|
@@ -13,9 +16,6 @@ var _chunkXSQOJWXLcjs = require('../../chunk-XSQOJWXL.cjs');
|
|
|
13
16
|
var _chunkGD3OA7GUcjs = require('../../chunk-GD3OA7GU.cjs');
|
|
14
17
|
|
|
15
18
|
|
|
16
|
-
var _chunkMHHMXDHDcjs = require('../../chunk-MHHMXDHD.cjs');
|
|
17
|
-
|
|
18
|
-
|
|
19
19
|
var _chunkXW3XIK3Dcjs = require('../../chunk-XW3XIK3D.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-EGM54DV6.js";
|
|
2
|
+
import {
|
|
3
|
+
replaceAfter
|
|
4
|
+
} from "../../chunk-K33LOE73.js";
|
|
2
5
|
import {
|
|
3
6
|
toggleArray
|
|
4
7
|
} from "../../chunk-APKFW4LU.js";
|
|
@@ -11,9 +14,6 @@ import {
|
|
|
11
14
|
import {
|
|
12
15
|
duplicateRemoval
|
|
13
16
|
} from "../../chunk-ZVBCHJA5.js";
|
|
14
|
-
import {
|
|
15
|
-
replaceAfter
|
|
16
|
-
} from "../../chunk-K33LOE73.js";
|
|
17
17
|
import {
|
|
18
18
|
sortObj
|
|
19
19
|
} from "../../chunk-O34QAOO7.js";
|
package/dist/basic/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-OKL7QE62.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOPQR6SKTcjs = require('../chunk-OPQR6SKT.cjs');
|
|
5
5
|
require('../chunk-L7FSHU27.cjs');
|
|
6
6
|
require('../chunk-JHV27P2Q.cjs');
|
|
7
7
|
require('../chunk-ETMYYVQJ.cjs');
|
|
@@ -24,17 +24,17 @@ require('../chunk-7AIT4XSD.cjs');
|
|
|
24
24
|
require('../chunk-GOUC2DFA.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkS5SLR7ILcjs = require('../chunk-S5SLR7IL.cjs');
|
|
28
|
+
require('../chunk-MHHMXDHD.cjs');
|
|
28
29
|
require('../chunk-SOAKYJIG.cjs');
|
|
29
30
|
require('../chunk-TCMJPIRM.cjs');
|
|
30
31
|
require('../chunk-XSQOJWXL.cjs');
|
|
31
32
|
require('../chunk-GD3OA7GU.cjs');
|
|
32
|
-
require('../chunk-MHHMXDHD.cjs');
|
|
33
|
-
require('../chunk-XW3XIK3D.cjs');
|
|
34
|
-
require('../chunk-ILJLXJ5O.cjs');
|
|
35
33
|
require('../chunk-2H3KVSFA.cjs');
|
|
36
|
-
require('../chunk-
|
|
34
|
+
require('../chunk-ILJLXJ5O.cjs');
|
|
37
35
|
require('../chunk-OJBZ7UUC.cjs');
|
|
36
|
+
require('../chunk-JR6ZN6QD.cjs');
|
|
37
|
+
require('../chunk-XW3XIK3D.cjs');
|
|
38
38
|
require('../chunk-PW7RP73J.cjs');
|
|
39
39
|
require('../chunk-UEVMS6QD.cjs');
|
|
40
40
|
require('../chunk-OQL4GIEJ.cjs');
|
|
@@ -46,4 +46,4 @@ require('../chunk-75ZPJI57.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.array =
|
|
49
|
+
exports.array = _chunkS5SLR7ILcjs.array_exports; exports.object = _chunkUGT4QBTMcjs.object_exports; exports.string = _chunkOPQR6SKTcjs.string_exports;
|
package/dist/basic/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-ADPANWVU.js";
|
|
2
2
|
import {
|
|
3
3
|
string_exports
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4HDH7W4I.js";
|
|
5
5
|
import "../chunk-VKE5JARB.js";
|
|
6
6
|
import "../chunk-U3PZBQ6G.js";
|
|
7
7
|
import "../chunk-5HC662VK.js";
|
|
@@ -24,17 +24,17 @@ import "../chunk-ZEAT23CI.js";
|
|
|
24
24
|
import "../chunk-3IR2ABRO.js";
|
|
25
25
|
import {
|
|
26
26
|
array_exports
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-EGM54DV6.js";
|
|
28
|
+
import "../chunk-K33LOE73.js";
|
|
28
29
|
import "../chunk-APKFW4LU.js";
|
|
29
30
|
import "../chunk-Q6FMBSK4.js";
|
|
30
31
|
import "../chunk-DBSRZCFK.js";
|
|
31
32
|
import "../chunk-ZVBCHJA5.js";
|
|
32
|
-
import "../chunk-K33LOE73.js";
|
|
33
|
-
import "../chunk-O34QAOO7.js";
|
|
34
|
-
import "../chunk-P7AWHISY.js";
|
|
35
33
|
import "../chunk-USIMBBLW.js";
|
|
36
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-P7AWHISY.js";
|
|
37
35
|
import "../chunk-LPMR5W6M.js";
|
|
36
|
+
import "../chunk-DMZP4RPN.js";
|
|
37
|
+
import "../chunk-O34QAOO7.js";
|
|
38
38
|
import "../chunk-A276ZDLP.js";
|
|
39
39
|
import "../chunk-4OBNLDTJ.js";
|
|
40
40
|
import "../chunk-EWJJKQIO.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-OPQR6SKT.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
|
|
@@ -28,18 +28,18 @@ var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
|
|
|
28
28
|
require('../../chunk-E4WBX6J5.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
|
|
32
|
-
|
|
33
|
-
|
|
34
31
|
var _chunk2H3KVSFAcjs = require('../../chunk-2H3KVSFA.cjs');
|
|
35
32
|
|
|
36
33
|
|
|
37
|
-
var
|
|
34
|
+
var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
|
|
38
35
|
|
|
39
36
|
|
|
40
37
|
var _chunkOJBZ7UUCcjs = require('../../chunk-OJBZ7UUC.cjs');
|
|
41
38
|
|
|
42
39
|
|
|
40
|
+
var _chunkJR6ZN6QDcjs = require('../../chunk-JR6ZN6QD.cjs');
|
|
41
|
+
|
|
42
|
+
|
|
43
43
|
var _chunkPW7RP73Jcjs = require('../../chunk-PW7RP73J.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-4HDH7W4I.js";
|
|
2
2
|
import {
|
|
3
3
|
splitUpper
|
|
4
4
|
} from "../../chunk-VKE5JARB.js";
|
|
@@ -26,18 +26,18 @@ import {
|
|
|
26
26
|
getStartSame
|
|
27
27
|
} from "../../chunk-7DTHADVK.js";
|
|
28
28
|
import "../../chunk-754Z5VW6.js";
|
|
29
|
-
import {
|
|
30
|
-
startsNum
|
|
31
|
-
} from "../../chunk-P7AWHISY.js";
|
|
32
29
|
import {
|
|
33
30
|
getStrNunPosit
|
|
34
31
|
} from "../../chunk-USIMBBLW.js";
|
|
35
32
|
import {
|
|
36
|
-
|
|
37
|
-
} from "../../chunk-
|
|
33
|
+
startsNum
|
|
34
|
+
} from "../../chunk-P7AWHISY.js";
|
|
38
35
|
import {
|
|
39
36
|
appearNum
|
|
40
37
|
} from "../../chunk-LPMR5W6M.js";
|
|
38
|
+
import {
|
|
39
|
+
appearNumSeat
|
|
40
|
+
} from "../../chunk-DMZP4RPN.js";
|
|
41
41
|
import {
|
|
42
42
|
getStartSames
|
|
43
43
|
} from "../../chunk-A276ZDLP.js";
|
|
@@ -0,0 +1,51 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
string_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4HDH7W4I.js";
|
|
4
4
|
import {
|
|
5
5
|
object_exports
|
|
6
6
|
} from "./chunk-IEQHKLEL.js";
|
|
7
7
|
import {
|
|
8
8
|
array_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EGM54DV6.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
htmlEscape
|
|
3
|
-
} from "./chunk-NCSN3MC5.js";
|
|
4
1
|
import {
|
|
5
2
|
analysisHtml
|
|
6
3
|
} from "./chunk-GIAO77MY.js";
|
|
7
4
|
import {
|
|
8
5
|
generateHtmlh
|
|
9
6
|
} from "./chunk-IV7XHH6K.js";
|
|
7
|
+
import {
|
|
8
|
+
getVueText,
|
|
9
|
+
getVueTexts
|
|
10
|
+
} from "./chunk-7PJ2D3KR.js";
|
|
11
|
+
import {
|
|
12
|
+
htmlEscape
|
|
13
|
+
} from "./chunk-NCSN3MC5.js";
|
|
10
14
|
import {
|
|
11
15
|
__export
|
|
12
16
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -16,6 +20,8 @@ var html_exports = {};
|
|
|
16
20
|
__export(html_exports, {
|
|
17
21
|
analysisHtml: () => analysisHtml,
|
|
18
22
|
generateHtmlh: () => generateHtmlh,
|
|
23
|
+
getVueText: () => getVueText,
|
|
24
|
+
getVueTexts: () => getVueTexts,
|
|
19
25
|
htmlEscape: () => htmlEscape
|
|
20
26
|
});
|
|
21
27
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNESVPZNFcjs = require('./chunk-NESVPZNF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3DD7YCN2cjs = require('./chunk-3DD7YCN2.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkCP2ZSRMUcjs = require('./chunk-CP2ZSRMU.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -38,9 +38,9 @@ _chunk75ZPJI57cjs.__export.call(void 0, urls_exports, {
|
|
|
38
38
|
getImportUrl: () => _chunkIRKWYW5Bcjs.getImportUrl,
|
|
39
39
|
getImportUrlSuffix: () => _chunk27WA7EI2cjs.getImportUrlSuffix,
|
|
40
40
|
getNewFileName: () => _chunk43VE3KXLcjs.getNewFileName,
|
|
41
|
-
getReplaceCompleteUrl: () =>
|
|
41
|
+
getReplaceCompleteUrl: () => _chunkNESVPZNFcjs.getReplaceCompleteUrl,
|
|
42
42
|
getReplaceImportUrl: () => _chunkRFUD3TOQcjs.getReplaceImportUrl,
|
|
43
|
-
getReplaceUrl: () =>
|
|
43
|
+
getReplaceUrl: () => _chunk3DD7YCN2cjs.getReplaceUrl,
|
|
44
44
|
getSuffix: () => _chunk6A6EAFGLcjs.getSuffix,
|
|
45
45
|
getUrlCatalogue: () => _chunkCP2ZSRMUcjs.getUrlCatalogue,
|
|
46
46
|
getUrlCatalogueLast: () => _chunk3ERQHPTDcjs.getUrlCatalogueLast,
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getReplaceCompleteUrl
|
|
3
|
+
} from "./chunk-3NBXSBFM.js";
|
|
4
|
+
import {
|
|
5
|
+
getReplaceImportUrl
|
|
6
|
+
} from "./chunk-ZJHRAMCL.js";
|
|
7
|
+
import {
|
|
8
|
+
getReplaceUrl
|
|
9
|
+
} from "./chunk-SE7A43WC.js";
|
|
10
|
+
import {
|
|
11
|
+
getSuffix
|
|
12
|
+
} from "./chunk-UOADEBDH.js";
|
|
1
13
|
import {
|
|
2
14
|
getUrlCatalogue
|
|
3
15
|
} from "./chunk-YWL2IWBT.js";
|
|
@@ -13,21 +25,9 @@ import {
|
|
|
13
25
|
import {
|
|
14
26
|
getNewFileName
|
|
15
27
|
} from "./chunk-YYWENXJO.js";
|
|
16
|
-
import {
|
|
17
|
-
getReplaceCompleteUrl
|
|
18
|
-
} from "./chunk-QS6GY3QV.js";
|
|
19
28
|
import {
|
|
20
29
|
getUrlCatalogueObj
|
|
21
30
|
} from "./chunk-TP5BP64T.js";
|
|
22
|
-
import {
|
|
23
|
-
getReplaceImportUrl
|
|
24
|
-
} from "./chunk-ZJHRAMCL.js";
|
|
25
|
-
import {
|
|
26
|
-
getReplaceUrl
|
|
27
|
-
} from "./chunk-KOLCUFXV.js";
|
|
28
|
-
import {
|
|
29
|
-
getSuffix
|
|
30
|
-
} from "./chunk-UOADEBDH.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOPQR6SKTcjs = require('./chunk-OPQR6SKT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkUGT4QBTMcjs = require('./chunk-UGT4QBTM.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkS5SLR7ILcjs = require('./chunk-S5SLR7IL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
@@ -14,9 +14,9 @@ var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
|
14
14
|
// packages/basic/index.ts
|
|
15
15
|
var basic_exports = {};
|
|
16
16
|
_chunk75ZPJI57cjs.__export.call(void 0, basic_exports, {
|
|
17
|
-
array: () =>
|
|
17
|
+
array: () => _chunkS5SLR7ILcjs.array_exports,
|
|
18
18
|
object: () => _chunkUGT4QBTMcjs.object_exports,
|
|
19
|
-
string: () =>
|
|
19
|
+
string: () => _chunkOPQR6SKTcjs.string_exports
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _chunkEWXBN4VGcjs = require('./chunk-EWXBN4VG.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
var _chunkLEPZYF2Ncjs = require('./chunk-LEPZYF2N.cjs');
|
|
7
4
|
|
|
8
5
|
|
|
9
6
|
var _chunkE2MM4MECcjs = require('./chunk-E2MM4MEC.cjs');
|
|
10
7
|
|
|
11
8
|
|
|
9
|
+
|
|
10
|
+
var _chunk6TBH7RACcjs = require('./chunk-6TBH7RAC.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkEWXBN4VGcjs = require('./chunk-EWXBN4VG.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
12
16
|
var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
|
|
13
17
|
|
|
14
18
|
// packages/html/index.ts
|
|
@@ -16,6 +20,8 @@ var html_exports = {};
|
|
|
16
20
|
_chunk75ZPJI57cjs.__export.call(void 0, html_exports, {
|
|
17
21
|
analysisHtml: () => _chunkLEPZYF2Ncjs.analysisHtml,
|
|
18
22
|
generateHtmlh: () => _chunkE2MM4MECcjs.generateHtmlh,
|
|
23
|
+
getVueText: () => _chunk6TBH7RACcjs.getVueText,
|
|
24
|
+
getVueTexts: () => _chunk6TBH7RACcjs.getVueTexts,
|
|
19
25
|
htmlEscape: () => _chunkEWXBN4VGcjs.htmlEscape
|
|
20
26
|
});
|
|
21
27
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk6TBH7RACcjs = require('../chunk-6TBH7RAC.cjs');
|
|
5
|
+
require('../chunk-75ZPJI57.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.getVueText = _chunk6TBH7RACcjs.getVueText; exports.getVueTexts = _chunk6TBH7RACcjs.getVueTexts;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface VueFileParts {
|
|
2
|
+
template: string;
|
|
3
|
+
scripts: string[];
|
|
4
|
+
styles: string[];
|
|
5
|
+
customBlocks: {
|
|
6
|
+
type: string;
|
|
7
|
+
content: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
declare function getVueText(content: string): VueFileParts;
|
|
11
|
+
declare function getVueTexts(content: string): {
|
|
12
|
+
script: string;
|
|
13
|
+
style: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { getVueText, getVueTexts };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface VueFileParts {
|
|
2
|
+
template: string;
|
|
3
|
+
scripts: string[];
|
|
4
|
+
styles: string[];
|
|
5
|
+
customBlocks: {
|
|
6
|
+
type: string;
|
|
7
|
+
content: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
declare function getVueText(content: string): VueFileParts;
|
|
11
|
+
declare function getVueTexts(content: string): {
|
|
12
|
+
script: string;
|
|
13
|
+
style: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { getVueText, getVueTexts };
|
package/dist/html/index.cjs
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkEWXBN4VGcjs = require('../chunk-EWXBN4VG.cjs');
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-QN6KZWKM.cjs');
|
|
5
2
|
|
|
6
3
|
|
|
7
4
|
var _chunkLEPZYF2Ncjs = require('../chunk-LEPZYF2N.cjs');
|
|
8
5
|
|
|
9
6
|
|
|
10
7
|
var _chunkE2MM4MECcjs = require('../chunk-E2MM4MEC.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk6TBH7RACcjs = require('../chunk-6TBH7RAC.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkEWXBN4VGcjs = require('../chunk-EWXBN4VG.cjs');
|
|
11
15
|
require('../chunk-ISHLY7WM.cjs');
|
|
12
16
|
require('../chunk-TE3XNGF4.cjs');
|
|
13
17
|
require('../chunk-75ZPJI57.cjs');
|
|
@@ -15,4 +19,6 @@ require('../chunk-75ZPJI57.cjs');
|
|
|
15
19
|
|
|
16
20
|
|
|
17
21
|
|
|
18
|
-
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.analysisHtml = _chunkLEPZYF2Ncjs.analysisHtml; exports.generateHtmlh = _chunkE2MM4MECcjs.generateHtmlh; exports.getVueText = _chunk6TBH7RACcjs.getVueText; exports.getVueTexts = _chunk6TBH7RACcjs.getVueTexts; exports.htmlEscape = _chunkEWXBN4VGcjs.htmlEscape;
|
package/dist/html/index.d.cts
CHANGED
package/dist/html/index.d.ts
CHANGED
package/dist/html/index.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import {
|
|
3
|
-
htmlEscape
|
|
4
|
-
} from "../chunk-NCSN3MC5.js";
|
|
1
|
+
import "../chunk-EJZIISBA.js";
|
|
5
2
|
import {
|
|
6
3
|
analysisHtml
|
|
7
4
|
} from "../chunk-GIAO77MY.js";
|
|
8
5
|
import {
|
|
9
6
|
generateHtmlh
|
|
10
7
|
} from "../chunk-IV7XHH6K.js";
|
|
8
|
+
import {
|
|
9
|
+
getVueText,
|
|
10
|
+
getVueTexts
|
|
11
|
+
} from "../chunk-7PJ2D3KR.js";
|
|
12
|
+
import {
|
|
13
|
+
htmlEscape
|
|
14
|
+
} from "../chunk-NCSN3MC5.js";
|
|
11
15
|
import "../chunk-5PX3AFSC.js";
|
|
12
16
|
import "../chunk-N3FZ4WUI.js";
|
|
13
17
|
import "../chunk-MLKGABMK.js";
|
|
14
18
|
export {
|
|
15
19
|
analysisHtml,
|
|
16
20
|
generateHtmlh,
|
|
21
|
+
getVueText,
|
|
22
|
+
getVueTexts,
|
|
17
23
|
htmlEscape
|
|
18
24
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { analysisHtml } from './html/analysisHtml.js';
|
|
2
2
|
import { generateHtmlh } from './html/generateHtml.js';
|
|
3
|
+
import { getVueText, getVueTexts } from './html/getVueText.js';
|
|
3
4
|
import { htmlEscape } from './html/htmlEscape.js';
|
|
4
5
|
|
|
5
6
|
declare const index_analysisHtml: typeof analysisHtml;
|
|
6
7
|
declare const index_generateHtmlh: typeof generateHtmlh;
|
|
8
|
+
declare const index_getVueText: typeof getVueText;
|
|
9
|
+
declare const index_getVueTexts: typeof getVueTexts;
|
|
7
10
|
declare const index_htmlEscape: typeof htmlEscape;
|
|
8
11
|
declare namespace index {
|
|
9
|
-
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_htmlEscape as htmlEscape };
|
|
12
|
+
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_getVueText as getVueText, index_getVueTexts as getVueTexts, index_htmlEscape as htmlEscape };
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
export { index as i };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { analysisHtml } from './html/analysisHtml.cjs';
|
|
2
2
|
import { generateHtmlh } from './html/generateHtml.cjs';
|
|
3
|
+
import { getVueText, getVueTexts } from './html/getVueText.cjs';
|
|
3
4
|
import { htmlEscape } from './html/htmlEscape.cjs';
|
|
4
5
|
|
|
5
6
|
declare const index_analysisHtml: typeof analysisHtml;
|
|
6
7
|
declare const index_generateHtmlh: typeof generateHtmlh;
|
|
8
|
+
declare const index_getVueText: typeof getVueText;
|
|
9
|
+
declare const index_getVueTexts: typeof getVueTexts;
|
|
7
10
|
declare const index_htmlEscape: typeof htmlEscape;
|
|
8
11
|
declare namespace index {
|
|
9
|
-
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_htmlEscape as htmlEscape };
|
|
12
|
+
export { index_analysisHtml as analysisHtml, index_generateHtmlh as generateHtmlh, index_getVueText as getVueText, index_getVueTexts as getVueTexts, index_htmlEscape as htmlEscape };
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
export { index as i };
|