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.8.0 to 4.8.1

6

History.md
4.8.1 / 2018-12-18
==================
**features**
* [[`d792770`](http://github.com/koajs/session/commit/d7927708848a0e39a0652643ed3b6426ceb4952c)] - feat: allow init multi session middleware (#160) (killa <<killa123@126.com>>)
4.8.0 / 2018-01-17

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

3

index.js

@@ -116,2 +116,5 @@ 'use strict';

function extendContext(context, opts) {
if (context.hasOwnProperty(CONTEXT_SESSION)) {
return;
}
Object.defineProperties(context, {

@@ -118,0 +121,0 @@ [CONTEXT_SESSION]: {

4

lib/util.js

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

decode(string) {
const body = new Buffer(string, 'base64').toString('utf8');
const body = Buffer.from(string, 'base64').toString('utf8');
const json = JSON.parse(body);

@@ -32,3 +32,3 @@ return json;

body = JSON.stringify(body);
return new Buffer(body).toString('base64');
return Buffer.from(body).toString('base64');
},

@@ -35,0 +35,0 @@

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

"repository": "koajs/session",
"version": "4.8.0",
"version": "4.8.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