Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

tough-cookie

Package Overview
Dependencies
6
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.2 to 4.1.3

16

lib/memstore.js

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

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