@types/needle
Advanced tools
Comparing version 0.7.28 to 0.7.29
@@ -8,91 +8,86 @@ // Type definitions for needle 0.7.8 | ||
declare var needle: Needle.NeedleStatic; | ||
export = needle; | ||
declare module "needle" { | ||
import * as http from 'http'; | ||
import * as Buffer from 'buffer'; | ||
module Needle { | ||
interface NeedleResponse extends http.IncomingMessage { | ||
body: any; | ||
raw: Buffer; | ||
bytes: number; | ||
} | ||
declare namespace Needle { | ||
interface ReadableStream extends NodeJS.ReadableStream { | ||
} | ||
interface ReadableStream extends NodeJS.ReadableStream { | ||
} | ||
interface Callback { | ||
(error: Error, response: any, body: any): void; | ||
} | ||
interface Callback { | ||
(error: Error, response: NeedleResponse, body: any): void; | ||
} | ||
interface RequestOptions { | ||
timeout?: number; | ||
follow?: number; | ||
follow_max?: number; | ||
multipart?: boolean; | ||
proxy?: string; | ||
agent?: string; | ||
headers?: HttpHeaderOptions; | ||
auth?: string; // auto | digest | basic (default) | ||
json?: boolean; | ||
interface RequestOptions { | ||
timeout?: number; | ||
follow?: number; | ||
follow_max?: number; | ||
multipart?: boolean; | ||
proxy?: string; | ||
agent?: string; | ||
headers?: Object; | ||
auth?: string; // auto | digest | basic (default) | ||
json?: boolean; | ||
// These properties are overwritten by those in the 'headers' field | ||
compressed?: boolean; | ||
cookies?: { [name: string]: any; }; | ||
// Overwritten if present in the URI | ||
username?: string; | ||
password?: string; | ||
} | ||
// These properties are overwritten by those in the 'headers' field | ||
compressed?: boolean; | ||
cookies?: { [name: string]: any; }; | ||
// Overwritten if present in the URI | ||
username?: string; | ||
password?: string; | ||
} | ||
interface ResponseOptions { | ||
decode?: boolean; | ||
parse?: boolean; | ||
output?: any; | ||
} | ||
interface ResponseOptions { | ||
decode?: boolean; | ||
parse?: boolean; | ||
output?: any; | ||
} | ||
interface HttpHeaderOptions { | ||
cookies?: { [name: string]: any; }; | ||
compressed?: boolean; | ||
accept?: string; | ||
connection?: string; | ||
user_agent?: string; | ||
interface TLSOptions { | ||
pfx?: any; | ||
key?: any; | ||
passphrase?: string; | ||
cert?: any; | ||
ca?: any; | ||
ciphers?: any; | ||
rejectUnauthorized?: boolean; | ||
secureProtocol?: any; | ||
} | ||
// Overwritten if present in the URI | ||
username?: string; | ||
password?: string; | ||
} | ||
interface NeedleStatic { | ||
defaults(options?: any): void; | ||
interface TLSOptions { | ||
pfx?: any; | ||
key?: any; | ||
passphrase?: string; | ||
cert?: any; | ||
ca?: any; | ||
ciphers?: any; | ||
rejectUnauthorized?: boolean; | ||
secureProtocol?: any; | ||
} | ||
head(url: string): ReadableStream; | ||
head(url: string, callback?: Callback): ReadableStream; | ||
head(url: string, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
interface NeedleOptions extends RequestOptions, ResponseOptions, HttpHeaderOptions, TLSOptions { | ||
} | ||
get(url: string): ReadableStream; | ||
get(url: string, callback?: Callback): ReadableStream; | ||
get(url: string, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
interface NeedleStatic { | ||
defaults(options?: any): void; | ||
post(url: string, data: any): ReadableStream; | ||
post(url: string, data: any, callback?: Callback): ReadableStream; | ||
post(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
head(url: string): ReadableStream; | ||
head(url: string, callback?: Callback): ReadableStream; | ||
head(url: string, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
put(url: string, data: any): ReadableStream; | ||
put(url: string, data: any, callback?: Callback): ReadableStream; | ||
put(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
get(url: string): ReadableStream; | ||
get(url: string, callback?: Callback): ReadableStream; | ||
get(url: string, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
delete(url: string, data: any): ReadableStream; | ||
delete(url: string, data: any, callback?: Callback): ReadableStream; | ||
delete(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
post(url: string, data: any): ReadableStream; | ||
post(url: string, data: any, callback?: Callback): ReadableStream; | ||
post(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
request(method: string, url: string, data: any): ReadableStream; | ||
request(method: string, url: string, data: any, callback?: Callback): ReadableStream; | ||
request(method: string, url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
} | ||
} | ||
put(url: string, data: any): ReadableStream; | ||
put(url: string, data: any, callback?: Callback): ReadableStream; | ||
put(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
delete(url: string, data: any): ReadableStream; | ||
delete(url: string, data: any, callback?: Callback): ReadableStream; | ||
delete(url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
request(method: string, url: string, data: any): ReadableStream; | ||
request(method: string, url: string, data: any, callback?: Callback): ReadableStream; | ||
request(method: string, url: string, data: any, options?: RequestOptions, callback?: Callback): ReadableStream; | ||
} | ||
} | ||
var needle: Needle.NeedleStatic; | ||
export = needle; | ||
} |
{ | ||
"name": "@types/needle", | ||
"version": "0.7.28", | ||
"version": "0.7.29", | ||
"description": "TypeScript definitions for needle 0.7.8", | ||
@@ -16,4 +16,5 @@ "license": "MIT", | ||
}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "e1f897e4458572ab15ac97f396ad5a3ff285ce41af1f443c6830f0b707ac8e07" | ||
"typesPublisherContentHash": "75458aa1b0b5bdfb68b6d158dc2432cb5063193058dd32df967e0322f84e6ccf" | ||
} |
@@ -11,9 +11,9 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: ProperModule | ||
* Last updated: Tue, 22 Nov 2016 20:59:28 GMT | ||
* File structure: ModuleAugmentation | ||
* Library Dependencies: node | ||
* Module Dependencies: none | ||
* Global values: needle | ||
* Module Dependencies: buffer, http | ||
* Global values: none | ||
# Credits | ||
These definitions were written by San Chen <https://github.com/bigsan>. |
@@ -7,5 +7,8 @@ { | ||
], | ||
"moduleDependencies": [], | ||
"libraryMajorVersion": "0", | ||
"libraryMinorVersion": "7", | ||
"moduleDependencies": [ | ||
"buffer", | ||
"http" | ||
], | ||
"libraryMajorVersion": 0, | ||
"libraryMinorVersion": 7, | ||
"libraryName": "needle 0.7.8", | ||
@@ -16,6 +19,4 @@ "typingsPackageName": "needle", | ||
"sourceBranch": "types-2.0", | ||
"kind": "ProperModule", | ||
"globals": [ | ||
"needle" | ||
], | ||
"kind": "ModuleAugmentation", | ||
"globals": [], | ||
"declaredModules": [ | ||
@@ -28,3 +29,3 @@ "needle" | ||
"hasPackageJson": false, | ||
"contentHash": "e1f897e4458572ab15ac97f396ad5a3ff285ce41af1f443c6830f0b707ac8e07" | ||
"contentHash": "75458aa1b0b5bdfb68b6d158dc2432cb5063193058dd32df967e0322f84e6ccf" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5329
0
102