@lad-tech/nsc-toolkit 1.22.2 → 1.22.3

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.2](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.1...v1.22.2) (2024-08-16)
1
+ ## [1.22.3](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.2...v1.22.3) (2024-08-19)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * Fix monolite mode ([#117](https://github.com/lad-tech/nsc-toolkit/issues/117)) ([202f34d](https://github.com/lad-tech/nsc-toolkit/commit/202f34d3fc2f836349546005388217b5da09d634))
6
+ * Fix consumer filter erasing ([#119](https://github.com/lad-tech/nsc-toolkit/issues/119)) ([17c7823](https://github.com/lad-tech/nsc-toolkit/commit/17c782364dc7d2b50883e406b234f55a397a0700))
@@ -105,7 +105,7 @@ class StreamManager extends Root_1.Root {
105
105
  throw new Error(`Error creating consumer ${consumerName}. Stream for subject ${subject} not found`);
106
106
  }
107
107
  if ((0, types_1.isConsumerOptsBuilder)(options)) {
108
- await this.jsm.consumers.add(streamName, options.config);
108
+ await this.jsm.consumers.add(streamName, { ...options.config, filter_subject: subject });
109
109
  }
110
110
  return isPullConsumer
111
111
  ? new StreamFetcher_1.StreamFetcher(this.broker.jetstream(), streamName, consumerName, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "1.22.2",
3
+ "version": "1.22.3",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",