@types/request
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -20,5 +20,5 @@ // Type definitions for request 2.0 | ||
import https = require('https'); | ||
import url = require('url'); | ||
import fs = require('fs'); | ||
import FormData = require('form-data'); | ||
import tough = require('tough-cookie'); | ||
import { Url } from 'url'; | ||
@@ -69,3 +69,3 @@ | ||
jar(store?: any): CookieJar; | ||
cookie(str: string): Cookie; | ||
cookie(str: string): Cookie | undefined; | ||
@@ -313,23 +313,11 @@ debug: boolean; | ||
export type Cookie = tough.Cookie; | ||
export interface CookieJar { | ||
setCookie(cookie: Cookie, uri: string | url.Url, options?: any): void; | ||
getCookieString(uri: string | url.Url): string; | ||
getCookies(uri: string | url.Url): Cookie[]; | ||
setCookie(cookieOrStr: Cookie | string, uri: string | Url, options?: tough.CookieJar.SetCookieOptions): void; | ||
getCookieString(uri: string | Url): string; | ||
getCookies(uri: string | Url): Cookie[]; | ||
} | ||
export interface CookieValue { | ||
name: string; | ||
value: any; | ||
httpOnly: boolean; | ||
} | ||
export interface Cookie extends Array<CookieValue> { | ||
constructor(name: string, req: Request): void; | ||
str: string; | ||
expires: Date; | ||
path: string; | ||
toString(): string; | ||
} | ||
} | ||
declare var request: request.RequestAPI<request.Request, request.CoreOptions, request.RequiredUriUrl>; | ||
export = request; |
{ | ||
"name": "@types/request", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "TypeScript definitions for request", | ||
@@ -51,6 +51,7 @@ "license": "MIT", | ||
"@types/form-data": "*", | ||
"@types/tough-cookie": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "a2a91359850119ccf7f991e8a8f193828a4c74194c45eaa33dc14b93bfb04b81", | ||
"typesPublisherContentHash": "9c3af5b156dccb67b1ccddbd02708d9497663cd4c31f16a6ced91a7de89d3607", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 11 Dec 2017 23:33:53 GMT | ||
* Dependencies: stream, http, https, url, fs, form-data, node | ||
* Last updated: Thu, 11 Jan 2018 22:07:40 GMT | ||
* Dependencies: stream, http, https, fs, form-data, tough-cookie, url, node | ||
* Global values: none | ||
@@ -15,0 +15,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
15847
3
275
+ Added@types/tough-cookie@*
+ Added@types/tough-cookie@4.0.5(transitive)