@types/set-cookie-parser
Advanced tools
Comparing version
// Type definitions for set-cookie-parser | ||
// Project: https://github.com/nfriedly/set-cookie-parser | ||
// Definitions by: Nick Paddock <https://github.com/nickp10> | ||
// Ilya Zaytsev <https://github.com/ilyaztsv> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -11,6 +12,6 @@ | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage): SetCookieParser.Cookie[]; | ||
function SetCookieParser(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: SetCookieParser.Options): SetCookieParser.Cookie[]; | ||
namespace SetCookieParser { | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage): Cookie[]; | ||
function parse(input: string | ReadonlyArray<string> | http.IncomingMessage, options?: Options): Cookie[]; | ||
@@ -29,2 +30,7 @@ function splitCookiesString(input: string | ReadonlyArray<string> | void): string[]; | ||
} | ||
type Options = { | ||
decodeValues?: boolean; | ||
map?: boolean; | ||
} | ||
} | ||
@@ -31,0 +37,0 @@ |
{ | ||
"name": "@types/set-cookie-parser", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "TypeScript definitions for set-cookie-parser", | ||
@@ -11,5 +11,11 @@ "license": "MIT", | ||
"githubUsername": "nickp10" | ||
}, | ||
{ | ||
"name": "Ilya Zaytsev", | ||
"url": "https://github.com/ilyaztsv", | ||
"githubUsername": "ilyaztsv" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -23,4 +29,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "4e9bf76ac842abd6b17651b87b635ee219562a482f3df85c2faac3661519a7a5", | ||
"typesPublisherContentHash": "7300de538cf6afc4bc34dd9ae0e59f2bb5e81d8667e524472be058f8b9e33090", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for set-cookie-parser (https://github.com/nfriedly/set-cookie-parser). | ||
This package contains type definitions for set-cookie-parser ( https://github.com/nfriedly/set-cookie-parser ). | ||
@@ -12,7 +12,7 @@ # Details | ||
Additional Details | ||
* Last updated: Tue, 28 Aug 2018 17:04:47 GMT | ||
* Dependencies: http, node | ||
* Last updated: Wed, 30 Jan 2019 23:25:57 GMT | ||
* Dependencies: @types/node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Nick Paddock <https://github.com/nickp10>. | ||
These definitions were written by Nick Paddock <https://github.com/nickp10>, Ilya Zaytsev <https://github.com/ilyaztsv>. |
Sorry, the diff of this file is not supported yet
3799
13.54%29
20.83%