Socket
Socket
Sign inDemoInstall

@types/cookie-parser

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cookie-parser - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7

24

cookie-parser/index.d.ts
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 @@

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