@adhityan/gc-nats
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -32,6 +32,8 @@ "use strict"; | ||
if (!clientID) { | ||
debug('No clientId provided; auto creating client ID (Explicit client ID > Durable name > Channel name)'); | ||
if (durability === null || durability === void 0 ? void 0 : durability.enabled) | ||
clientID = channel; | ||
clientID = durability.durableName || channel; | ||
else | ||
clientID = uuid_1.v4(); | ||
debug(`auto set clientId to ${clientID}`); | ||
} | ||
@@ -38,0 +40,0 @@ debug('client id being used', clientID); |
{ | ||
"name": "@adhityan/gc-nats", | ||
"description": "Typescript Node.js client for NATS streaming server", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -21,4 +21,6 @@ import Debug from 'debug'; | ||
if(!clientID) { | ||
if(durability?.enabled) clientID = channel; | ||
debug('No clientId provided; auto creating client ID (Explicit client ID > Durable name > Channel name)'); | ||
if(durability?.enabled) clientID = durability.durableName || channel; | ||
else clientID = uuidv4(); | ||
debug(`auto set clientId to ${clientID}`); | ||
} | ||
@@ -25,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
41994
674