Socket
Socket
Sign inDemoInstall

@electron/get

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/get - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

4

dist/cjs/GotDownloader.d.ts
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

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