machinepack-redis
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -27,3 +27,3 @@ module.exports = { | ||
// | ||
password: { | ||
pass: { | ||
description: 'The password (if any) for the Redis server.', | ||
@@ -33,3 +33,3 @@ example: 'iheartredis' | ||
// | ||
database: { | ||
db: { | ||
description: 'The index of the database to connect to.', | ||
@@ -59,4 +59,4 @@ example: 123 | ||
// Add the optional password. | ||
if (inputs.password) { | ||
url += ':' + inputs.password + '@'; | ||
if (inputs.pass) { | ||
url += ':' + inputs.pass + '@'; | ||
} | ||
@@ -71,4 +71,4 @@ | ||
// Add the optional database. | ||
if (inputs.database) { | ||
url += '/' + inputs.database; | ||
if (inputs.db) { | ||
url += '/' + inputs.db; | ||
} | ||
@@ -75,0 +75,0 @@ |
@@ -216,3 +216,3 @@ module.exports = { | ||
if (client._fromWLManager) { | ||
return exits.error('Consistency violation: Somehow, a `_fromWLManager` key already exists on this Redis client instance!'); | ||
return exits.error(new Error('Consistency violation: Somehow, a `_fromWLManager` key already exists on this Redis client instance!')); | ||
} | ||
@@ -219,0 +219,0 @@ client._fromWLManager = inputs.manager; |
{ | ||
"name": "machinepack-redis", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Structured Node.js bindings for Redis.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -33,4 +33,4 @@ /** | ||
port: 6380, | ||
password: 'secret', | ||
database: 15 | ||
pass: 'secret', | ||
db: 15 | ||
}).execSync(); | ||
@@ -37,0 +37,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87039
1