@types/tough-cookie
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -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[]>; | ||
} |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13612
212