@electron/get
Advanced tools
Comparing version 1.0.3 to 1.1.0
import { Downloader } from './Downloader'; | ||
export declare class GotDownloader implements Downloader<null> { | ||
download(url: string, targetFilePath: string): Promise<void>; | ||
export declare class GotDownloader implements Downloader<any> { | ||
download(url: string, targetFilePath: string, options?: any): Promise<void>; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
} | ||
GotDownloader.prototype.download = function (url, targetFilePath) { | ||
GotDownloader.prototype.download = function (url, targetFilePath, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -55,3 +55,3 @@ var writeStream; | ||
return [4 /*yield*/, new Promise(function (resolve, reject) { | ||
var downloadStream = got.stream(url); | ||
var downloadStream = got.stream(url, options); | ||
downloadStream.pipe(writeStream); | ||
@@ -58,0 +58,0 @@ downloadStream.on('error', function (error) { return reject(error); }); |
import { Downloader } from './Downloader'; | ||
export declare class GotDownloader implements Downloader<null> { | ||
download(url: string, targetFilePath: string): Promise<void>; | ||
export declare class GotDownloader implements Downloader<any> { | ||
download(url: string, targetFilePath: string, options?: any): Promise<void>; | ||
} |
@@ -42,3 +42,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
GotDownloader.prototype.download = function (url, targetFilePath) { | ||
GotDownloader.prototype.download = function (url, targetFilePath, options) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -53,3 +53,3 @@ var writeStream; | ||
return [4 /*yield*/, new Promise(function (resolve, reject) { | ||
var downloadStream = got.stream(url); | ||
var downloadStream = got.stream(url, options); | ||
downloadStream.pipe(writeStream); | ||
@@ -56,0 +56,0 @@ downloadStream.on('error', function (error) { return reject(error); }); |
{ | ||
"name": "@electron/get", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Utility for downloading artifacts from different versions of Electron", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
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
79210