@types/download
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -5,39 +5,29 @@ // Type definitions for download 6.2 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
// TypeScript Version: 2.3 | ||
/// <reference types="node" /> | ||
import { DecompressOptions } from 'decompress'; | ||
import { GotBodyOptions, TimeoutOptions } from 'got'; | ||
interface TimeoutOptions { | ||
connect?: number; | ||
socket?: number; | ||
request?: number; | ||
} | ||
type RetryFunction = (retry: number, error: any) => number; | ||
declare namespace download { | ||
type RetryFunction = (retry: number, error: any) => number; | ||
interface DownloadOptions { | ||
body?: string | Buffer | NodeJS.ReadableStream; | ||
encoding?: string | null; | ||
query?: string | object; | ||
timeout?: number | TimeoutOptions; | ||
retries?: number | RetryFunction; | ||
followRedirect?: boolean; | ||
decompress?: boolean; | ||
useElectronNet?: boolean; | ||
/** | ||
* If set to true, try extracting the file using decompress. | ||
*/ | ||
extract?: boolean; | ||
/** | ||
* Name of the saved file. | ||
*/ | ||
filename?: string; | ||
/** | ||
* Proxy endpoint | ||
*/ | ||
proxy?: string; | ||
interface DownloadOptions extends DecompressOptions, GotBodyOptions<string> { | ||
/** | ||
* If set to true, try extracting the file using decompress. | ||
*/ | ||
extract?: boolean; | ||
/** | ||
* Name of the saved file. | ||
*/ | ||
filename?: string; | ||
/** | ||
* Proxy endpoint | ||
*/ | ||
proxy?: string; | ||
} | ||
} | ||
declare namespace download {} | ||
declare function download(url: string, destination?: string, options?: DownloadOptions): Promise<Buffer> & NodeJS.WritableStream & NodeJS.ReadableStream; | ||
declare function download(url: string, destination?: string, options?: download.DownloadOptions): Promise<Buffer> & NodeJS.WritableStream & NodeJS.ReadableStream; | ||
export = download; |
{ | ||
"name": "@types/download", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "TypeScript definitions for download", | ||
@@ -20,6 +20,8 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/decompress": "*", | ||
"@types/got": "*", | ||
"@types/node": "*" | ||
}, | ||
"typesPublisherContentHash": "a502a5ddd9ceb2ee032e2700d507d675df80d6703ca1d4c29c12de4b24c7c46d", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "da2abac0e452d76ac887ebb87133a2a5ec60c87c914393e458cd8133107d34ca", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 03 Jan 2018 20:04:09 GMT | ||
* Dependencies: node | ||
* Last updated: Thu, 22 Mar 2018 17:52:41 GMT | ||
* Dependencies: decompress, got, 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
3403
3
27
+ Added@types/decompress@*
+ Added@types/got@*
+ Added@types/decompress@4.2.7(transitive)
+ Added@types/got@9.6.12(transitive)
+ Added@types/tough-cookie@4.0.5(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedform-data@2.5.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedsafe-buffer@5.2.1(transitive)