Socket
Socket
Sign inDemoInstall

connect-redis

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-redis - npm Package Compare versions

Comparing version 3.4.1 to 3.4.2

2

lib/connect-redis.js

@@ -220,2 +220,4 @@ /*!

debug('DEL "%s"', sid);
if (!fn) fn = noop;
if (Array.isArray(sid)) {

@@ -222,0 +224,0 @@ var multi = this.client.multi();

8

package.json
{
"name": "connect-redis",
"description": "Redis session store for Connect",
"version": "3.4.1",
"version": "3.4.2",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -21,6 +21,6 @@ "contributors": [

"blue-tape": "^1.0.0",
"bluebird": "^3.5.2",
"bluebird": "^3.5.5",
"eslint": "^3.19.0",
"express-session": "^1.15.6",
"ioredis": "^4.0.0",
"express-session": "^1.16.2",
"ioredis": "^4.10.0",
"istanbul": "^0.4.5",

@@ -27,0 +27,0 @@ "sinon": "^2.3.4",

@@ -70,3 +70,3 @@ [![npm](https://img.shields.io/npm/v/connect-redis.svg)](https://npmjs.com/package/connect-redis) [![Dependencies](https://img.shields.io/david/tj/connect-redis.svg)](https://david-dm.org/tj/connect-redis) ![Downloads](https://img.shields.io/npm/dm/connect-redis.svg)

By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In express, one way this scenario can be handled is including a "session check" after setting up a session (checking for the existence of `req.session`\):
By default, the `node_redis` client will [auto-reconnect](https://github.com/mranney/node_redis#overloading) when a connection is lost. But requests may come in during that time. In Express, this scenario can be handled by including a "session check".

@@ -73,0 +73,0 @@ ```js

@@ -66,3 +66,15 @@ /* eslint-env es6 */

var store = new RedisStore({ client: client });
return lifecycleTest(store, t);
return lifecycleTest(store, t).then(function () {
t.test('#destroy()', function (p) {
var spy = sinon.spy(ioRedis.prototype, 'sendCommand');
var sidName = 'randomname';
store.destroy(sidName);
p.deepEqual(
spy.firstCall.args[0].args,
[store.prefix + sidName]
);
spy.restore();
p.end();
});
});
});

@@ -69,0 +81,0 @@

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