@weapp-vite/miniprogram-automator 1.2.11 → 1.2.13

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-BFWwqoyn.mjs")).launch({ projectPath: options.projectPath });
643
+ return await (await import("./launch-yIGimB0F.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.11";
742
+ var version = "1.2.13";
743
743
  //#endregion
744
744
  //#region src/Native.ts
745
745
  /** Native 的实现。 */
@@ -2142,6 +2142,7 @@ var MiniProgram = class extends EventEmitter {
2142
2142
  const toolInfo = await this.send("Tool.getInfo");
2143
2143
  this.connection.configureToolInfo(toolInfo);
2144
2144
  const sdkVersion = toolInfo.SDKVersion;
2145
+ if (typeof sdkVersion !== "string" || !sdkVersion.trim()) return;
2145
2146
  if (sdkVersion !== "dev" && cmpVersion(sdkVersion, "2.7.3") < 0) throw new Error(`SDKVersion is currently ${sdkVersion}, while automator(${version}) requires at least version 2.7.3`);
2146
2147
  }
2147
2148
  /**