Comparing version 2.28.0 to 2.28.1
@@ -706,2 +706,3 @@ "use strict"; | ||
return __awaiter(this, arguments, void 0, function* (opts = {}) { | ||
var _a; | ||
try { | ||
@@ -718,2 +719,3 @@ this.stream = objectStoreStreamName(this.name); | ||
sc.name = this.stream; | ||
sc.num_replicas = (_a = opts.replicas) !== null && _a !== void 0 ? _a : 1; | ||
sc.allow_direct = true; | ||
@@ -720,0 +722,0 @@ sc.allow_rollup_hdrs = true; |
@@ -34,8 +34,8 @@ "use strict"; | ||
function isIPV4OrHostname(hp) { | ||
if (hp.indexOf("[") !== -1 || hp.indexOf("::") !== -1) { | ||
return false; | ||
} | ||
if (hp.indexOf(".") !== -1) { | ||
return true; | ||
} | ||
if (hp.indexOf("[") !== -1 || hp.indexOf("::") !== -1) { | ||
return false; | ||
} | ||
// if we have a plain hostname or host:port | ||
@@ -42,0 +42,0 @@ if (hp.split(":").length <= 2) { |
@@ -48,3 +48,3 @@ "use strict"; | ||
const dns = require("dns"); | ||
const VERSION = "2.28.0"; | ||
const VERSION = "2.28.1"; | ||
const LANG = "nats.js"; | ||
@@ -51,0 +51,0 @@ class NodeTransport { |
{ | ||
"name": "nats", | ||
"version": "2.28.0", | ||
"version": "2.28.1", | ||
"description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps", | ||
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.28.0 https://github.com/nats-io/nats.deno.git", | ||
"clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.28.1 https://github.com/nats-io/nats.deno.git", | ||
"fmt": "deno fmt ./src/ ./examples/ ./test/", | ||
@@ -70,3 +70,3 @@ "prepack": "npm run clone-nbc && npm run cjs && npm run check-package && npm run build", | ||
"devDependencies": { | ||
"@types/node": "^20.14.6", | ||
"@types/node": "^20.14.12", | ||
"ava": "^5.3.x", | ||
@@ -77,3 +77,3 @@ "minimist": "^1.2.8", | ||
"shx": "^0.3.3", | ||
"typescript": "5.5.3" | ||
"typescript": "5.5.4" | ||
}, | ||
@@ -80,0 +80,0 @@ "typings": "./lib/src/mod.d.ts", |
@@ -140,3 +140,3 @@ # NATS.js - A [NATS](http://nats.io) client for [Node.Js](https://nodejs.org/en/) | ||
// we want to insure that messages that are in flight | ||
// we want to ensure that messages that are in flight | ||
// get processed, so we are going to drain the | ||
@@ -143,0 +143,0 @@ // connection. Drain is the same as close, but makes |
Sorry, the diff of this file is not supported yet
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
1162375
19747