@types/superagent
Advanced tools
Comparing version 3.5.5 to 3.5.6
@@ -19,2 +19,6 @@ // Type definitions for SuperAgent 3.5 | ||
type MultipartValueSingle = Blob | Buffer | fs.ReadStream | string | boolean | number; | ||
type MultipartValue = MultipartValueSingle | MultipartValueSingle[]; | ||
declare const request: request.SuperAgentStatic; | ||
@@ -107,3 +111,3 @@ | ||
accept(type: string): this; | ||
attach(field: string, file: Blob | Buffer | fs.ReadStream | string, filename?: string): this; | ||
attach(field: string, file: MultipartValueSingle, options?: string | { filename?: string; contentType?: string }): this; | ||
auth(user: string, name: string): this; | ||
@@ -115,3 +119,4 @@ buffer(val?: boolean): this; | ||
end(callback?: CallbackHandler): this; | ||
field(name: string, val: string): this; | ||
field(name: string, val: MultipartValue): this; | ||
field(fields: { [fieldName: string]: MultipartValue }): this; | ||
get(field: string): string; | ||
@@ -118,0 +123,0 @@ key(cert: Buffer | string): this; |
{ | ||
"name": "@types/superagent", | ||
"version": "3.5.5", | ||
"version": "3.5.6", | ||
"description": "TypeScript definitions for SuperAgent", | ||
@@ -9,11 +9,14 @@ "license": "MIT", | ||
"name": "Nico Zelaya", | ||
"url": "https://github.com/NicoZelaya" | ||
"url": "https://github.com/NicoZelaya", | ||
"githubUsername": "NicoZelaya" | ||
}, | ||
{ | ||
"name": "Michael Ledin", | ||
"url": "https://github.com/mxl" | ||
"url": "https://github.com/mxl", | ||
"githubUsername": "mxl" | ||
}, | ||
{ | ||
"name": "Pap Lőrinc", | ||
"url": "https://github.com/paplorinc" | ||
"url": "https://github.com/paplorinc", | ||
"githubUsername": "paplorinc" | ||
} | ||
@@ -30,4 +33,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "7043a5dbe1fea6a9bf60526b70f7742ec78986bf5282f11ba95d336793cefb81", | ||
"typesPublisherContentHash": "090b820ce3db91b237d22ba1ed6b818007a3372c83db26ab476615a3326389ec", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 22:03:22 GMT | ||
* Last updated: Tue, 03 Oct 2017 13:52:19 GMT | ||
* Dependencies: fs, https, stream, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
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
8947
138