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

memorystore

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memorystore - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

.travis.yml

2

lib/memorystore.js

@@ -22,3 +22,3 @@ /*!

var maxAge = sess.cookie.maxAge
var maxAge = (sess && sess.cookie) ? sess.cookie.maxAge : null
return (typeof maxAge === 'number'

@@ -25,0 +25,0 @@ ? Math.floor(maxAge)

{
"name": "memorystore",
"version": "1.2.0",
"version": "1.2.1",
"description": "express-session full featured MemoryStore layer without leaks!",

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

@@ -1,7 +0,9 @@

# memorystore
express-session full featured MemoryStore layer without leaks!
# memorystore [![NPM Version](https://img.shields.io/npm/v/memorystore.svg)](https://www.npmjs.com/package/memorystore) [![Build Status](https://travis-ci.org/roccomuso/memorystore.svg?branch=master)](https://travis-ci.org/roccomuso/memorystore) [![Dependency Status](https://david-dm.org/roccomuso/memorystore.png)](https://david-dm.org/roccomuso/memorystore) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
> express-session full featured `MemoryStore` module without leaks!
A session store implementation for Express using [lru-cache](https://github.com/isaacs/node-lru-cache).
Because the default `MemoryStore` for [express-session](https://github.com/expressjs/session) will lead to a memory leak due to it haven't a suitable way to make them expire.
The sessions are still stored in memory, so they're not shared with other processes or services.

@@ -11,3 +13,3 @@

npm install express-session memorystore
$ npm install express-session memorystore

@@ -54,4 +56,8 @@ Pass the `express-session` store into `memorystore` to create a `MemoryStore` constructor.

# Author
Rocco Musolino ([@roccomuso](https://twitter.com/roccomuso))
# License
MIT
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