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.7 to 0.0.8

2

index.js

@@ -41,3 +41,3 @@ 'use strict';

config = exports.config.call(this, config);
this.getLogger('init').info('initExpressSessionModule config: %j', config);
this.getLogger('init').trace('initExpressSessionModule config: %j', config);

@@ -44,0 +44,0 @@ const middleware = expressSession(config);

{
"name": "bamei-module-express-session",
"version": "0.0.7",
"version": "0.0.8",
"description": "express 框架的 session 支持",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,13 +50,17 @@ [![NPM version][npm-image]][npm-url]

```javascript
// 先初始化依赖的模块
this.module('express');
// 使用 this.config.get('express-session') 的配置初始化
this.module('express-session');
// 或者
// 自定义配置初始化
const options = {};
this.module('express-session', options);
module.exports = require('bamei').create(function (ctx) {
// 先初始化依赖的模块
ctx.module('express');
// 使用 ctx.config.get('express-session') 的配置初始化
ctx.module('express-session');
// 或者
// 自定义配置初始化
const options = {};
ctx.module('express-session', options);
});
```
## License

@@ -63,0 +67,0 @@

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