Socket
Socket
Sign inDemoInstall

@types/tough-cookie

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/tough-cookie - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

26

tough-cookie/index.d.ts

@@ -141,3 +141,3 @@ // Type definitions for tough-cookie 4.0

value?: string | undefined;
expires?: Date | undefined;
expires?: Date | 'Infinity' | undefined;
maxAge?: number | 'Infinity' | '-Infinity' | undefined;

@@ -266,2 +266,24 @@ domain?: string | undefined;

export class MemoryCookieStore extends Store { }
export class MemoryCookieStore extends Store {
findCookie(domain: string, path: string, key: string, cb: (err: Error | null, cookie: Cookie | null) => void): void;
findCookie(domain: string, path: string, key: string): Promise<Cookie | null>;
findCookies(domain: string, path: string, allowSpecialUseDomain: boolean, cb: (err: Error | null, cookie: Cookie[]) => void): void;
findCookies(domain: string, path: string, cb: (err: Error | null, cookie: Cookie[]) => void): void;
findCookies(domain: string, path: string, allowSpecialUseDomain?: boolean): Promise<Cookie[]>;
putCookie(cookie: Cookie, cb: (err: Error | null) => void): void;
putCookie(cookie: Cookie): Promise<void>;
updateCookie(oldCookie: Cookie, newCookie: Cookie, cb: (err: Error | null) => void): void;
updateCookie(oldCookie: Cookie, newCookie: Cookie): Promise<void>;
removeCookie(domain: string, path: string, key: string, cb: (err: Error | null) => void): void;
removeCookie(domain: string, path: string, key: string): Promise<void>;
removeCookies(domain: string, path: string, cb: (err: Error | null) => void): void;
removeCookies(domain: string, path: string): Promise<void>;
getAllCookies(cb: (err: Error | null, cookie: Cookie[]) => void): void;
getAllCookies(): Promise<Cookie[]>;
}

6

tough-cookie/package.json
{
"name": "@types/tough-cookie",
"version": "4.0.1",
"version": "4.0.2",
"description": "TypeScript definitions for tough-cookie",

@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tough-cookie",

"dependencies": {},
"typesPublisherContentHash": "35dd1719b4f8b273457e3e24babcf7140e293129fb277b499985b53427852cbd",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "b7a67b8b87baf3d5d1b8d6f2b4493dad84d9ec7e93abf68824da9da25ac176d6",
"typeScriptVersion": "3.9"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 02 Jul 2021 19:37:15 GMT
* Last updated: Thu, 14 Apr 2022 07:01:24 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc