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.3.30 to 1.4.0

cookie-parser/LICENSE

24

cookie-parser/index.d.ts

@@ -1,12 +0,26 @@

// Type definitions for cookie-parser v1.3.4
// Type definitions for cookie-parser 1.4
// Project: https://github.com/expressjs/cookie-parser
// Definitions by: Santi Albo <https://github.com/santialbo/>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import * as express from 'express';
declare function cookieParser(secret?: string | string[], options?: cookieParser.CookieParseOptions): express.RequestHandler;
declare namespace cookieParser {
interface CookieParseOptions {
decode?(val: string): string;
}
import express = require('express');
declare function e(secret?: string, options?: any): express.RequestHandler;
declare namespace e { }
export = e;
function JSONCookie(jsonCookie: string): object | undefined;
function JSONCookies<T extends { [key: string]: string }>(jsonCookies: T): { [P in keyof T]: object | undefined };
function signedCookie(cookie: string, secret: string | string[]): 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.3.30",
"description": "TypeScript definitions for cookie-parser v1.3.4",
"version": "1.4.0",
"description": "TypeScript definitions for cookie-parser",
"license": "MIT",
"author": "Santi Albo <https://github.com/santialbo/>",
"contributors": [
{
"name": "Santi Albo",
"url": "https://github.com/santialbo/"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender"
}
],
"main": "",

@@ -16,4 +25,5 @@ "repository": {

},
"typings": "index.d.ts",
"typesPublisherContentHash": "6c7f2db61082396b54f32f57c12128c15e167290cddd3e0d380ecdf2fa9ebea0"
"peerDependencies": {},
"typesPublisherContentHash": "da47f3e0eb829dc7836c7c46027c48b08b0bedb190431a1913f167bf7a5ce28b",
"typeScriptVersion": "2.2"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for cookie-parser v1.3.4 (https://github.com/expressjs/cookie-parser).
This package contains type definitions for cookie-parser (https://github.com/expressjs/cookie-parser).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/cookie-parser
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-parser
Additional Details
* Last updated: Mon, 19 Sep 2016 16:15:24 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: express
* Global values: e
* Last updated: Mon, 24 Jul 2017 18:01:07 GMT
* Dependencies: express
* Global values: none
# Credits
These definitions were written by Santi Albo <https://github.com/santialbo/>.
These definitions were written by Santi Albo <https://github.com/santialbo/>, BendingBender <https://github.com/BendingBender>.
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