@types/express-serve-static-core
Advanced tools
Comparing version 4.17.41 to 4.17.42
@@ -330,12 +330,33 @@ // This extracts the core definitions from express to prevent a circular dependency between express and serve-static | ||
/** | ||
* Options passed down into `res.cookie` | ||
* @link https://expressjs.com/en/api.html#res.cookie | ||
*/ | ||
export interface CookieOptions { | ||
/** Convenient option for setting the expiry time relative to the current time in **milliseconds**. */ | ||
maxAge?: number | undefined; | ||
/** Indicates if the cookie should be signed. */ | ||
signed?: boolean | undefined; | ||
/** Expiry date of the cookie in GMT. If not specified or set to 0, creates a session cookie. */ | ||
expires?: Date | undefined; | ||
/** Flags the cookie to be accessible only by the web server. */ | ||
httpOnly?: boolean | undefined; | ||
/** Path for the cookie. Defaults to “/”. */ | ||
path?: string | undefined; | ||
/** Domain name for the cookie. Defaults to the domain name of the app. */ | ||
domain?: string | undefined; | ||
/** Marks the cookie to be used with HTTPS only. */ | ||
secure?: boolean | undefined; | ||
/** A synchronous function used for cookie value encoding. Defaults to encodeURIComponent. */ | ||
encode?: ((val: string) => string) | undefined; | ||
/** | ||
* Value of the “SameSite” Set-Cookie attribute. | ||
* @link https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1.1. | ||
*/ | ||
sameSite?: boolean | "lax" | "strict" | "none" | undefined; | ||
/** | ||
* Value of the “Priority” Set-Cookie attribute. | ||
* @link https://datatracker.ietf.org/doc/html/draft-west-cookie-priority-00#section-4.3 | ||
*/ | ||
priority?: "low" | "medium" | "high"; | ||
} | ||
@@ -342,0 +363,0 @@ |
{ | ||
"name": "@types/express-serve-static-core", | ||
"version": "4.17.41", | ||
"version": "4.17.42", | ||
"description": "TypeScript definitions for express-serve-static-core", | ||
@@ -53,4 +53,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core", | ||
}, | ||
"typesPublisherContentHash": "5c546c267bbf60fff3ec26d28c47a1c607526f56c28ea2a149efcb2f1a8e0198", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "70f4b79096fe72ad9b6605a554090daac1497bc59526c8903d01258a646cbdf1", | ||
"typeScriptVersion": "4.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT | ||
* Last updated: Thu, 25 Jan 2024 23:07:19 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/qs](https://npmjs.com/package/@types/qs), [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/send](https://npmjs.com/package/@types/send) | ||
@@ -14,0 +14,0 @@ |
45949
1159