@weapp-vite/miniprogram-automator 1.2.4 → 1.2.6
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/index.d.mts +80 -15
- package/dist/index.mjs +966 -79
- package/dist/{launch-2X75zDRY.mjs → launch-mRKloPOa.mjs} +26 -26
- package/package.json +2 -2
|
@@ -437,7 +437,7 @@ function createPageInstance(route, definition, options = {}, pageState = {}) {
|
|
|
437
437
|
}
|
|
438
438
|
//#endregion
|
|
439
439
|
//#region ../../node_modules/.pnpm/entities@8.0.0/node_modules/entities/dist/decode-codepoint.js
|
|
440
|
-
const decodeMap = new Map([
|
|
440
|
+
const decodeMap = /* @__PURE__ */ new Map([
|
|
441
441
|
[0, 65533],
|
|
442
442
|
[128, 8364],
|
|
443
443
|
[130, 8218],
|
|
@@ -952,7 +952,7 @@ var QuoteType;
|
|
|
952
952
|
* sequences with an increased offset.
|
|
953
953
|
*/
|
|
954
954
|
const Sequences = {
|
|
955
|
-
Empty: new Uint8Array(0),
|
|
955
|
+
Empty: /* @__PURE__ */ new Uint8Array(0),
|
|
956
956
|
Cdata: new Uint8Array([
|
|
957
957
|
67,
|
|
958
958
|
68,
|
|
@@ -1081,7 +1081,7 @@ const Sequences = {
|
|
|
1081
1081
|
* where index 2 is the first tag-name character, so matching always
|
|
1082
1082
|
* continues from offset 3.
|
|
1083
1083
|
*/
|
|
1084
|
-
const specialStartSequences = new Map([
|
|
1084
|
+
const specialStartSequences = /* @__PURE__ */ new Map([
|
|
1085
1085
|
[Sequences.IframeEnd[2], Sequences.IframeEnd],
|
|
1086
1086
|
[Sequences.NoembedEnd[2], Sequences.NoembedEnd],
|
|
1087
1087
|
[Sequences.Plaintext[2], Sequences.Plaintext],
|
|
@@ -1773,7 +1773,7 @@ var Tokenizer = class {
|
|
|
1773
1773
|
//#endregion
|
|
1774
1774
|
//#region ../../node_modules/.pnpm/htmlparser2@12.0.0/node_modules/htmlparser2/dist/Parser.js
|
|
1775
1775
|
const { fromCodePoint } = String;
|
|
1776
|
-
const formTags = new Set([
|
|
1776
|
+
const formTags = /* @__PURE__ */ new Set([
|
|
1777
1777
|
"input",
|
|
1778
1778
|
"option",
|
|
1779
1779
|
"optgroup",
|
|
@@ -1782,8 +1782,8 @@ const formTags = new Set([
|
|
|
1782
1782
|
"datalist",
|
|
1783
1783
|
"textarea"
|
|
1784
1784
|
]);
|
|
1785
|
-
const pTag = new Set(["p"]);
|
|
1786
|
-
const headingTags = new Set([
|
|
1785
|
+
const pTag = /* @__PURE__ */ new Set(["p"]);
|
|
1786
|
+
const headingTags = /* @__PURE__ */ new Set([
|
|
1787
1787
|
"h1",
|
|
1788
1788
|
"h2",
|
|
1789
1789
|
"h3",
|
|
@@ -1792,28 +1792,28 @@ const headingTags = new Set([
|
|
|
1792
1792
|
"h6",
|
|
1793
1793
|
"p"
|
|
1794
1794
|
]);
|
|
1795
|
-
const tableSectionTags = new Set(["thead", "tbody"]);
|
|
1796
|
-
const ddtTags = new Set(["dd", "dt"]);
|
|
1797
|
-
const rtpTags = new Set(["rt", "rp"]);
|
|
1798
|
-
const openImpliesClose = new Map([
|
|
1799
|
-
["tr", new Set([
|
|
1795
|
+
const tableSectionTags = /* @__PURE__ */ new Set(["thead", "tbody"]);
|
|
1796
|
+
const ddtTags = /* @__PURE__ */ new Set(["dd", "dt"]);
|
|
1797
|
+
const rtpTags = /* @__PURE__ */ new Set(["rt", "rp"]);
|
|
1798
|
+
const openImpliesClose = /* @__PURE__ */ new Map([
|
|
1799
|
+
["tr", /* @__PURE__ */ new Set([
|
|
1800
1800
|
"tr",
|
|
1801
1801
|
"th",
|
|
1802
1802
|
"td"
|
|
1803
1803
|
])],
|
|
1804
|
-
["th", new Set(["th"])],
|
|
1805
|
-
["td", new Set([
|
|
1804
|
+
["th", /* @__PURE__ */ new Set(["th"])],
|
|
1805
|
+
["td", /* @__PURE__ */ new Set([
|
|
1806
1806
|
"thead",
|
|
1807
1807
|
"th",
|
|
1808
1808
|
"td"
|
|
1809
1809
|
])],
|
|
1810
|
-
["body", new Set([
|
|
1810
|
+
["body", /* @__PURE__ */ new Set([
|
|
1811
1811
|
"head",
|
|
1812
1812
|
"link",
|
|
1813
1813
|
"script"
|
|
1814
1814
|
])],
|
|
1815
|
-
["a", new Set(["a"])],
|
|
1816
|
-
["li", new Set(["li"])],
|
|
1815
|
+
["a", /* @__PURE__ */ new Set(["a"])],
|
|
1816
|
+
["li", /* @__PURE__ */ new Set(["li"])],
|
|
1817
1817
|
["p", pTag],
|
|
1818
1818
|
["h1", headingTags],
|
|
1819
1819
|
["h2", headingTags],
|
|
@@ -1827,8 +1827,8 @@ const openImpliesClose = new Map([
|
|
|
1827
1827
|
["button", formTags],
|
|
1828
1828
|
["datalist", formTags],
|
|
1829
1829
|
["textarea", formTags],
|
|
1830
|
-
["option", new Set(["option"])],
|
|
1831
|
-
["optgroup", new Set(["optgroup", "option"])],
|
|
1830
|
+
["option", /* @__PURE__ */ new Set(["option"])],
|
|
1831
|
+
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
1832
1832
|
["dd", ddtTags],
|
|
1833
1833
|
["dt", ddtTags],
|
|
1834
1834
|
["address", pTag],
|
|
@@ -1858,7 +1858,7 @@ const openImpliesClose = new Map([
|
|
|
1858
1858
|
["tfoot", tableSectionTags]
|
|
1859
1859
|
]);
|
|
1860
1860
|
const DOCUMENT_TYPE = "doctype";
|
|
1861
|
-
const voidElements = new Set([
|
|
1861
|
+
const voidElements = /* @__PURE__ */ new Set([
|
|
1862
1862
|
"area",
|
|
1863
1863
|
"base",
|
|
1864
1864
|
"basefont",
|
|
@@ -1879,14 +1879,14 @@ const voidElements = new Set([
|
|
|
1879
1879
|
"track",
|
|
1880
1880
|
"wbr"
|
|
1881
1881
|
]);
|
|
1882
|
-
const foreignContextElements = new Set(["math", "svg"]);
|
|
1882
|
+
const foreignContextElements = /* @__PURE__ */ new Set(["math", "svg"]);
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Elements that can be used to integrate HTML content within foreign namespaces (e.g., SVG or MathML).
|
|
1885
1885
|
*
|
|
1886
1886
|
* Entries must use the SVG-adjusted casing (e.g. "foreignObject" not
|
|
1887
1887
|
* "foreignobject") since they are compared against adjusted tag names.
|
|
1888
1888
|
*/
|
|
1889
|
-
const htmlIntegrationElements = new Set([
|
|
1889
|
+
const htmlIntegrationElements = /* @__PURE__ */ new Set([
|
|
1890
1890
|
"mi",
|
|
1891
1891
|
"mo",
|
|
1892
1892
|
"mn",
|
|
@@ -1897,7 +1897,7 @@ const htmlIntegrationElements = new Set([
|
|
|
1897
1897
|
"desc",
|
|
1898
1898
|
"title"
|
|
1899
1899
|
]);
|
|
1900
|
-
const svgTagNameAdjustments = new Map([
|
|
1900
|
+
const svgTagNameAdjustments = /* @__PURE__ */ new Map([
|
|
1901
1901
|
["altglyph", "altGlyph"],
|
|
1902
1902
|
["altglyphdef", "altGlyphDef"],
|
|
1903
1903
|
["altglyphitem", "altGlyphItem"],
|
|
@@ -2865,7 +2865,7 @@ const STRUCTURAL_ATTRS = [
|
|
|
2865
2865
|
"wx:for-index",
|
|
2866
2866
|
"wx:key"
|
|
2867
2867
|
];
|
|
2868
|
-
const WX_ELSE_ATTRS = new Set(["wx:elif", "wx:else"]);
|
|
2868
|
+
const WX_ELSE_ATTRS = /* @__PURE__ */ new Set(["wx:elif", "wx:else"]);
|
|
2869
2869
|
const CLASS_SPLIT_RE = /\s+/;
|
|
2870
2870
|
const JS_FILE_RE = /\.js$/;
|
|
2871
2871
|
function isMustacheOnly(value) {
|
|
@@ -5262,7 +5262,7 @@ const SAVED_FILE_PREFIXES = ["headless://saved/", "headless://wxfile/saved/"];
|
|
|
5262
5262
|
const textEncoder = new TextEncoder();
|
|
5263
5263
|
const IMAGE_EXTENSION_RE = /\.([^.?#/]+)(?:[?#].*)?$/;
|
|
5264
5264
|
const LEADING_DOT_RE = /^\.+/;
|
|
5265
|
-
const IMAGE_FILE_EXTENSIONS = new Set([
|
|
5265
|
+
const IMAGE_FILE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
5266
5266
|
"bmp",
|
|
5267
5267
|
"gif",
|
|
5268
5268
|
"heic",
|
|
@@ -5271,7 +5271,7 @@ const IMAGE_FILE_EXTENSIONS = new Set([
|
|
|
5271
5271
|
"png",
|
|
5272
5272
|
"webp"
|
|
5273
5273
|
]);
|
|
5274
|
-
const VIDEO_FILE_EXTENSIONS = new Set([
|
|
5274
|
+
const VIDEO_FILE_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
5275
5275
|
"avi",
|
|
5276
5276
|
"m4v",
|
|
5277
5277
|
"mov",
|
|
@@ -7547,7 +7547,7 @@ var HeadlessSession = class {
|
|
|
7547
7547
|
};
|
|
7548
7548
|
}
|
|
7549
7549
|
unloadAllPages() {
|
|
7550
|
-
const pagesToUnload = new Set([...this.pages, ...this.tabPages.values()]);
|
|
7550
|
+
const pagesToUnload = /* @__PURE__ */ new Set([...this.pages, ...this.tabPages.values()]);
|
|
7551
7551
|
for (const page of [...pagesToUnload].reverse()) this.unloadPage(page);
|
|
7552
7552
|
this.pages.length = 0;
|
|
7553
7553
|
this.tabPages.clear();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/miniprogram-automator",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"description": "完全兼容微信 miniprogram-automator 的现代化替代实现",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/ws": "^8.18.1",
|
|
54
|
-
"sharp": "^0.35.
|
|
54
|
+
"sharp": "^0.35.3"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "tsdown -w --sourcemap",
|