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

sessions

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

sessions - npm Package Compare versions

Comparing version 0.0.2-1 to 0.0.2-2

14

lib/sessions.js

@@ -47,3 +47,3 @@ var util = require("util"),

data = {},
meta = { expires: Date.now() + (this.opts.expires * 1000) },
meta = { expires: (this.opts.expires !== null ? Date.now() + (this.opts.expires * 1000) : null) },
cb = null;

@@ -74,3 +74,3 @@

if (sessions._checkTimeoutId === null) {
if (meta.expires !== null && sessions._checkTimeoutId === null) {
sessions._checkTimeoutId = setTimeout(function () {

@@ -187,2 +187,6 @@ sessions.checkExpiration();

if (sess.expires === null) {
return cb();
}
if (sess.expires <= conf.dt) {

@@ -240,3 +244,3 @@ sessions.emit("expired", uid, false);

if (typeof key == "object") {
store.set(uid, key, cb);
store.set(uid, {}, key, cb);
} else {

@@ -246,3 +250,3 @@ var o = {};

store.set(uid, o, cb);
store.set(uid, {}, o, cb);
}

@@ -271,2 +275,2 @@ return this;

};
}
}
{
"name" : "sessions",
"version" : "0.0.2-1",
"version" : "0.0.2-2",
"description" : "NodeJS session management",

@@ -5,0 +5,0 @@ "keywords" : [ "session", "cookie" ],

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