spawnpoint-nats
Advanced tools
Comparing version 2.0.4 to 2.1.0
{ | ||
"name": "spawnpoint-nats", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "NATS Plugin for Spawnpoint on NPM", | ||
@@ -40,3 +40,3 @@ "main": "spawnpoint.nats.js", | ||
"@nodecraft/eslint-config": "^28.0.0", | ||
"eslint": "^8.50.0", | ||
"eslint": "^8.52.0", | ||
"eslint-plugin-json": "^3.1.0", | ||
@@ -43,0 +43,0 @@ "eslint-plugin-node": "^11.1.0" |
@@ -57,2 +57,13 @@ /* eslint-disable node/no-missing-require */ | ||
// Setup an authenticator if available | ||
if(config.connection.auth) { | ||
// We want to read in the creds file given to us | ||
const authCredsFile = path.join(app.cwd, config.connection.auth.creds_file); | ||
delete config.connection.auth.creds_file; | ||
const authCreds = fs.readFileSync(authCredsFile); | ||
// Create a new credsAuthenticator | ||
config.connection.authenticator = nats.credsAuthenticator(authCreds); | ||
delete config.connection.auth; | ||
} | ||
const helpers = { | ||
@@ -59,0 +70,0 @@ wrapMessageError(error) { |
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
20042
335