koa-session
Advanced tools
+6
-0
| 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
-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]: { |
+2
-2
@@ -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 @@ |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "repository": "koajs/session", | ||
| "version": "4.8.0", | ||
| "version": "4.8.1", | ||
| "keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
25182
1.2%522
0.58%