@open-wa/wa-automate 4.71.10 → 4.71.11

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.
@@ -3595,7 +3595,7 @@ class Client {
3595
3595
  });
3596
3596
  }
3597
3597
  stickerServerRequest(func, a = {}, fallback = false) {
3598
- var _a, _b, _c, _d;
3598
+ var _a, _b, _c, _d, _e;
3599
3599
  return __awaiter(this, void 0, void 0, function* () {
3600
3600
  if (!this._createConfig.stickerServerEndpoint)
3601
3601
  return false;
@@ -3624,7 +3624,7 @@ class Client {
3624
3624
  a.stickerMetadata = Object.assign(Object.assign({}, (a.stickerMetadata || {})), { discord: `${((_b = a.stickerMetadata) === null || _b === void 0 ? void 0 : _b.discord) || this._createConfig.discord}` });
3625
3625
  }
3626
3626
  try {
3627
- const { data } = yield axios_1.default.post(`${((fallback ? pkg.stickerUrl : 'https://sticker-api.openwa.dev') || this._createConfig.stickerServerEndpoint).replace(/\/$/, '')}/${func}`, Object.assign(Object.assign({}, a), { sessionInfo, config: this.getConfig() }), {
3627
+ const { data } = yield axios_1.default.post(`${(((_c = this._createConfig) === null || _c === void 0 ? void 0 : _c.stickerServerEndpoint) || (fallback ? pkg.stickerUrl : 'https://sticker-api.openwa.dev')).replace(/\/$/, '')}/${func}`, Object.assign(Object.assign({}, a), { sessionInfo, config: this.getConfig() }), {
3628
3628
  maxBodyLength: 20000000,
3629
3629
  maxContentLength: 1500000 // 1.5mb response body limit
3630
3630
  });
@@ -3637,7 +3637,7 @@ class Client {
3637
3637
  else if (!fallback) {
3638
3638
  return yield this.stickerServerRequest(func, a, true);
3639
3639
  }
3640
- console.error((_c = err === null || err === void 0 ? void 0 : err.response) === null || _c === void 0 ? void 0 : _c.status, (_d = err === null || err === void 0 ? void 0 : err.response) === null || _d === void 0 ? void 0 : _d.data);
3640
+ console.error((_d = err === null || err === void 0 ? void 0 : err.response) === null || _d === void 0 ? void 0 : _d.status, (_e = err === null || err === void 0 ? void 0 : err.response) === null || _e === void 0 ? void 0 : _e.data);
3641
3641
  throw err;
3642
3642
  return false;
3643
3643
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.71.10",
3
+ "version": "4.71.11",
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",