@open-wa/wa-automate 4.37.0 → 4.37.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -689,8 +689,8 @@ class Client {
689
689
  onMessage(fn, queueOptions) {
690
690
  var _a;
691
691
  return __awaiter(this, void 0, void 0, function* () {
692
- // const _fn = async (message : Message) => fn(await this.preprocessMessage(message))
693
- return this.registerListener(events_2.SimpleListener.Message, fn, ((_a = this === null || this === void 0 ? void 0 : this._createConfig) === null || _a === void 0 ? void 0 : _a.pQueueDefault) || queueOptions);
692
+ const _fn = (message) => __awaiter(this, void 0, void 0, function* () { return fn(yield this.preprocessMessage(message)); });
693
+ return this.registerListener(events_2.SimpleListener.Message, _fn, ((_a = this === null || this === void 0 ? void 0 : this._createConfig) === null || _a === void 0 ? void 0 : _a.pQueueDefault) || queueOptions);
694
694
  });
695
695
  }
696
696
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.37.0",
3
+ "version": "4.37.1",
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",