Comparing version 2.9.0 to 2.9.1-0
@@ -38,2 +38,3 @@ "use strict"; | ||
waitOnFirstConnect: false, | ||
ignoreAuthErrorAbort: false, | ||
}; | ||
@@ -40,0 +41,0 @@ } |
@@ -389,7 +389,10 @@ "use strict"; | ||
} | ||
this.lastError = err; | ||
if (!err.isPermissionError()) { | ||
this.lastError = err; | ||
} | ||
}); | ||
} | ||
handleAuthError(err) { | ||
if (this.lastError && err.code === this.lastError.code) { | ||
if ((this.lastError && err.code === this.lastError.code) && | ||
this.options.ignoreAuthErrorAbort === false) { | ||
this.abortReconnect = true; | ||
@@ -396,0 +399,0 @@ } |
@@ -64,2 +64,3 @@ "use strict"; | ||
sub.close(); | ||
this.subs.delete(sub.sid); | ||
return sub !== this.mux; | ||
@@ -66,0 +67,0 @@ } |
@@ -46,3 +46,3 @@ "use strict"; | ||
const dns = require("dns"); | ||
const VERSION = "2.9.0"; | ||
const VERSION = "2.9.1-0"; | ||
const LANG = "nats.js"; | ||
@@ -49,0 +49,0 @@ class NodeTransport { |
{ | ||
"name": "nats", | ||
"version": "2.9.0", | ||
"version": "2.9.1-0", | ||
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps", | ||
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.9.0 https://github.com/nats-io/nats.deno.git", | ||
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch main https://github.com/nats-io/nats.deno.git", | ||
"fmt": "deno fmt ./src/ ./examples/ ./test/", | ||
@@ -46,0 +46,0 @@ "prepack": "npm run clone-nbc && npm run cjs && npm run check-package && npm run build", |
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
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
876408
15069
1