electron-updater
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -203,3 +203,3 @@ "use strict"; | ||
} | ||
_this2.emit("update-not-available"); | ||
_this2.emit("update-not-available", versionInfo); | ||
return { | ||
@@ -226,3 +226,3 @@ versionInfo: versionInfo | ||
} | ||
this.emit("update-available"); | ||
this.emit("update-available", versionInfo); | ||
} | ||
@@ -229,0 +229,0 @@ /** |
@@ -9,5 +9,5 @@ declare module "electron-updater/out/api" { | ||
export interface FileInfo { | ||
name: string | ||
url: string | ||
sha2?: string | ||
readonly name: string | ||
readonly url: string | ||
readonly sha2?: string | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -33,5 +33,4 @@ "use strict"; | ||
this.nativeUpdater.on("update-downloaded", () => { | ||
const version = this.versionInfo.version; | ||
if (this.logger != null) { | ||
this.logger.info(`New version ${version} has been downloaded`); | ||
this.logger.info(`New version ${this.versionInfo.version} has been downloaded`); | ||
} | ||
@@ -38,0 +37,0 @@ this.emit("update-downloaded", this.versionInfo); |
@@ -93,9 +93,8 @@ "use strict"; | ||
} | ||
const version = _this.versionInfo.version; | ||
if (logger != null) { | ||
logger.info(`New version ${version} has been downloaded to ${tempFile}`); | ||
logger.info(`New version ${_this.versionInfo.version} has been downloaded to ${tempFile}`); | ||
} | ||
_this.setupPath = tempFile; | ||
_this.addQuitHandler(); | ||
_this.emit("update-downloaded", _this.versionInfo, null, version); | ||
_this.emit("update-downloaded", _this.versionInfo); | ||
return tempFile; | ||
@@ -102,0 +101,0 @@ })(); |
{ | ||
"name": "electron-updater", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "NSIS Auto Updater", | ||
@@ -20,5 +20,5 @@ "main": "out/main.js", | ||
"source-map-support": "^0.4.11", | ||
"electron-builder-http": "12.1.0" | ||
"electron-builder-http": "12.3.0" | ||
}, | ||
"typings": "./out/electron-updater.d.ts" | ||
} |
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
99560
1138
+ Addedelectron-builder-http@12.3.0(transitive)
- Removedelectron-builder-http@12.1.0(transitive)
Updatedelectron-builder-http@12.3.0