@open-wa/wa-automate 4.30.7 → 4.30.8

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/cli/server.js +10 -2
  2. package/package.json +3 -3
@@ -365,8 +365,16 @@ const setupSocketServer = (cliConfig, client) => __awaiter(void 0, void 0, void
365
365
  args = (0, parse_function_1.default)().parse(client[m]).args.map(argName => args[argName]);
366
366
  else if (!args)
367
367
  args = [];
368
- const data = yield client[m](...args);
369
- callbacks[0](data);
368
+ try {
369
+ const data = yield client[m](...args);
370
+ callbacks[0](data);
371
+ }
372
+ catch (error) {
373
+ callbacks[0]({ error: {
374
+ message: error.message,
375
+ stack: error.stack || ""
376
+ } });
377
+ }
370
378
  }
371
379
  }
372
380
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.30.7",
3
+ "version": "4.30.8",
4
4
  "licenseCheckUrl": "https://openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",
@@ -84,7 +84,6 @@
84
84
  "auto-changelog": "^2.0.0",
85
85
  "ava": "^3.13.0",
86
86
  "changelog-parser": "^2.8.0",
87
- "typeconv": "^1.7.0",
88
87
  "command-line-args": "^5.1.1",
89
88
  "eslint": "^8.1.0",
90
89
  "husky": "^7.0.0",
@@ -96,9 +95,10 @@
96
95
  "prettier": "^2.0.1",
97
96
  "release-it": "^14.0.3",
98
97
  "shelljs": "^0.8.3",
98
+ "tiny-glob": "^0.2.9",
99
99
  "ts-node": "^10.0.0",
100
100
  "tsc-watch": "^4.0.0",
101
- "tiny-glob": "^0.2.9",
101
+ "typeconv": "^1.7.0",
102
102
  "typedoc": "^0.21.6",
103
103
  "typedoc-plugin-pages": "^1.0.1",
104
104
  "typescript": "^4.2.4"