@lad-tech/nsc-toolkit 1.22.3 → 1.22.4

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.3](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.2...v1.22.3) (2024-08-19)
1
+ ## [1.22.4](https://github.com/lad-tech/nsc-toolkit/compare/v1.22.3...v1.22.4) (2024-09-05)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
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))
6
+ * Drop error if failed subscribe to subject ([#122](https://github.com/lad-tech/nsc-toolkit/issues/122)) ([edc4580](https://github.com/lad-tech/nsc-toolkit/commit/edc4580df2b3ae4e12b530d822e6cb60ce89ca1d))
package/dist/Client.js CHANGED
@@ -99,7 +99,9 @@ class Client extends Root_1.Root {
99
99
  return method.call(target, eventName, handler);
100
100
  }
101
101
  catch (error) {
102
- this.logger.error(`Failed subscribe to subject`, error);
102
+ const errorMessage = 'Failed subscribe to subject';
103
+ this.logger.error(errorMessage, error);
104
+ throw new Error(`${errorMessage} ${this.serviceName}.${String(eventName)}`);
103
105
  }
104
106
  };
105
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "1.22.3",
3
+ "version": "1.22.4",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",