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.3 to 1.4.4

12

cookie-parser/index.d.ts

@@ -8,3 +8,3 @@ // Type definitions for cookie-parser 1.4

import * as express from 'express';
import * as express from "express";

@@ -25,3 +25,6 @@ declare global {

declare function cookieParser(secret?: string | string[], options?: cookieParser.CookieParseOptions): express.RequestHandler;
declare function cookieParser(
secret?: string | string[],
options?: cookieParser.CookieParseOptions,
): express.RequestHandler;

@@ -39,5 +42,8 @@ declare namespace cookieParser {

function signedCookies<T extends { [key: string]: string }>(cookies: T, secret: string | string[]): { [P in keyof T]?: string | false};
function signedCookies<T extends { [key: string]: string }>(
cookies: T,
secret: string | string[],
): { [P in keyof T]?: string | false };
}
export = cookieParser;
{
"name": "@types/cookie-parser",
"version": "1.4.3",
"version": "1.4.4",
"description": "TypeScript definitions for cookie-parser",

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

},
"typesPublisherContentHash": "ec228e770576f43dd247dbfd15428c81cf1fbd84c02d978f6c4f0275d6394cf0",
"typeScriptVersion": "3.9"
"typesPublisherContentHash": "1fe3e440b2282ee003cd4d897d5b1effc9b1eefbcb49b3fae680d61535576632",
"typeScriptVersion": "4.3"
}

@@ -18,3 +18,3 @@ # Installation

import * as express from 'express';
import * as express from "express";

@@ -35,3 +35,6 @@ declare global {

declare function cookieParser(secret?: string | string[], options?: cookieParser.CookieParseOptions): express.RequestHandler;
declare function cookieParser(
secret?: string | string[],
options?: cookieParser.CookieParseOptions,
): express.RequestHandler;

@@ -49,3 +52,6 @@ declare namespace cookieParser {

function signedCookies<T extends { [key: string]: string }>(cookies: T, secret: string | string[]): { [P in keyof T]?: string | false};
function signedCookies<T extends { [key: string]: string }>(
cookies: T,
secret: string | string[],
): { [P in keyof T]?: string | false };
}

@@ -58,3 +64,3 @@

### Additional Details
* Last updated: Wed, 27 Apr 2022 10:31:34 GMT
* Last updated: Mon, 04 Sep 2023 15:41:12 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express)

@@ -61,0 +67,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