@types/cookie-parser
Advanced tools
Comparing version 1.4.6 to 1.4.7
import * as express from "express"; | ||
declare global { | ||
namespace Express { | ||
// Inject additional properties on express.Request | ||
interface Request { | ||
/** | ||
* This request's secret. | ||
* Optionally set by cookie-parser if secret(s) are provided. Can be used by other middleware. | ||
* [Declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) can be used to add your own properties. | ||
*/ | ||
secret?: string; | ||
} | ||
declare module "express" { | ||
// Inject additional properties on express.Request | ||
interface Request { | ||
/** | ||
* This request's secret. | ||
* Optionally set by cookie-parser if secret(s) are provided. Can be used by other middleware. | ||
* [Declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) can be used to add your own properties. | ||
*/ | ||
secret?: string | undefined; | ||
/** Parsed cookies that have not been signed */ | ||
cookies: Record<string, any>; | ||
/** Parsed cookies that have been signed */ | ||
signedCookies: Record<string, any>; | ||
} | ||
@@ -15,0 +17,0 @@ } |
{ | ||
"name": "@types/cookie-parser", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "TypeScript definitions for cookie-parser", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-parser", | ||
}, | ||
"typesPublisherContentHash": "6fbc227c0569fd619a0a8cc5ae1ad66f9552f0db20842f9e21a3b818f7afb1f3", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "cc75d9bce3ea88b43d24a319ec4efcc59b528075e55f20baa07fabb8633d592f", | ||
"typeScriptVersion": "4.6" | ||
} |
@@ -13,13 +13,15 @@ # Installation | ||
declare global { | ||
namespace Express { | ||
// Inject additional properties on express.Request | ||
interface Request { | ||
/** | ||
* This request's secret. | ||
* Optionally set by cookie-parser if secret(s) are provided. Can be used by other middleware. | ||
* [Declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) can be used to add your own properties. | ||
*/ | ||
secret?: string; | ||
} | ||
declare module "express" { | ||
// Inject additional properties on express.Request | ||
interface Request { | ||
/** | ||
* This request's secret. | ||
* Optionally set by cookie-parser if secret(s) are provided. Can be used by other middleware. | ||
* [Declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html) can be used to add your own properties. | ||
*/ | ||
secret?: string | undefined; | ||
/** Parsed cookies that have not been signed */ | ||
cookies: Record<string, any>; | ||
/** Parsed cookies that have been signed */ | ||
signedCookies: Record<string, any>; | ||
} | ||
@@ -55,3 +57,3 @@ } | ||
### Additional Details | ||
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT | ||
* Last updated: Thu, 29 Feb 2024 19:35:43 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -58,0 +60,0 @@ |
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
5670
33
61