redis-cookie-store
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -97,3 +97,3 @@ 'use strict'; | ||
RedisCookieStore.prototype.putCookie = function(cookie, cb) { | ||
this.client.hset(this.getKeyName(cookie.domain, cookie.path), cookie.key, cookie, cb); | ||
this.client.hset(this.getKeyName(cookie.domain, cookie.path), cookie.key, cookie.toString(), cb); | ||
}; | ||
@@ -113,6 +113,7 @@ | ||
RedisCookieStore.prototype.removeCookies = function removeCookies(domain, path, cb) { | ||
var self = this; | ||
if (path) { | ||
return this.client.del(this.getKeyName(domain, path), cb); | ||
return self.client.del(self.getKeyName(domain, path), cb); | ||
} else { | ||
this.client.keys(this.getKeyName(domain) + ":*", function(err, keys) { | ||
self.client.keys(self.getKeyName(domain) + ":*", function(err, keys) { | ||
if (err) { | ||
@@ -123,3 +124,3 @@ return cb(err); | ||
keys, | ||
this.client.del, | ||
self.client.del, | ||
cb | ||
@@ -126,0 +127,0 @@ ); |
{ | ||
"name": "redis-cookie-store", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Redis cookie store for tough-cookie module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5449
115
0
4