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

koa-session

Package Overview
Dependencies
Maintainers
8
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-session - npm Package Compare versions

Comparing version 4.7.0 to 4.7.1

6

History.md
4.7.1 / 2018-01-11
==================
**fixes**
* [[`5683102`](http://github.com/koajs/session/commit/5683102687c48ba11521d8b249126de13e7c0d8b)] - fix: emit event in next tick (dead-horse <<dead_horse@qq.com>>)
4.7.0 / 2018-01-09

@@ -3,0 +9,0 @@ ==================

17

lib/context.js

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

if (!value) {
this.app.emit('session:missed', { key, value, ctx });
this.emit('missed', { key, value, ctx });
return false;

@@ -164,3 +164,3 @@ }

debug('expired session');
this.app.emit('session:expired', { key, value, ctx });
this.emit('expired', { key, value, ctx });
return false;

@@ -173,3 +173,3 @@ }

debug('invalid session');
this.app.emit('session:invalid', { key, value, ctx });
this.emit('invalid', { key, value, ctx });
return false;

@@ -181,2 +181,13 @@ }

/**
* @param {String} event event name
* @param {Object} data event data
* @api private
*/
emit(event, data) {
setImmediate(() => {
this.app.emit(`session:${event}`, data);
});
}
/**
* create a new session and attach to ctx.sess

@@ -183,0 +194,0 @@ *

2

package.json

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

"repository": "koajs/session",
"version": "4.7.0",
"version": "4.7.1",
"keywords": [

@@ -8,0 +8,0 @@ "koa",

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