connect-redis
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -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 @@ |
@@ -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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23460