electron-builder-http
Advanced tools
Comparing version 10.17.1 to 10.17.3
@@ -93,4 +93,2 @@ declare module "electron-builder-http/out/publishOptions" { | ||
export function checkSha2(sha2Header: string | null | undefined, sha2: string | null | undefined, callback: (error: Error | null) => void): boolean | ||
export function calculateDownloadProgress(total: number, start: number, transferred: number, chunk: any, callback: any): number | ||
@@ -97,0 +95,0 @@ |
@@ -10,3 +10,2 @@ "use strict"; | ||
exports.request = request; | ||
exports.checkSha2 = checkSha2; | ||
exports.calculateDownloadProgress = calculateDownloadProgress; | ||
@@ -159,2 +158,5 @@ exports.safeGetHeader = safeGetHeader; | ||
function configurePipes(options, response, destination, callback) { | ||
if (!checkSha2(safeGetHeader(response, "X-Checksum-Sha2"), options.sha2, callback)) { | ||
return; | ||
} | ||
const streams = []; | ||
@@ -161,0 +163,0 @@ if (options.onProgress != null) { |
{ | ||
"name": "electron-builder-http", | ||
"version": "10.17.1", | ||
"version": "10.17.3", | ||
"main": "out/httpExecutor.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
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
32022
322