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

electron-dl-manager

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-dl-manager - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

dist/cjs/DownloadInitiator.js

@@ -102,5 +102,5 @@ "use strict";

this.log(`Prompting save as dialog`);
const { directory, saveAsFilename, overwrite, saveDialogOptions } = this.config;
const { directory, overwrite, saveDialogOptions } = this.config;
const { item } = this.downloadData;
const filePath = (0, utils_1.determineFilePath)({ directory, saveAsFilename, item, overwrite });
const filePath = (0, utils_1.determineFilePath)({ directory, item, overwrite });
// This actually isn't what shows the save dialog

@@ -138,2 +138,3 @@ // If item.setSavePath() isn't called at all after some tiny period of time,

this.log(`Download was cancelled by user`);
this.downloadData.cancelledFromSaveAsDialog = true;
await this.callbackDispatcher.onDownloadCancelled(this.downloadData);

@@ -140,0 +141,0 @@ }

@@ -76,5 +76,5 @@ import * as path from 'path';

this.log(`Prompting save as dialog`);
const { directory, saveAsFilename, overwrite, saveDialogOptions } = this.config;
const { directory, overwrite, saveDialogOptions } = this.config;
const { item } = this.downloadData;
const filePath = determineFilePath({ directory, saveAsFilename, item, overwrite });
const filePath = determineFilePath({ directory, item, overwrite });
// This actually isn't what shows the save dialog

@@ -112,2 +112,3 @@ // If item.setSavePath() isn't called at all after some tiny period of time,

this.log(`Download was cancelled by user`);
this.downloadData.cancelledFromSaveAsDialog = true;
await this.callbackDispatcher.onDownloadCancelled(this.downloadData);

@@ -114,0 +115,0 @@ }

2

package.json
{
"name": "electron-dl-manager",
"version": "2.0.1",
"version": "2.0.2",
"description": "A library for implementing file downloads in Electron with 'save as' dialog and id support.",

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

Sorry, the diff of this file is too big to display

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