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-26 to 2.0.0-27

18

lib/nats.js

@@ -1163,15 +1163,5 @@ /*

// don't append trailing control characters
const mbuf = Buffer.concat(this.payload.chunks, this.payload.size)
if (this.options.payload === Payload.Binary) {
this.payload.msg = mbuf
} else {
this.payload.msg = mbuf.toString(this.encoding)
}
this.payload.msg = Buffer.concat(this.payload.chunks, this.payload.size)
} else {
if (this.options.payload === Payload.Binary) {
this.payload.msg = this.inbound.slice(0, this.payload.size)
} else {
this.payload.msg = this.inbound.toString(this.encoding, 0, this.payload.size)
}
this.payload.msg = this.inbound.slice(0, this.payload.size)
}

@@ -1252,6 +1242,8 @@

// encoding set to 'utf8'
msg = JSON.parse(this.payload.msg.toString(this.options.encoding))
msg = JSON.parse(msg.toString(this.options.encoding))
} catch (e) {
err = new NatsError(ErrorCode.BAD_JSON, ErrorCode.BAD_JSON, e)
}
} else if (this.options.payload === Payload.String) {
msg = msg.toString(this.options.encoding)
}

@@ -1258,0 +1250,0 @@ try {

{
"name": "nats",
"version": "2.0.0-26",
"version": "2.0.0-27",
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system",

@@ -5,0 +5,0 @@ "keywords": [

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