mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update node modules
This commit is contained in:
11
node_modules/tough-cookie/lib/memstore.js
generated
vendored
11
node_modules/tough-cookie/lib/memstore.js
generated
vendored
@@ -50,6 +50,12 @@ MemoryCookieStore.prototype.inspect = function() {
|
||||
return "{ idx: "+util.inspect(this.idx, false, 2)+' }';
|
||||
};
|
||||
|
||||
// Use the new custom inspection symbol to add the custom inspect function if
|
||||
// available.
|
||||
if (util.inspect.custom) {
|
||||
MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
|
||||
}
|
||||
|
||||
MemoryCookieStore.prototype.findCookie = function(domain, path, key, cb) {
|
||||
if (!this.idx[domain]) {
|
||||
return cb(null,undefined);
|
||||
@@ -143,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;
|
||||
|
Reference in New Issue
Block a user