Socket
Socket
Sign inDemoInstall

ioredis-sessions

Package Overview
Dependencies
27
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

28

index.js

@@ -66,7 +66,7 @@ /*

this.redis = new RedisInstance(o.options);
} else if (o.sentinels && o.name) {
} else if (o.sentinels && o.name && o.password) {
this.redis = new RedisInstance({
sentinels: o.sentinels,
name: o.name,
options: o.options
password: o.password
});

@@ -149,9 +149,19 @@ } else {

}
if (resp[4] !== "OK") {
cb("Unknow error");
return;
}
cb(null, {
token: token
});
var p = Promise.resolve(resp);
p.then(function(v){
if (v[4][1] !== 'OK') {
cb("Unknow error");
return;
}
cb(null, {
token: token
});
})
// if (resp[4] !== [ null, 'OK' ]) {
// cb("Unknow error");
// return;
// }
// cb(null, {
// token: token
// });
});

@@ -158,0 +168,0 @@ };

{
"name": "ioredis-sessions",
"version": "0.0.1",
"version": "0.0.2",
"description": "An advanced session store for NodeJS and Redis based on ioredis",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc