@lad-tech/nsc-toolkit 1.22.5 → 1.22.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.
- package/CHANGELOG.md +2 -2
- package/dist/Service.js +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.22.
|
|
1
|
+
## [1.22.6](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.5...v1.22.6) (2024-09-13)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* Method sequential execution ([#126](https://github.com/lad-tech/nsc-toolkit/issues/126)) ([7f94aa3](https://github.com/lad-tech/nsc-toolkit/commit/7f94aa3b1c3ab5d786bb55b95cb5dd58d016750b))
|
package/dist/Service.js
CHANGED
|
@@ -393,13 +393,13 @@ class Service extends Root_1.Root {
|
|
|
393
393
|
this.subscriptions.push(subscription);
|
|
394
394
|
for await (const message of subscription) {
|
|
395
395
|
const { payload, baggage } = (0, nats_1.JSONCodec)().decode(message.data);
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
this.handled(payload, Method, baggage)
|
|
397
|
+
.then(result => {
|
|
398
398
|
message.respond(this.buildMessage(result));
|
|
399
|
-
}
|
|
400
|
-
|
|
399
|
+
})
|
|
400
|
+
.catch(error => {
|
|
401
401
|
message.respond(this.buildMessage({ error: error.message }));
|
|
402
|
-
}
|
|
402
|
+
});
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
if (this.httpMethods.size > 0) {
|