@weapp-vite/miniprogram-automator 1.2.9 → 1.2.10
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.mjs
CHANGED
|
@@ -640,7 +640,7 @@ var Connection = class Connection extends EventEmitter {
|
|
|
640
640
|
//#endregion
|
|
641
641
|
//#region src/headless.ts
|
|
642
642
|
async function launchHeadlessAutomator(options) {
|
|
643
|
-
return await (await import("./launch-
|
|
643
|
+
return await (await import("./launch-BRRvdL_K.mjs")).launch({ projectPath: options.projectPath });
|
|
644
644
|
}
|
|
645
645
|
//#endregion
|
|
646
646
|
//#region src/launcher/portLease.ts
|
|
@@ -739,7 +739,7 @@ async function acquireAutomatorPortLease(preferredPort) {
|
|
|
739
739
|
}
|
|
740
740
|
//#endregion
|
|
741
741
|
//#region package.json
|
|
742
|
-
var version = "1.2.
|
|
742
|
+
var version = "1.2.10";
|
|
743
743
|
//#endregion
|
|
744
744
|
//#region src/Native.ts
|
|
745
745
|
/** Native 的实现。 */
|
|
@@ -1828,9 +1828,7 @@ var Tokenizer$1 = class {
|
|
|
1828
1828
|
case State$1.InProcessingInstruction:
|
|
1829
1829
|
this.stateInProcessingInstruction(c);
|
|
1830
1830
|
break;
|
|
1831
|
-
case State$1.InEntity:
|
|
1832
|
-
this.stateInEntity();
|
|
1833
|
-
break;
|
|
1831
|
+
case State$1.InEntity: this.stateInEntity();
|
|
1834
1832
|
}
|
|
1835
1833
|
this.index++;
|
|
1836
1834
|
}
|
|
@@ -3561,12 +3559,10 @@ const estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
3561
3559
|
node.exported = node.specifiers[0].exported;
|
|
3562
3560
|
delete node.specifiers;
|
|
3563
3561
|
}
|
|
3564
|
-
case "ExportDefaultDeclaration":
|
|
3565
|
-
{
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
}
|
|
3569
|
-
break;
|
|
3562
|
+
case "ExportDefaultDeclaration": {
|
|
3563
|
+
const { declaration } = node;
|
|
3564
|
+
if (declaration?.type === "ClassDeclaration" && declaration.decorators?.length > 0 && declaration.start === node.start) this.resetStartLocation(node, exportStartLoc);
|
|
3565
|
+
}
|
|
3570
3566
|
}
|
|
3571
3567
|
return node;
|
|
3572
3568
|
}
|
|
@@ -8830,9 +8826,7 @@ var LValParser = class extends NodeUtils {
|
|
|
8830
8826
|
if (node.left.type === "VoidPattern") this.raise(Errors.VoidPatternInitializer, node.left);
|
|
8831
8827
|
this.toAssignable(node.left, isLHS);
|
|
8832
8828
|
break;
|
|
8833
|
-
case "ParenthesizedExpression":
|
|
8834
|
-
this.toAssignable(parenthesized, isLHS);
|
|
8835
|
-
break;
|
|
8829
|
+
case "ParenthesizedExpression": this.toAssignable(parenthesized, isLHS);
|
|
8836
8830
|
}
|
|
8837
8831
|
}
|
|
8838
8832
|
toAssignableObjectExpressionProp(prop, isLast, isLHS) {
|
|
@@ -12873,9 +12867,7 @@ const typescript = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
12873
12867
|
return this.tsParseNamespaceDeclaration(node);
|
|
12874
12868
|
}
|
|
12875
12869
|
break;
|
|
12876
|
-
case 126:
|
|
12877
|
-
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) return this.tsParseTypeAliasDeclaration(node);
|
|
12878
|
-
break;
|
|
12870
|
+
case 126: if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) return this.tsParseTypeAliasDeclaration(node);
|
|
12879
12871
|
}
|
|
12880
12872
|
}
|
|
12881
12873
|
tsCheckLineTerminator(next) {
|
|
@@ -13262,14 +13254,12 @@ const typescript = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
13262
13254
|
return this.tsParseDeclaration(node, 124, false, decorators);
|
|
13263
13255
|
}
|
|
13264
13256
|
break;
|
|
13265
|
-
case 126:
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
}
|
|
13272
|
-
break;
|
|
13257
|
+
case 126: if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
13258
|
+
const node = this.startNode();
|
|
13259
|
+
if (!allowDeclaration) this.raise(TSErrors.UnexpectedTypeDeclaration, node, "type");
|
|
13260
|
+
this.next();
|
|
13261
|
+
return this.tsParseTypeAliasDeclaration(node);
|
|
13262
|
+
}
|
|
13273
13263
|
}
|
|
13274
13264
|
return super.parseStatementContent(flags, decorators);
|
|
13275
13265
|
}
|
|
@@ -17292,7 +17282,7 @@ function deriveMenuButtonBoundingClientRect(systemInfo) {
|
|
|
17292
17282
|
}
|
|
17293
17283
|
//#endregion
|
|
17294
17284
|
//#region ../../mpcore/packages/simulator/src/runtime/wxState.ts
|
|
17295
|
-
const STORAGE_LIMIT_SIZE =
|
|
17285
|
+
const STORAGE_LIMIT_SIZE = 10240;
|
|
17296
17286
|
const DEFAULT_MODAL_CANCEL_COLOR = "#000000";
|
|
17297
17287
|
const DEFAULT_MODAL_CANCEL_TEXT = "取消";
|
|
17298
17288
|
const DEFAULT_MODAL_CONFIRM_COLOR = "#576B95";
|
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.10",
|
|
5
5
|
"description": "完全兼容微信 miniprogram-automator 的现代化替代实现",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"obug": "^2.1.4",
|
|
45
|
-
"ws": "^8.21.
|
|
45
|
+
"ws": "^8.21.2",
|
|
46
46
|
"@weapp-vite/qr": "1.1.1"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|