@weapp-vite/miniprogram-automator 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -581,7 +581,7 @@ async function launchHeadlessAutomator(options) {
581
581
  }
582
582
  //#endregion
583
583
  //#region package.json
584
- var version = "1.0.4";
584
+ var version = "1.0.5";
585
585
  //#endregion
586
586
  //#region src/Native.ts
587
587
  /** Native 的实现。 */
@@ -953,7 +953,7 @@ var MiniProgram = class extends EventEmitter {
953
953
  this.connection.dispose();
954
954
  }
955
955
  on(event, listener) {
956
- if (event === "console") this.send("App.enableLog");
956
+ if (event === "console") this.send("App.enableLog").catch(() => {});
957
957
  super.on(event, listener);
958
958
  return this;
959
959
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-vite/miniprogram-automator",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "完全兼容微信 miniprogram-automator 的现代化替代实现",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",