🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@tugou/session

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tugou/session - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+7
-0
dist/configuration.js

@@ -15,5 +15,12 @@ "use strict";

const session = require("koa-session");
const redisStore = require("koa-redis");
const path_1 = require("path");
let SessionConfiguration = class SessionConfiguration {
async onReady(container) {
// 使用 config 传入的 redis 配置
this.config = Object.assign(this.config, {
store: redisStore(this.config.redis)
});
// session 初始化不需要 redis 的配置(上面已经用过了), 删除
delete this.config.redis;
console.info('[session] ', this.config);

@@ -20,0 +27,0 @@ try {

+2
-2
{
"name": "@tugou/session",
"version": "1.0.4",
"version": "1.0.5",
"description": "tugou midwayjs session",

@@ -28,3 +28,3 @@ "main": "dist/index",

"license": "MIT",
"gitHead": "a8a83acd0ecbbfdd45b903bc812ae2bdbdbb781a"
"gitHead": "8b9f995d9d16d9ad48da02273d7dca82fe82127d"
}