Comparing version 2.10.0 to 2.10.1
@@ -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
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
16067
931460