graceful-updater 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ class AppUpdator extends eventemitter3_1.EventEmitter {
61
61
  }
62
62
  }
63
63
  async checkForUpdates(executeType = constants_1.ExecuteType.Auto) {
64
- this.logger.info(`checkForUpdates:state is ${this.state}`);
64
+ this.logger.info(`checkForUpdates:state is ${this.state},executeType is ${executeType}`);
65
65
  this.setState(constants_1.StateType.Idle);
66
66
  try {
67
67
  // 新一轮更新流程,更新 startUuid
@@ -96,6 +96,10 @@ class AppUpdator extends eventemitter3_1.EventEmitter {
96
96
  e.customMessage = e.customMessage ? e.customMessage : `${constants_1.InstallResultType.CheckForUpdatesError}_${e.message}`;
97
97
  this.logError(e);
98
98
  this.setState(constants_1.StateType.Idle);
99
+ this.emit(constants_1.EventType.UPDATE_NOT_AVAILABLE, {
100
+ updateInfo: this.updateInfo,
101
+ executeType,
102
+ });
99
103
  }
100
104
  }
101
105
  async downloadUpdate(executeType = constants_1.ExecuteType.User) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graceful-updater",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "graceful-updater is a software updator management solution for Electron applications, It is convenient to complete full software update and dynamic update.",
5
5
  "scripts": {
6
6
  "build": "sh ./build.sh",