Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tough-cookie/lib/memstore.js')
-rw-r--r--node_modules/tough-cookie/lib/memstore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/tough-cookie/lib/memstore.js b/node_modules/tough-cookie/lib/memstore.js
index bf306ba78..d2b915c93 100644
--- a/node_modules/tough-cookie/lib/memstore.js
+++ b/node_modules/tough-cookie/lib/memstore.js
@@ -149,6 +149,11 @@ MemoryCookieStore.prototype.removeCookies = function(domain, path, cb) {
return cb(null);
};
+MemoryCookieStore.prototype.removeAllCookies = function(cb) {
+ this.idx = {};
+ return cb(null);
+}
+
MemoryCookieStore.prototype.getAllCookies = function(cb) {
var cookies = [];
var idx = this.idx;