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.10.0 to 2.10.1

17

lib/nats-base-client/service.js

@@ -115,13 +115,14 @@ "use strict";

}
name = name.toUpperCase();
id = id.toUpperCase();
return id !== ""
? `${pre}.${verb}.${name}.${id}`
: `${pre}.${verb}.${name}`;
(0, jsutil_1.validName)(name);
if (id !== "") {
(0, jsutil_1.validName)(id);
return `${pre}.${verb}.${name}.${id}`;
}
return `${pre}.${verb}.${name}`;
}
constructor(nc, config) {
var _a, _b;
var _a;
super();
this.nc = nc;
config.name = ((_a = config === null || config === void 0 ? void 0 : config.name) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || "";
config.name = (config === null || config === void 0 ? void 0 : config.name) || "";
this.config = config;

@@ -134,3 +135,3 @@ const n = (0, jsutil_1.validName)(this.name);

(0, semver_1.parseSemVer)(this.config.version);
this.noIterator = typeof ((_b = config === null || config === void 0 ? void 0 : config.endpoint) === null || _b === void 0 ? void 0 : _b.handler) === "function";
this.noIterator = typeof ((_a = config === null || config === void 0 ? void 0 : config.endpoint) === null || _a === void 0 ? void 0 : _a.handler) === "function";
if (!this.noIterator) {

@@ -137,0 +138,0 @@ this.config.endpoint.handler = (err, msg) => {

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

const dns = require("dns");
const VERSION = "2.10.0";
const VERSION = "2.10.1";
const LANG = "nats.js";

@@ -49,0 +49,0 @@ class NodeTransport {

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

@@ -43,3 +43,3 @@ "keywords": [

"clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps",
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.10.0 https://github.com/nats-io/nats.deno.git",
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.10.1 https://github.com/nats-io/nats.deno.git",
"fmt": "deno fmt ./src/ ./examples/ ./test/",

@@ -46,0 +46,0 @@ "prepack": "npm run clone-nbc && npm run cjs && npm run check-package && npm run build",

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