Socket
Socket
Sign inDemoInstall

electron-updater

Package Overview
Dependencies
Maintainers
2
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-updater - npm Package Compare versions

Comparing version 6.3.8 to 6.3.9

1

out/AppUpdater.js

@@ -347,3 +347,2 @@ "use strict";

}
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
createProviderRuntimeOptions() {

@@ -350,0 +349,0 @@ return {

@@ -86,3 +86,2 @@ "use strict";

}
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function buildChecksumMap(file, fileOffset, logger) {

@@ -89,0 +88,0 @@ const checksumToOffset = new Map();

18

out/MacUpdater.js

@@ -83,3 +83,2 @@ "use strict";

const CURRENT_MAC_APP_ZIP_FILE_NAME = "update.zip";
let cachedUpdateFile = "";
return this.executeDownload({

@@ -90,5 +89,5 @@ fileExtension: "zip",

task: async (destinationFile, downloadOptions) => {
cachedUpdateFile = path.join(this.downloadedUpdateHelper.cacheDir, CURRENT_MAC_APP_ZIP_FILE_NAME);
const cachedUpdateFilePath = path.join(this.downloadedUpdateHelper.cacheDir, CURRENT_MAC_APP_ZIP_FILE_NAME);
const canDifferentialDownload = () => {
if (!(0, fs_extra_1.pathExistsSync)(cachedUpdateFile)) {
if (!(0, fs_extra_1.pathExistsSync)(cachedUpdateFilePath)) {
log.info("Unable to locate previous update.zip for differential download (is this first install?), falling back to full download");

@@ -108,8 +107,11 @@ return false;

done: event => {
try {
(0, fs_1.copyFileSync)(event.downloadedFile, cachedUpdateFile);
if (!downloadUpdateOptions.disableDifferentialDownload) {
try {
const cachedUpdateFilePath = path.join(this.downloadedUpdateHelper.cacheDir, CURRENT_MAC_APP_ZIP_FILE_NAME);
(0, fs_1.copyFileSync)(event.downloadedFile, cachedUpdateFilePath);
}
catch (error) {
this._logger.warn(`Unable to copy file for caching for future differential downloads: ${error.message}`);
}
}
catch (error) {
this._logger.error(`Unable to copy file for caching: ${error.message}`);
}
return this.updateDownloaded(zipFileInfo, event);

@@ -116,0 +118,0 @@ },

@@ -49,3 +49,2 @@ "use strict";

}
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
configureHeaders(accept) {

@@ -52,0 +51,0 @@ return {

{
"name": "electron-updater",
"version": "6.3.8",
"version": "6.3.9",
"description": "Cross platform updater for electron applications",

@@ -26,3 +26,3 @@ "main": "out/main.js",

"tiny-typed-emitter": "^2.1.0",
"builder-util-runtime": "9.2.9"
"builder-util-runtime": "9.2.10"
},

@@ -29,0 +29,0 @@ "devDependencies": {

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