Comparing version 2.0.3-2 to 2.0.3-3
@@ -45,3 +45,3 @@ "use strict"; | ||
const { readFile, existsSync } = require("fs"); | ||
const VERSION = "2.0.3-2"; | ||
const VERSION = "2.0.3-3"; | ||
const LANG = "nats.js"; | ||
@@ -119,4 +119,5 @@ class NodeTransport { | ||
this.socket.on("data", (frame) => { | ||
const count = frame.byteLength; | ||
this.yields.push(frame.slice(0, count)); | ||
const buf = Buffer.allocUnsafe(frame.length); | ||
frame.copy(buf); | ||
this.yields.push(buf); | ||
const t = nats_base_client_1.DataBuffer.concat(...this.yields); | ||
@@ -253,4 +254,5 @@ const pm = nats_base_client_1.extractProtocolMessage(t); | ||
this.socket.on("data", (frame) => { | ||
const count = frame.byteLength; | ||
this.yields.push(frame.slice(0, count)); | ||
const buf = Buffer.allocUnsafe(frame.length); | ||
frame.copy(buf); | ||
this.yields.push(buf); | ||
return this.signal.resolve(); | ||
@@ -257,0 +259,0 @@ }); |
{ | ||
"name": "nats", | ||
"version": "2.0.3-2", | ||
"version": "2.0.3-3", | ||
"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
532694
8916