@silenteer/natsu
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -6,2 +6,4 @@ import type { NatsService, NatsHandler } from './type'; | ||
injections?: TInjection; | ||
user?: string; | ||
pass?: string; | ||
verbose?: boolean; | ||
@@ -8,0 +10,0 @@ }) => { |
@@ -8,3 +8,3 @@ "use strict"; | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
const { urls, verbose } = params; | ||
const { urls, user, pass, verbose } = params; | ||
const key = getClientKey(urls); | ||
@@ -17,2 +17,4 @@ if (!clients[key]) { | ||
servers: urls, | ||
user, | ||
pass, | ||
pingInterval: 30 * 1000, | ||
@@ -154,5 +156,5 @@ maxPingOut: 10, | ||
setup: (params) => { | ||
const { urls, injections, verbose } = params; | ||
const { urls, injections, user, pass, verbose } = params; | ||
const client = { | ||
start: () => start({ urls, injections, verbose }), | ||
start: () => start({ urls, injections, user, pass, verbose }), | ||
stop: () => stop(urls), | ||
@@ -159,0 +161,0 @@ register: (handlers) => register({ urls, handlers }), |
{ | ||
"name": "@silenteer/natsu", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"license": "MIT", | ||
@@ -9,2 +9,3 @@ "private": false, | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
@@ -11,0 +12,0 @@ }, |
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
19845
268