@open-wa/wa-automate 4.37.0 → 4.37.1
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.
- package/dist/api/Client.js +2 -2
- package/package.json +1 -1
package/dist/api/Client.js
CHANGED
|
@@ -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
|
-
|
|
693
|
-
return this.registerListener(events_2.SimpleListener.Message,
|
|
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