Comparing version 0.0.2-1 to 0.0.2-2
@@ -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" ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16615
531
1