New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-mongoose-store

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-mongoose-store - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

1

index.js

@@ -12,2 +12,3 @@ 'use strict';

options.ttl = options.ttl || one_day;
this.ttl = options.ttl;

@@ -14,0 +15,0 @@ session.Store.call(this, options);

2

package.json
{
"name": "express-mongoose-store",
"version": "1.0.3",
"version": "1.0.4",
"description": "Session store for people who want to use MongoDB sessions, and already have a MongooseJS connection for their backend.",

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

@@ -28,2 +28,11 @@ ##Express Mongoose Store

###Custom Model Name
By default the model name used for storing sessions is "sessions", however, you can customize this by
passing a modelName argument to the store like so:
````
app.use(session({ secret: 'keyboard cat', store: new MS({modelName: 'myApp_sessions' ttl: 600000}) });
````
Or if you want the session store to keep your Mongoose connection alive as well you can do the following:

@@ -56,2 +65,3 @@

````
npm install
npm test

@@ -62,4 +72,6 @@ ````

#####v1.0.4 - Bug fix
#####v1.0.3 - Session expiration with MongoDB expires via @rubenstolk
#####v1.0.2 - Configurable Model Name for Session via @rubenstolk
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