Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

machinepack-redis

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack-redis - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

22

machines/get-connection.js

@@ -127,2 +127,24 @@ module.exports = {

function onPreConnectionError (err){
// If this is an authentication error (i.e. bad password), then
// we won't be getting an `end` event, so we'll bail out immediately.
if (err.command === 'AUTH' && err.code === 'ERR') {
client.removeListener('end', onPreConnectionEnd);
client.removeListener('error', onPreConnectionError);
// Swallow follow-on errors.
client.on('error', function(){});
return exits.failed({
error: flaverr('ERR_BAD_PASSWORD', new Error('The password supplied to the Redis server was incorrect.'))
});
}
// If this is an authentication "info" event (i.e. NO password was supplied),
// and the `authLater` meta key isn't `true`, bail out immediately.
if (err.command === 'INFO' && err.code === 'NOAUTH' && inputs.meta.authLater !== true) {
client.removeListener('end', onPreConnectionEnd);
client.removeListener('error', onPreConnectionError);
// Swallow follow-on errors.
client.on('error', function(){});
return exits.failed({
error: flaverr('ERR_NO_PASSWORD', new Error('The Redis server requires a password, but none was supplied.'))
});
}
redisConnectionError = err;

@@ -129,0 +151,0 @@ }

2

package.json
{
"name": "machinepack-redis",
"version": "1.2.3",
"version": "1.3.0",
"description": "Structured Node.js bindings for Redis.",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc