@lad-tech/nsc-toolkit 1.22.6 → 1.23.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [1.22.6](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.5...v1.22.6) (2024-09-13)
1
+ ## [1.23.1](https://github.com/lad-tech/nsc-toolkit/compare/v1.23.0...v1.23.1) (2024-11-07)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * Method sequential execution ([#126](https://github.com/lad-tech/nsc-toolkit/issues/126)) ([7f94aa3](https://github.com/lad-tech/nsc-toolkit/commit/7f94aa3b1c3ab5d786bb55b95cb5dd58d016750b))
6
+ * Grow subscriptions ([#129](https://github.com/lad-tech/nsc-toolkit/issues/129)) ([dd1945f](https://github.com/lad-tech/nsc-toolkit/commit/dd1945f9216840efd15db80dae915fa6eb22df1c))
package/dist/Client.js CHANGED
@@ -56,7 +56,9 @@ class Client extends Root_1.Root {
56
56
  message.nak = event.nak.bind(event);
57
57
  batch.push(message);
58
58
  }
59
- listener.emit(eventName, batch);
59
+ if (batch.length > 0)
60
+ listener.emit(eventName, batch);
61
+ events.stop();
60
62
  }
61
63
  }
62
64
  getListener(serviceNameFrom, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "1.22.6",
3
+ "version": "1.23.1",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",