@open-wa/wa-automate 4.31.5 → 4.31.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.
@@ -3395,7 +3395,7 @@ class Client {
3395
3395
  const t = ((0, tools_1.now)() - whStart).toFixed(0);
3396
3396
  logging_1.log.info("Client Webhook", event, status, t);
3397
3397
  })
3398
- .catch(err => logging_1.log.error(`WEBHOOK ERROR: `, url, err.message));
3398
+ .catch(err => logging_1.log.error(`CLIENT WEBHOOK ERROR: `, url, err.message));
3399
3399
  }));
3400
3400
  }));
3401
3401
  }), 10000);
package/dist/cli/index.js CHANGED
@@ -34,7 +34,7 @@ const ready = (config) => __awaiter(void 0, void 0, void 0, function* () {
34
34
  sessionId: config.sessionId,
35
35
  namespace: "READY"
36
36
  }
37
- }).catch(err => index_1.log.error(`WEBHOOK ERROR: ${config.readyWebhook} ${err.message}`));
37
+ }).catch(err => index_1.log.error(`READY WEBHOOK ERROR: ${config.readyWebhook} ${err.message}`));
38
38
  });
39
39
  function start() {
40
40
  return __awaiter(this, void 0, void 0, function* () {
@@ -93,7 +93,7 @@ function start() {
93
93
  }).then(({ status }) => {
94
94
  const t = ((0, index_1.now)() - whStart).toFixed(0);
95
95
  index_1.log.info("EV Webhook", namespace, status, t);
96
- }).catch(err => index_1.log.error(`WEBHOOK ERROR: ${cliConfig.ev} ${err.message}`));
96
+ }).catch(err => index_1.log.error(`EV WEBHOOK ERROR: ${cliConfig.ev} ${err.message}`));
97
97
  }));
98
98
  }
99
99
  //These things can be done before the client is created
@@ -147,7 +147,7 @@ function getLicense(config, me, debugInfo, spinner) {
147
147
  const hasSpin = !!spinner;
148
148
  if (!spinner)
149
149
  spinner = new events_1.Spin(config.sessionId || "session", "FETCH_LICENSE", config.disableSpins, true);
150
- spinner === null || spinner === void 0 ? void 0 : spinner.start(`Fetching License: ${Array.isArray(config.licenseKey) ? config.licenseKey : config.licenseKey.indexOf("-") == -1 ? config.licenseKey.slice(-4) : config.licenseKey.split("-").slice(-1)[0]}`, hasSpin ? undefined : 2);
150
+ spinner === null || spinner === void 0 ? void 0 : spinner.start(`Fetching License: ${Array.isArray(config.licenseKey) ? config.licenseKey : typeof config.licenseKey === "string" ? config.licenseKey.indexOf("-") == -1 ? config.licenseKey.slice(-4) : config.licenseKey.split("-").slice(-1)[0] : config.licenseKey}`, hasSpin ? undefined : 2);
151
151
  try {
152
152
  const START = Date.now();
153
153
  const { data } = yield axios_1.default.post(initializer_1.pkg.licenseCheckUrl, Object.assign({ key: config.licenseKey, number: me._serialized }, debugInfo));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.31.5",
3
+ "version": "4.31.6",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",