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

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.3.1 to 3.3.2

4

History.md

@@ -0,1 +1,5 @@

# 3.3.2 / 2017-09-28
- Allow strings for store.ttl [tswaters]
# 3.3.1 / 2017-09-28

@@ -2,0 +6,0 @@

2

lib/connect-redis.js

@@ -19,3 +19,3 @@ /*!

function getTTL(store, sess, sid) {
if (typeof store.ttl === 'number') return store.ttl;
if (typeof store.ttl === 'number' || typeof store.ttl === 'string') return store.ttl;
if (typeof store.ttl === 'function') return store.ttl(store, sess, sid);

@@ -22,0 +22,0 @@ if (store.ttl) throw new TypeError('`store.ttl` must be a number or function.');

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

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

@@ -154,3 +154,3 @@ /* eslint-env es6 */

// store.ttl: string (invalid)
store.ttl = '123';
store.ttl = {};
data = { cookie: {}, name: 'tj' };

@@ -157,0 +157,0 @@ try {

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