@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 +2 -2
- package/dist/StreamManager.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.22.
|
|
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
|
|
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))
|
package/dist/StreamManager.js
CHANGED
|
@@ -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, {
|