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.0-201 to 2.0.0-202

9

examples/bench.js

@@ -16,3 +16,3 @@ #!/usr/bin/env node

csvheader: false,
pending: 1024*32
pending: 1024 * 32,
};

@@ -59,3 +59,5 @@

for (let i = 0; i < iters; i++) {
const nc = await connect({ servers: server, debug: argv.debug, pending: argv.pending });
const nc = await connect(
{ servers: server, debug: argv.debug, pending: argv.pending },
);
const opts = {

@@ -137,4 +139,1 @@ msgs: count,

});

@@ -31,3 +31,3 @@ "use strict";

const { readFile, existsSync } = require("fs");
const VERSION = "2.0.0-201";
const VERSION = "2.0.0-202";
const LANG = "nats.js";

@@ -205,2 +205,7 @@ class NodeTransport {

});
tlsSocket.on("secureConnect", () => {
if (!tlsSocket.authorized) {
throw tlsSocket.authorizationError;
}
});
tlsSocket.on("close", () => {

@@ -227,4 +232,8 @@ d.reject(tlsError);

});
this.socket.on("end", () => {
this.socket.write(new Uint8Array(0), () => {
this.socket.end();
});
});
this.socket.on("close", () => {
// if socket notified a close, any write will fail
this.socket = undefined;

@@ -231,0 +240,0 @@ this._closed(connError, false);

{
"name": "nats",
"version": "2.0.0-201",
"version": "2.0.0-202",
"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