electron-updater
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -118,2 +118,5 @@ "use strict"; | ||
this.logger = global.__test_app ? null : console; | ||
/** | ||
* For type safety you can use signals, e.g. `autoUpdater.signals.updateDownloaded(() => {})` instead of `autoUpdater.on('update-available', () => {})` | ||
*/ | ||
this.signals = new (_api || _load_api()).UpdaterSignal(this); | ||
@@ -120,0 +123,0 @@ this.updateAvailable = false; |
@@ -143,2 +143,3 @@ declare module "electron-updater/out/api" { | ||
/// <reference types="node" /> | ||
/// <reference types="electron" /> | ||
import { RequestHeaders } from "electron-builder-http" | ||
@@ -170,2 +171,5 @@ import { CancellationToken } from "electron-builder-http/out/CancellationToken" | ||
logger: Logger | null | ||
/** | ||
* For type safety you can use signals, e.g. `autoUpdater.signals.updateDownloaded(() => {})` instead of `autoUpdater.on('update-available', () => {})` | ||
*/ | ||
readonly signals: UpdaterSignal | ||
@@ -178,3 +182,3 @@ private _appUpdateConfigPath | ||
private checkForUpdatesPromise | ||
protected readonly app: any | ||
protected readonly app: Electron.App | ||
protected versionInfo: VersionInfo | null | ||
@@ -181,0 +185,0 @@ private fileInfo |
@@ -14,2 +14,8 @@ "use strict"; | ||
var _debug2; | ||
function _load_debug() { | ||
return _debug2 = _interopRequireDefault(require("debug")); | ||
} | ||
var _electron; | ||
@@ -43,3 +49,6 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const NET_SESSION_NAME = exports.NET_SESSION_NAME = "electron-updater"; | ||
const debug = (0, (_debug2 || _load_debug()).default)("electron-builder"); | ||
class ElectronHttpExecutor extends (_electronBuilderHttp || _load_electronBuilderHttp()).HttpExecutor { | ||
@@ -74,4 +83,4 @@ download(url, destination, options) { | ||
if (this.debug.enabled) { | ||
this.debug(`request: ${(0, (_electronBuilderHttp || _load_electronBuilderHttp()).dumpRequestOptions)(options)}`); | ||
if (debug.enabled) { | ||
debug(`request: ${(0, (_electronBuilderHttp || _load_electronBuilderHttp()).dumpRequestOptions)(options)}`); | ||
} | ||
@@ -78,0 +87,0 @@ return cancellationToken.createPromise((resolve, reject, onCancel) => { |
{ | ||
"name": "electron-updater", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "Cross platform updater for electron applications", | ||
@@ -20,5 +20,5 @@ "main": "out/main.js", | ||
"source-map-support": "^0.4.14", | ||
"electron-builder-http": "~15.6.3" | ||
"electron-builder-http": "~16.4.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
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
125732
1325
+ Addedelectron-builder-http@16.4.0(transitive)
- Removedelectron-builder-http@15.6.3(transitive)