bamei-module-express-session
Advanced tools
Comparing version 0.0.6 to 0.0.7
15
index.js
@@ -21,14 +21,12 @@ 'use strict'; | ||
/** | ||
* 配置(其他参考 express-session 模块): | ||
* {Boolean} resave 默认 true | ||
* {Boolean} saveUninitialized 默认 true | ||
* {String} secret 默认使用 config.express.cookie.secret 的配置 | ||
* {Object} store 存储引擎,默认 null | ||
*/ | ||
// 填充默认配置 | ||
exports.config = function fillDefaultConfig(config) { | ||
return Object.assign({ | ||
// 参考 express-session 模块 | ||
resave: true, | ||
// 参考 express-session 模块 | ||
saveUninitialized: true, | ||
secret: this.getConfigOrDefault('config.express.cookie.secret', ''), | ||
// 安全密钥,参考 express-session 模块 | ||
secret: this.getConfigOrDefault('express.cookie.secret', ''), | ||
// 存储引擎,参考 express-session 模块 | ||
store: null, | ||
@@ -38,2 +36,3 @@ }, config); | ||
// 初始化 | ||
exports.init = function initExpressSessionModule(ref, config, done) { | ||
@@ -40,0 +39,0 @@ |
{ | ||
"name": "bamei-module-express-session", | ||
"version": "0.0.6", | ||
"description": "module-express-session", | ||
"version": "0.0.7", | ||
"description": "express 框架的 session 支持", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4460
3
1
86
39