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

bamei-module-express-session

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.6 to 0.0.7

README.md

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": {

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