koa-session
Advanced tools
Comparing version 4.8.0 to 4.8.1
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 @@ ================== |
@@ -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]: { |
@@ -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", |
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
25182
522