electron-updater
Advanced tools
Comparing version 6.3.8 to 6.3.9
@@ -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(); |
@@ -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
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
465649
4149
+ Addedbuilder-util-runtime@9.2.10(transitive)
- Removedbuilder-util-runtime@9.2.9(transitive)
Updatedbuilder-util-runtime@9.2.10