Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/download

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/download - npm Package Compare versions

Comparing version 6.2.1 to 6.2.2

50

download/index.d.ts

@@ -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;

8

download/package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc