@el3um4s/ipc-for-electron-auto-updater
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -20,47 +20,47 @@ interface VersionNumber { | ||
declare const renderer: { | ||
requestVersionNumber: (options: { | ||
requestVersionNumber: (options?: { | ||
callback?: ((arg0: VersionNumber) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<VersionNumber>; | ||
checkForUpdates: (options: { | ||
} | undefined) => Promise<VersionNumber>; | ||
checkForUpdates: (options?: { | ||
callback?: ((arg0: UpdateInfo) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<UpdateInfo>; | ||
startDownloadUpdate: (options: { | ||
} | undefined) => Promise<UpdateInfo>; | ||
startDownloadUpdate: (options?: { | ||
apiKey?: string; | ||
}) => Promise<void>; | ||
quitAndInstall: (options: { | ||
quitAndInstall: (options?: { | ||
apiKey?: string; | ||
}) => Promise<void>; | ||
on: { | ||
getVersionNumber: (options: { | ||
getVersionNumber: (options?: { | ||
callback?: ((arg0: VersionNumber) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<VersionNumber>; | ||
checkingForUpdate: (options: { | ||
} | undefined) => Promise<VersionNumber>; | ||
checkingForUpdate: (options?: { | ||
callback?: () => void; | ||
apiKey?: string; | ||
}) => Promise<void>; | ||
errorOnAutoUpdate: (options: { | ||
errorOnAutoUpdate: (options?: { | ||
callback?: ((arg0: Error) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<Error>; | ||
updateAvailable: (options: { | ||
} | undefined) => Promise<Error>; | ||
updateAvailable: (options?: { | ||
callback?: ((arg0: UpdateInfo) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<UpdateInfo>; | ||
updateNotAvailable: (options: { | ||
} | undefined) => Promise<UpdateInfo>; | ||
updateNotAvailable: (options?: { | ||
callback?: ((arg0: UpdateInfo) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<UpdateInfo>; | ||
downloadProgress: (options: { | ||
} | undefined) => Promise<UpdateInfo>; | ||
downloadProgress: (options?: { | ||
callback?: ((arg0: ProgressInfo) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<ProgressInfo>; | ||
updateDownloaded: (options: { | ||
} | undefined) => Promise<ProgressInfo>; | ||
updateDownloaded: (options?: { | ||
callback?: ((arg0: UpdateDownloadedEvent) => void) | undefined; | ||
apiKey?: string | undefined; | ||
}) => Promise<UpdateDownloadedEvent>; | ||
} | undefined) => Promise<UpdateDownloadedEvent>; | ||
}; | ||
}; | ||
export default renderer; |
@@ -15,3 +15,3 @@ "use strict"; | ||
const getVersionNumber = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -30,3 +30,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const errorOnAutoUpdate = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -44,3 +44,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const checkingForUpdate = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -58,3 +58,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const updateAvailable = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -72,3 +72,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const updateNotAvailable = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -86,3 +86,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const downloadProgress = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -100,3 +100,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const updateDownloaded = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -114,3 +114,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const requestVersionNumber = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -122,3 +122,3 @@ const api = globalThis[apiKey][nameAPI]; | ||
const checkForUpdates = (options) => __awaiter(void 0, void 0, void 0, function* () { | ||
const { callback } = options; | ||
const callback = options === null || options === void 0 ? void 0 : options.callback; | ||
const apiKey = (options === null || options === void 0 ? void 0 : options.apiKey) || defaultApiKey; | ||
@@ -125,0 +125,0 @@ const api = globalThis[apiKey][nameAPI]; |
{ | ||
"name": "@el3um4s/ipc-for-electron-auto-updater", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Allow the renderer to update electron apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
24534