Comparing version 2.0.0-210 to 2.0.0-211
@@ -15,2 +15,3 @@ /// <reference types="node" /> | ||
connected: boolean; | ||
tlsName: string; | ||
done: boolean; | ||
@@ -21,2 +22,3 @@ constructor(); | ||
port: number; | ||
tlsName: string; | ||
}, options: ConnectionOptions): Promise<void>; | ||
@@ -23,0 +25,0 @@ dial(hp: { |
@@ -45,3 +45,3 @@ "use strict"; | ||
const { readFile, existsSync } = require("fs"); | ||
const VERSION = "2.0.0-210"; | ||
const VERSION = "2.0.0-211"; | ||
const LANG = "nats.js"; | ||
@@ -54,2 +54,3 @@ class NodeTransport { | ||
this.connected = false; | ||
this.tlsName = ""; | ||
this.done = false; | ||
@@ -61,2 +62,3 @@ this.lang = LANG; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.tlsName = hp.tlsName; | ||
this.options = options; | ||
@@ -202,3 +204,3 @@ try { | ||
let tlsError; | ||
let tlsOpts = { socket: this.socket }; | ||
let tlsOpts = { socket: this.socket, servername: this.tlsName }; | ||
if (typeof this.options.tls === "object") { | ||
@@ -205,0 +207,0 @@ try { |
{ | ||
"name": "nats", | ||
"version": "2.0.0-210", | ||
"version": "2.0.0-211", | ||
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
372629
6260