Socket
Socket
Sign inDemoInstall

koa-generic-session

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-generic-session - npm Package Compare versions

Comparing version 1.11.4 to 1.11.5

5

History.md
1.11.5 / 2017-01-16
==================
* fix: store use options.maxAge (#112)
1.11.4 / 2016-12-01

@@ -3,0 +8,0 @@ ==================

8

lib/store.js

@@ -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",

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