Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nats

Package Overview
Dependencies
Maintainers
3
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nats - npm Package Compare versions

Comparing version 2.0.3-2 to 2.0.3-3

12

lib/src/node_transport.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc