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.3.4 to 2.4.2

lib/pubsuffix-psl.js

38

lib/cookie.js

@@ -34,3 +34,3 @@ /*!

var urlParse = require('url').parse;
var pubsuffix = require('./pubsuffix');
var pubsuffix = require('./pubsuffix-psl');
var Store = require('./store').Store;

@@ -45,3 +45,3 @@ var MemoryCookieStore = require('./memstore').MemoryCookieStore;

} catch(e) {
console.warn("cookie: can't load punycode; won't use punycode for domain normalization");
console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization");
}

@@ -1411,19 +1411,17 @@

module.exports = {
CookieJar: CookieJar,
Cookie: Cookie,
Store: Store,
MemoryCookieStore: MemoryCookieStore,
parseDate: parseDate,
formatDate: formatDate,
parse: parse,
fromJSON: fromJSON,
domainMatch: domainMatch,
defaultPath: defaultPath,
pathMatch: pathMatch,
getPublicSuffix: pubsuffix.getPublicSuffix,
cookieCompare: cookieCompare,
permuteDomain: require('./permuteDomain').permuteDomain,
permutePath: permutePath,
canonicalDomain: canonicalDomain
};
exports.CookieJar = CookieJar;
exports.Cookie = Cookie;
exports.Store = Store;
exports.MemoryCookieStore = MemoryCookieStore;
exports.parseDate = parseDate;
exports.formatDate = formatDate;
exports.parse = parse;
exports.fromJSON = fromJSON;
exports.domainMatch = domainMatch;
exports.defaultPath = defaultPath;
exports.pathMatch = pathMatch;
exports.getPublicSuffix = pubsuffix.getPublicSuffix;
exports.cookieCompare = cookieCompare;
exports.permuteDomain = require('./permuteDomain').permuteDomain;
exports.permutePath = permutePath;
exports.canonicalDomain = canonicalDomain;

@@ -32,3 +32,3 @@ /*!

"use strict";
var pubsuffix = require('./pubsuffix');
var pubsuffix = require('./pubsuffix-psl');

@@ -35,0 +35,0 @@ // Gives the permutation of all possible domainMatch()es of a given domain. The

{
"author": {
"name": "Jeremy Stashewsky",
"email": "jstashewsky@salesforce.com",
"email": "jstash@gmail.com",
"website": "https://github.com/stash"

@@ -46,3 +46,3 @@ },

],
"version": "2.3.4",
"version": "2.4.2",
"homepage": "https://github.com/salesforce/tough-cookie",

@@ -61,4 +61,4 @@ "repository": {

"scripts": {
"suffixup": "curl -o public_suffix_list.dat https://publicsuffix.org/list/public_suffix_list.dat && ./generate-pubsuffix.js",
"test": "vows test/*_test.js"
"test": "vows test/*_test.js",
"cover": "nyc --reporter=lcov --reporter=html vows test/*_test.js"
},

@@ -70,2 +70,3 @@ "engines": {

"async": "^1.4.2",
"nyc": "^11.6.0",
"string.prototype.repeat": "^0.2.0",

@@ -75,4 +76,5 @@ "vows": "^0.8.1"

"dependencies": {
"psl": "^1.1.24",
"punycode": "^1.4.1"
}
}

@@ -88,3 +88,3 @@ [RFC6265](https://tools.ietf.org/html/rfc6265) Cookies and CookieJar for Node.js

For further information, see http://publicsuffix.org/. This module derives its list from that site.
For further information, see http://publicsuffix.org/. This module derives its list from that site. This call is currently a wrapper around [`psl`](https://www.npmjs.com/package/psl)'s [get() method](https://www.npmjs.com/package/psl#pslgetdomain).

@@ -509,3 +509,1 @@ ### `cookieCompare(a,b)`

```
Portions may be licensed under different licenses (in particular `public_suffix_list.dat` is MPL/2.0); please read that file and the LICENSE file for full details.

Sorry, the diff of this file is not supported yet

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