@types/superagent
Advanced tools
Comparing version 2.0.36 to 2.0.37
@@ -1,4 +0,5 @@ | ||
// Type definitions for SuperAgent v2.0.0 | ||
// Type definitions for SuperAgent v2.0.1 | ||
// Project: https://github.com/visionmedia/superagent | ||
// Definitions by: Alex Varju <https://github.com/varju/> | ||
// Nico Zelaya <https://github.com/NicoZelaya/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -9,2 +10,3 @@ | ||
import stream = require('stream'); | ||
import https = require('https'); | ||
@@ -16,3 +18,10 @@ type CallbackHandler = (err: any, res: request.Response) => void; | ||
declare namespace request { | ||
interface SuperAgentRequest extends Request { } | ||
interface SuperAgentRequest extends Request { | ||
agent(agent: https.Agent): this; | ||
agent(): this; | ||
method: string; | ||
url: string; | ||
cookies: string; | ||
} | ||
interface SuperAgentStatic extends SuperAgent<SuperAgentRequest> { | ||
@@ -81,3 +90,3 @@ (url: string): SuperAgentRequest; | ||
forbidden: boolean; | ||
xhr: XMLHttpRequest; | ||
xhr: XMLHttpRequest; | ||
get(header: string): string; | ||
@@ -84,0 +93,0 @@ } |
{ | ||
"name": "@types/superagent", | ||
"version": "2.0.36", | ||
"version": "2.0.37", | ||
"description": "TypeScript definitions for SuperAgent", | ||
"license": "MIT", | ||
"author": "Alex Varju <https://github.com/varju/>", | ||
"contributors": [ | ||
{ | ||
"name": "Alex Varju", | ||
"url": "https://github.com/varju/" | ||
}, | ||
{ | ||
"name": "Nico Zelaya", | ||
"url": "https://github.com/NicoZelaya/" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +26,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "02a5d98f0bb8d6505124894b50412cf5d02ce84786f99b2fb69dd353c04d0ba7" | ||
"typesPublisherContentHash": "a396595b3e265ef6b6c16991188e36ccb76cebc31463547bd4403b719dd19a8e", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,12 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/superagent | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/superagent | ||
Additional Details | ||
* Last updated: Mon, 28 Nov 2016 16:28:40 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: node | ||
* Module Dependencies: stream | ||
* Global values: request | ||
* Last updated: Fri, 02 Jun 2017 13:45:13 GMT | ||
* Dependencies: stream, https, node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Alex Varju <https://github.com/varju/>. | ||
These definitions were written by Alex Varju <https://github.com/varju/>, Nico Zelaya <https://github.com/NicoZelaya/>. |
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
7460
113
17