@nestjs-plugins/nestjs-nats-jetstream-transport
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -29,2 +29,3 @@ "use strict"; | ||
this.nc = await (0, nats_1.connect)(this.options.connectionOptions); | ||
this.options.connectionOptions.connectedHook(this.nc); | ||
} | ||
@@ -31,0 +32,0 @@ return this.nc; |
@@ -1,4 +0,5 @@ | ||
import { ConnectionOptions } from "nats"; | ||
import { ConnectionOptions, NatsConnection } from "nats"; | ||
export interface NatsConnectionOptions extends ConnectionOptions { | ||
name: string; | ||
connectedHook?: (nc: NatsConnection) => void; | ||
} |
@@ -25,2 +25,3 @@ "use strict"; | ||
this.nc = await (0, nats_1.connect)(this.options.connectionOptions); | ||
this.options.connectionOptions.connectedHook(this.nc); | ||
} | ||
@@ -27,0 +28,0 @@ this.jsm = await this.nc.jetstreamManager(this.options.jetStreamOptions); |
{ | ||
"name": "@nestjs-plugins/nestjs-nats-jetstream-transport", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Nats JetStream Transport for NestJS", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@nestjs-plugins/nestjs-nats-jetstream-transport": "^1.3.2", | ||
"@nestjs-plugins/nestjs-nats-jetstream-transport": "^1.3.3", | ||
"nats": "^2.6.1", | ||
@@ -46,3 +46,3 @@ "reflect-metadata": "^0.1.13", | ||
}, | ||
"gitHead": "7402f6ed313571e6aa3249a4b8b2dfbf73855c36" | ||
"gitHead": "66ad3e341a4b636ffea7d825898a83ea2475ca13" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148254
481