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

koa-generic-session

Package Overview
Dependencies
Maintainers
2
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 2.0.1 to 2.0.2

8

lib/session.js

@@ -97,3 +97,3 @@ 'use strict';

} else {
debug('get session error: ', err.message);
debug('get session error: ', err && err.message);
errorHandler(err, 'get', ctx);

@@ -193,3 +193,3 @@ }

} catch (err) {
debug('set session error: ', err.message);
debug('set session error: ', err && err.message);
errorHandler(err, 'set', ctx);

@@ -268,3 +268,3 @@ }

} catch (err) {
debug('next logic error: %s', err.message);
debug('next logic error: %s', err && err.message);
firstError = err;

@@ -276,3 +276,3 @@ }

} catch (err) {
debug('refresh session error: %s', err.message);
debug('refresh session error: %s', err && err.message);
if (firstError) ctx.app.emit('error', err, ctx);

@@ -279,0 +279,0 @@ firstError = firstError || err;

@@ -5,3 +5,3 @@ {

"repository": "koajs/generic-session",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -8,0 +8,0 @@ "engines": {

@@ -89,2 +89,3 @@ generic-session

* After adding session middleware, you can use `this.session` to set or get the sessions.
* Getting session ID via `this.sessionId`.
* Setting `this.session = null;` will destroy this session.

@@ -91,0 +92,0 @@ * Altering `this.session.cookie` changes the cookie options of this user. Also you can use the cookie options in session the store. Use for example `cookie.maxAge` as the session store's ttl.

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