tough-cookie
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -34,2 +34,3 @@ /*! | ||
var urlParse = require('url').parse; | ||
var util = require('util'); | ||
var pubsuffix = require('./pubsuffix-psl'); | ||
@@ -760,2 +761,8 @@ var Store = require('./store').Store; | ||
// Use the new custom inspection symbol to add the custom inspect function if | ||
// available. | ||
if (util.inspect.custom) { | ||
Cookie.prototype[util.inspect.custom] = Cookie.prototype.inspect; | ||
} | ||
Cookie.prototype.toJSON = function() { | ||
@@ -762,0 +769,0 @@ var obj = {}; |
@@ -53,2 +53,8 @@ /*! | ||
// 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) { | ||
@@ -55,0 +61,0 @@ if (!this.idx[domain]) { |
@@ -46,3 +46,3 @@ { | ||
], | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"homepage": "https://github.com/salesforce/tough-cookie", | ||
@@ -49,0 +49,0 @@ "repository": { |
@@ -60,3 +60,3 @@ [RFC6265](https://tools.ietf.org/html/rfc6265) Cookies and CookieJar for Node.js | ||
The `canonicalize` parameter will run the other two paramters through `canonicalDomain` or not. | ||
The `canonicalize` parameter will run the other two parameters through `canonicalDomain` or not. | ||
@@ -190,3 +190,3 @@ ### `defaultPath(path)` | ||
Max-Age takes precedence over Expires (as per the RFC). The `.creation` attribute -- or, by default, the `now` paramter -- is used to offset the `.maxAge` attribute. | ||
Max-Age takes precedence over Expires (as per the RFC). The `.creation` attribute -- or, by default, the `now` parameter -- is used to offset the `.maxAge` attribute. | ||
@@ -193,0 +193,0 @@ If Expires (`.expires`) is set, that's returned. |
83959
1599