Comparing version 2.8.1-0 to 2.8.1-1
@@ -135,2 +135,5 @@ "use strict"; | ||
const pong = (0, util_1.deferred)(); | ||
pong.catch(() => { | ||
// provide at least one catch - as pong rejection can happen before it is expected | ||
}); | ||
this.pongs.unshift(pong); | ||
@@ -137,0 +140,0 @@ this.connectError = (err) => { |
@@ -19,2 +19,3 @@ /// <reference types="node" /> | ||
done: boolean; | ||
closedError?: Error; | ||
constructor(); | ||
@@ -21,0 +22,0 @@ connect(hp: { |
@@ -46,3 +46,3 @@ "use strict"; | ||
const dns = require("dns"); | ||
const VERSION = "2.8.1-0"; | ||
const VERSION = "2.8.1-1"; | ||
const LANG = "nats.js"; | ||
@@ -363,2 +363,3 @@ class NodeTransport { | ||
return; | ||
this.closedError = err; | ||
if (!err && this.socket) { | ||
@@ -365,0 +366,0 @@ try { |
{ | ||
"name": "nats", | ||
"version": "2.8.1-0", | ||
"version": "2.8.1-1", | ||
"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 main https://github.com/nats-io/nats.deno.git", | ||
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch handle-initial-pong-rejection 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
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
866888
14899