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.5 to 0.0.6

29

index.js

@@ -9,5 +9,16 @@ 'use strict';

const initExpressSessionModule = require('bamei-module-express-session');
const FileStore = require('session-file-store')(initExpressSessionModule.session);
const fs = require('fs');
const path = require('path');
const initExpressSessionModule = require('bamei-module-express-session').init;
const session = require('bamei-module-express-session').session;
const FileStore = require('session-file-store')(session);
// 版本号
exports.version = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json')).toString()).version;
// 依赖模块
exports.dependencies = {
'express': '*',
};
/**

@@ -20,7 +31,4 @@ * 配置:

*/
module.exports = function initExpressSessionFileModule(ref, config, done) {
// 默认配置
// eslint-disable-next-line
config = Object.assign({
exports.config = function fillDefaultConfig(config) {
return Object.assign({
resave: true,

@@ -31,2 +39,9 @@ saveUninitialized: true,

}, config);
};
exports.init = function initExpressSessionFileModule(ref, config, done) {
// 默认配置
// eslint-disable-next-line
config = exports.config.call(this, config);
this.getLogger('init').info('initExpressSessionFileModule config: %j', config);

@@ -33,0 +48,0 @@

{
"name": "bamei-module-express-session-file",
"version": "0.0.5",
"version": "0.0.6",
"description": "module-express-session-file",

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

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