Socket
Socket
Sign inDemoInstall

tough-cookie

Package Overview
Dependencies
2
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.2 to 2.4.3

7

lib/cookie.js

@@ -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]) {

2

package.json

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc