diff --git a/config/index.js b/config/index.js index 4c7577e..a69f5e6 100644 --- a/config/index.js +++ b/config/index.js @@ -11,7 +11,6 @@ export default { db: {}, session: { enabled: false, - type: 'native', // native 或 redis ttl: 3600 * 24 * 7, domain: '', // NODESSID域, 默认等于domain level: 0, // 校验级别, 0: 不校验客户端, 2: ua, 4: ip, 6: ua + ip diff --git a/middleware/router.js b/middleware/router.js index 620676e..96d13d7 100644 --- a/middleware/router.js +++ b/middleware/router.js @@ -4,7 +4,7 @@ * @date 2020/09/18 15:16:29 */ -export default function(req, res, next) { +export default function (req, res, next) { var debug = this.get('debug') // 1. 先判断控制器是否存在 diff --git a/package.json b/package.json index e22db17..ad8cba3 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@gm5/core", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "description": "Five.js, 一个轻量级的nodejs mvc框架 旨在简单易用, 5分钟即可上手", "author": "yutent ", "main": "index.js", "dependencies": { - "@gm5/session": "^1.0.0", + "@gm5/session": "^1.1.0", "@gm5/request": "^1.2.1", "@gm5/response": "^1.3.1", "@gm5/controller": "^1.0.0", @@ -21,7 +21,9 @@ "type": "git", "url": "https://github.com/bytedo/gmf.core.git" }, - "keywords": ["five, fivejs, node-five, five.js, nodejs, mvc, koa, express"], + "keywords": [ + "five, fivejs, node-five, five.js, nodejs, mvc, koa, express" + ], "engines": { "node": ">=10.0.0" },