Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bamei-module-express-session-file

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bamei-module-express-session-file - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

README.md

15

index.js

@@ -23,14 +23,12 @@ 'use strict';

/**
* 配置:
* {Boolean} resave 默认 true,参考 bamei-module-express-session
* {Boolean} saveUninitialized 默认 true,参考 bamei-module-express-session
* {String} secret 默认使用 config.express.cookie.secret 的配置,参考 bamei-module-express-session
* {Object} store 本地文件配置,默认 { path: './sessions' },参考 session-file-store
*/
// 填充默认配置
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', ''),
// 存储引擎,参考 session-file-store 模块
store: { path: './sessions' },

@@ -40,2 +38,3 @@ }, config);

// 初始化
exports.init = function initExpressSessionFileModule(ref, config, done) {

@@ -42,0 +41,0 @@

{
"name": "bamei-module-express-session-file",
"version": "0.0.6",
"description": "module-express-session-file",
"version": "0.0.7",
"description": "express 框架的 session 支持,使用文件存储",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc