koa-generic-session
Advanced tools
Comparing version 1.11.4 to 1.11.5
1.11.5 / 2017-01-16 | ||
================== | ||
* fix: store use options.maxAge (#112) | ||
1.11.4 / 2016-12-01 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -60,7 +60,7 @@ /**! | ||
if (!ttl) { | ||
var maxage = sess.cookie && sess.cookie.maxage; | ||
if (typeof maxage === 'number') { | ||
ttl = maxage; | ||
var maxAge = sess.cookie && sess.cookie.maxAge; | ||
if (typeof maxAge === 'number') { | ||
ttl = maxAge; | ||
} | ||
// if has cookie.expires, ignore cookie.maxage | ||
// if has cookie.expires, ignore cookie.maxAge | ||
if (sess.cookie && sess.cookie.expires) { | ||
@@ -67,0 +67,0 @@ ttl = Math.ceil(sess.cookie.expires.getTime() - Date.now()); |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/generic-session", | ||
"version": "1.11.4", | ||
"version": "1.11.5", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "lib", |
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
30197