tough-cookie
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -42,3 +42,3 @@ /*! | ||
this.synchronous = true; | ||
this.idx = {}; | ||
this.idx = Object.create(null); | ||
const customInspectSymbol = getCustomInspectSymbol(); | ||
@@ -115,6 +115,6 @@ if (customInspectSymbol) { | ||
if (!this.idx[cookie.domain]) { | ||
this.idx[cookie.domain] = {}; | ||
this.idx[cookie.domain] = Object.create(null); | ||
} | ||
if (!this.idx[cookie.domain][cookie.path]) { | ||
this.idx[cookie.domain][cookie.path] = {}; | ||
this.idx[cookie.domain][cookie.path] = Object.create(null); | ||
} | ||
@@ -151,3 +151,3 @@ this.idx[cookie.domain][cookie.path][cookie.key] = cookie; | ||
removeAllCookies(cb) { | ||
this.idx = {}; | ||
this.idx = Object.create(null); | ||
return cb(null); | ||
@@ -202,5 +202,5 @@ } | ||
if (domains.length === 0) { | ||
return "{}"; | ||
return "[Object: null prototype] {}"; | ||
} | ||
let result = "{\n"; | ||
let result = "[Object: null prototype] {\n"; | ||
Object.keys(val).forEach((domain, i) => { | ||
@@ -219,3 +219,3 @@ result += formatDomain(domain, val[domain]); | ||
const indent = " "; | ||
let result = `${indent}'${domainName}': {\n`; | ||
let result = `${indent}'${domainName}': [Object: null prototype] {\n`; | ||
Object.keys(domainValue).forEach((path, i, paths) => { | ||
@@ -234,3 +234,3 @@ result += formatPath(path, domainValue[path]); | ||
const indent = " "; | ||
let result = `${indent}'${pathName}': {\n`; | ||
let result = `${indent}'${pathName}': [Object: null prototype] {\n`; | ||
Object.keys(pathValue).forEach((cookieName, i, cookieNames) => { | ||
@@ -237,0 +237,0 @@ const cookie = pathValue[cookieName]; |
// generated by genversion | ||
module.exports = '4.1.2' | ||
module.exports = '4.1.3' |
@@ -70,3 +70,3 @@ { | ||
], | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"homepage": "https://github.com/salesforce/tough-cookie", | ||
@@ -73,0 +73,0 @@ "repository": { |
@@ -409,3 +409,3 @@ # tough-cookie | ||
#### `store.findCookies(domain, path, callback(err, cookies))` | ||
#### `store.findCookies(domain, path, allowSpecialUseDomain, callback(err, cookies))` | ||
@@ -412,0 +412,0 @@ Locates cookies matching the given domain and path. This is most often called in the context of [`cookiejar.getCookies()`](#getcookiescurrenturl-options-callbackerr-cookies). |
111456