@upsoft/patchkit-launcher-runtime-base 2.0.0-alpha.0 → 2.0.0-alpha.10
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.
- package/dist/$local-index.d.ts +11 -16
- package/dist/$local-index.d.ts.map +1 -1
- package/dist/$local-index.js +11 -16
- package/dist/$local-index.js.map +1 -1
- package/dist/app-branch-process-started-events-info.d.ts +5 -0
- package/dist/app-branch-process-started-events-info.d.ts.map +1 -0
- package/dist/app-branch-process-started-events-info.js +6 -0
- package/dist/app-branch-process-started-events-info.js.map +1 -0
- package/dist/app-branch-task-finished-events-info.d.ts +5 -0
- package/dist/app-branch-task-finished-events-info.d.ts.map +1 -0
- package/dist/app-branch-task-finished-events-info.js +6 -0
- package/dist/app-branch-task-finished-events-info.js.map +1 -0
- package/dist/app-branch-task-started-events-info.d.ts +5 -0
- package/dist/app-branch-task-started-events-info.d.ts.map +1 -0
- package/dist/app-branch-task-started-events-info.js +6 -0
- package/dist/app-branch-task-started-events-info.js.map +1 -0
- package/dist/configure-oauth2-loopback-server.d.ts.map +1 -1
- package/dist/configure-oauth2-loopback-server.js +7 -6
- package/dist/configure-oauth2-loopback-server.js.map +1 -1
- package/dist/export-runtime-default-api-funcs.d.ts.map +1 -1
- package/dist/export-runtime-default-api-funcs.js +10 -20
- package/dist/export-runtime-default-api-funcs.js.map +1 -1
- package/dist/fetch-app-branch-process-started-events-info.d.ts +5 -0
- package/dist/fetch-app-branch-process-started-events-info.d.ts.map +1 -0
- package/dist/fetch-app-branch-process-started-events-info.js +12 -0
- package/dist/fetch-app-branch-process-started-events-info.js.map +1 -0
- package/dist/fetch-app-branch-task-finished-events-info.d.ts +5 -0
- package/dist/fetch-app-branch-task-finished-events-info.d.ts.map +1 -0
- package/dist/fetch-app-branch-task-finished-events-info.js +12 -0
- package/dist/fetch-app-branch-task-finished-events-info.js.map +1 -0
- package/dist/fetch-app-branch-task-started-events-info.d.ts +5 -0
- package/dist/fetch-app-branch-task-started-events-info.d.ts.map +1 -0
- package/dist/fetch-app-branch-task-started-events-info.js +12 -0
- package/dist/fetch-app-branch-task-started-events-info.js.map +1 -0
- package/dist/fetch-config.js +2 -2
- package/dist/fetch-oauth2-loopback-requests-info.d.ts +5 -0
- package/dist/fetch-oauth2-loopback-requests-info.d.ts.map +1 -0
- package/dist/fetch-oauth2-loopback-requests-info.js +12 -0
- package/dist/fetch-oauth2-loopback-requests-info.js.map +1 -0
- package/dist/fetch-protocol-requests-info.d.ts +5 -0
- package/dist/fetch-protocol-requests-info.d.ts.map +1 -0
- package/dist/fetch-protocol-requests-info.js +20 -0
- package/dist/fetch-protocol-requests-info.js.map +1 -0
- package/dist/fetch-settings.d.ts.map +1 -1
- package/dist/fetch-settings.js +15 -81
- package/dist/fetch-settings.js.map +1 -1
- package/dist/get-boot-procedure-type.d.ts +1 -2
- package/dist/get-boot-procedure-type.d.ts.map +1 -1
- package/dist/get-boot-procedure-type.js +3 -9
- package/dist/get-boot-procedure-type.js.map +1 -1
- package/dist/initialize-logging.d.ts +3 -1
- package/dist/initialize-logging.d.ts.map +1 -1
- package/dist/initialize-logging.js +2 -2
- package/dist/initialize-logging.js.map +1 -1
- package/dist/initialize-protocol-client.d.ts.map +1 -1
- package/dist/initialize-protocol-client.js +15 -14
- package/dist/initialize-protocol-client.js.map +1 -1
- package/dist/initialize.d.ts +3 -1
- package/dist/initialize.d.ts.map +1 -1
- package/dist/initialize.js +31 -24
- package/dist/initialize.js.map +1 -1
- package/dist/main.d.ts +5 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +13 -6
- package/dist/main.js.map +1 -1
- package/dist/oauth2-loopback-requests-info.d.ts +5 -0
- package/dist/oauth2-loopback-requests-info.d.ts.map +1 -0
- package/dist/oauth2-loopback-requests-info.js +6 -0
- package/dist/oauth2-loopback-requests-info.js.map +1 -0
- package/dist/predefined-boot-procedure-type.d.ts +5 -0
- package/dist/predefined-boot-procedure-type.d.ts.map +1 -0
- package/dist/predefined-boot-procedure-type.js +9 -0
- package/dist/predefined-boot-procedure-type.js.map +1 -0
- package/dist/protocol-requests-info-box.d.ts +5 -0
- package/dist/protocol-requests-info-box.d.ts.map +1 -0
- package/dist/protocol-requests-info-box.js +6 -0
- package/dist/protocol-requests-info-box.js.map +1 -0
- package/dist/retrieve-app-registered-branches-state.d.ts.map +1 -1
- package/dist/retrieve-app-registered-branches-state.js +13 -16
- package/dist/retrieve-app-registered-branches-state.js.map +1 -1
- package/dist/retrieve-apps-registered-branches-state.js +5 -5
- package/dist/retrieve-apps-registered-branches-state.js.map +1 -1
- package/dist/settings-lock.js +1 -1
- package/dist/settings-lock.js.map +1 -1
- package/dist/start-app-branch-move-task.d.ts.map +1 -1
- package/dist/start-app-branch-move-task.js +14 -12
- package/dist/start-app-branch-move-task.js.map +1 -1
- package/dist/start-app-branch-process.d.ts.map +1 -1
- package/dist/start-app-branch-process.js +7 -6
- package/dist/start-app-branch-process.js.map +1 -1
- package/dist/start-app-branch-repair-task.d.ts.map +1 -1
- package/dist/start-app-branch-repair-task.js +14 -12
- package/dist/start-app-branch-repair-task.js.map +1 -1
- package/dist/start-app-branch-uninstall-task.d.ts.map +1 -1
- package/dist/start-app-branch-uninstall-task.js +14 -12
- package/dist/start-app-branch-uninstall-task.js.map +1 -1
- package/dist/start-app-branch-update-task.d.ts.map +1 -1
- package/dist/start-app-branch-update-task.js +14 -12
- package/dist/start-app-branch-update-task.js.map +1 -1
- package/dist/tsconfig.src.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/dist/app-branch-process-started-pending-events-info.d.ts +0 -5
- package/dist/app-branch-process-started-pending-events-info.d.ts.map +0 -1
- package/dist/app-branch-process-started-pending-events-info.js +0 -6
- package/dist/app-branch-process-started-pending-events-info.js.map +0 -1
- package/dist/app-branch-task-finished-pending-events-info.d.ts +0 -5
- package/dist/app-branch-task-finished-pending-events-info.d.ts.map +0 -1
- package/dist/app-branch-task-finished-pending-events-info.js +0 -6
- package/dist/app-branch-task-finished-pending-events-info.js.map +0 -1
- package/dist/app-branch-task-started-pending-events-info.d.ts +0 -5
- package/dist/app-branch-task-started-pending-events-info.d.ts.map +0 -1
- package/dist/app-branch-task-started-pending-events-info.js +0 -6
- package/dist/app-branch-task-started-pending-events-info.js.map +0 -1
- package/dist/boot-procedure-type.d.ts +0 -5
- package/dist/boot-procedure-type.d.ts.map +0 -1
- package/dist/boot-procedure-type.js +0 -9
- package/dist/boot-procedure-type.js.map +0 -1
- package/dist/dismiss-app-branch-process-started-pending-event.d.ts +0 -5
- package/dist/dismiss-app-branch-process-started-pending-event.d.ts.map +0 -1
- package/dist/dismiss-app-branch-process-started-pending-event.js +0 -15
- package/dist/dismiss-app-branch-process-started-pending-event.js.map +0 -1
- package/dist/dismiss-app-branch-task-finished-pending-event.d.ts +0 -5
- package/dist/dismiss-app-branch-task-finished-pending-event.d.ts.map +0 -1
- package/dist/dismiss-app-branch-task-finished-pending-event.js +0 -15
- package/dist/dismiss-app-branch-task-finished-pending-event.js.map +0 -1
- package/dist/dismiss-app-branch-task-started-pending-event.d.ts +0 -5
- package/dist/dismiss-app-branch-task-started-pending-event.d.ts.map +0 -1
- package/dist/dismiss-app-branch-task-started-pending-event.js +0 -15
- package/dist/dismiss-app-branch-task-started-pending-event.js.map +0 -1
- package/dist/dismiss-oauth2-loopback-pending-request.d.ts +0 -5
- package/dist/dismiss-oauth2-loopback-pending-request.d.ts.map +0 -1
- package/dist/dismiss-oauth2-loopback-pending-request.js +0 -15
- package/dist/dismiss-oauth2-loopback-pending-request.js.map +0 -1
- package/dist/dismiss-protocol-pending-request.d.ts +0 -5
- package/dist/dismiss-protocol-pending-request.d.ts.map +0 -1
- package/dist/dismiss-protocol-pending-request.js +0 -16
- package/dist/dismiss-protocol-pending-request.js.map +0 -1
- package/dist/fetch-app-branch-process-started-pending-events-info.d.ts +0 -5
- package/dist/fetch-app-branch-process-started-pending-events-info.d.ts.map +0 -1
- package/dist/fetch-app-branch-process-started-pending-events-info.js +0 -12
- package/dist/fetch-app-branch-process-started-pending-events-info.js.map +0 -1
- package/dist/fetch-app-branch-task-finished-pending-events-info.d.ts +0 -5
- package/dist/fetch-app-branch-task-finished-pending-events-info.d.ts.map +0 -1
- package/dist/fetch-app-branch-task-finished-pending-events-info.js +0 -12
- package/dist/fetch-app-branch-task-finished-pending-events-info.js.map +0 -1
- package/dist/fetch-app-branch-task-started-pending-events-info.d.ts +0 -5
- package/dist/fetch-app-branch-task-started-pending-events-info.d.ts.map +0 -1
- package/dist/fetch-app-branch-task-started-pending-events-info.js +0 -12
- package/dist/fetch-app-branch-task-started-pending-events-info.js.map +0 -1
- package/dist/fetch-oauth2-loopback-pending-requests-info.d.ts +0 -5
- package/dist/fetch-oauth2-loopback-pending-requests-info.d.ts.map +0 -1
- package/dist/fetch-oauth2-loopback-pending-requests-info.js +0 -12
- package/dist/fetch-oauth2-loopback-pending-requests-info.js.map +0 -1
- package/dist/fetch-protocol-pending-requests-info.d.ts +0 -5
- package/dist/fetch-protocol-pending-requests-info.d.ts.map +0 -1
- package/dist/fetch-protocol-pending-requests-info.js +0 -20
- package/dist/fetch-protocol-pending-requests-info.js.map +0 -1
- package/dist/oauth2-loopback-pending-requests-info.d.ts +0 -5
- package/dist/oauth2-loopback-pending-requests-info.d.ts.map +0 -1
- package/dist/oauth2-loopback-pending-requests-info.js +0 -6
- package/dist/oauth2-loopback-pending-requests-info.js.map +0 -1
- package/dist/protocol-pending-requests-info-box.d.ts +0 -5
- package/dist/protocol-pending-requests-info-box.d.ts.map +0 -1
- package/dist/protocol-pending-requests-info-box.js +0 -6
- package/dist/protocol-pending-requests-info-box.js.map +0 -1
package/dist/fetch-config.js
CHANGED
|
@@ -35,7 +35,7 @@ exports.fetchConfig = _1.__.declareManagedFunc()
|
|
|
35
35
|
const config = _1.__.deserializeValueFromJson({
|
|
36
36
|
json: configFileContents,
|
|
37
37
|
});
|
|
38
|
-
if (!(() => { const $io0 = input => "linux" === input.targetOperatingSystemPlatform && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.
|
|
38
|
+
if (!(() => { const $io0 = input => "linux" === input.targetOperatingSystemPlatform && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.isAutoShowingWindowOnProtocolRequestRegisteredEnabled && "boolean" === typeof input.isAutoFocusingWindowOnProtocolRequestRegisteredEnabled && (undefined === input.tray || "object" === typeof input.tray && null !== input.tray && false === Array.isArray(input.tray) && $io24(input.tray)) && ("object" === typeof input.loadingThemeErrorDialog && null !== input.loadingThemeErrorDialog && $io25(input.loadingThemeErrorDialog)) && ("object" === typeof input.logsCollectedDialog && null !== input.logsCollectedDialog && $io27(input.logsCollectedDialog)) && ("object" === typeof input.crashedDialog && null !== input.crashedDialog && $io28(input.crashedDialog)) && (undefined === input.bundledThemeDirAssetId || "string" === typeof input.bundledThemeDirAssetId) && (undefined === input.bundledThemeServerMaskOrigin || "string" === typeof input.bundledThemeServerMaskOrigin) && (undefined === input.overrideThemeUrl || "string" === typeof input.overrideThemeUrl) && (undefined === input.overrideLibkappsDirPath || "string" === typeof input.overrideLibkappsDirPath) && (undefined === input.overrideRootDirPath || "string" === typeof input.overrideRootDirPath) && (undefined === input.overrideUserDataDirPath || "string" === typeof input.overrideUserDataDirPath) && (undefined === input.patchKitOverrideMainServiceApiUrl || "string" === typeof input.patchKitOverrideMainServiceApiUrl) && (undefined === input.patchKitOverrideMainServiceApiProxyUrl || "string" === typeof input.patchKitOverrideMainServiceApiProxyUrl) && (undefined === input.patchKitOverrideMainServiceApiCacheUrl || "string" === typeof input.patchKitOverrideMainServiceApiCacheUrl) && (undefined === input.patchKitOverrideStatsServiceApiUrl || "string" === typeof input.patchKitOverrideStatsServiceApiUrl) && (undefined === input.patchKitOverrideKeysServiceApiUrl || "string" === typeof input.patchKitOverrideKeysServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiProxyUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiProxyUrl) && (undefined === input.patchKitOverrideLauncherThemesServiceApiUrl || "string" === typeof input.patchKitOverrideLauncherThemesServiceApiUrl); const $io1 = input => "string" === typeof input.versionLabel && ("prod" === input.mode || "dev" === input.mode); const $io2 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io3 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io4 = input => Object.keys(input).every(key => {
|
|
39
39
|
const value = input[key];
|
|
40
40
|
if (undefined === value)
|
|
41
41
|
return true;
|
|
@@ -70,7 +70,7 @@ exports.fetchConfig = _1.__.declareManagedFunc()
|
|
|
70
70
|
if (undefined === value)
|
|
71
71
|
return true;
|
|
72
72
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io22(value);
|
|
73
|
-
}); const $io22 = input => true; const $io23 = input => "string" === typeof input.id; const $io24 = input => true; const $io25 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate && (undefined === input.supportButton || "object" === typeof input.supportButton && null !== input.supportButton && $io26(input.supportButton)); const $io26 = input => "string" === typeof input.labelTemplate && "string" === typeof input.urlTemplate; const $io27 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io28 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io29 = input => "macos" === input.targetOperatingSystemPlatform && ("object" === typeof input.moveToApplicationsFolderIsRequiredDialog && null !== input.moveToApplicationsFolderIsRequiredDialog && $io30(input.moveToApplicationsFolderIsRequiredDialog)) && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.isAutoShowingWindowOnProtocolPendingRequestRegisteredEnabled && "boolean" === typeof input.isAutoFocusingWindowOnProtocolPendingRequestRegisteredEnabled && (undefined === input.tray || "object" === typeof input.tray && null !== input.tray && false === Array.isArray(input.tray) && $io24(input.tray)) && ("object" === typeof input.loadingThemeErrorDialog && null !== input.loadingThemeErrorDialog && $io25(input.loadingThemeErrorDialog)) && ("object" === typeof input.logsCollectedDialog && null !== input.logsCollectedDialog && $io27(input.logsCollectedDialog)) && ("object" === typeof input.crashedDialog && null !== input.crashedDialog && $io28(input.crashedDialog)) && (undefined === input.bundledThemeDirAssetId || "string" === typeof input.bundledThemeDirAssetId) && (undefined === input.bundledThemeServerMaskOrigin || "string" === typeof input.bundledThemeServerMaskOrigin) && (undefined === input.overrideThemeUrl || "string" === typeof input.overrideThemeUrl) && (undefined === input.overrideLibkappsDirPath || "string" === typeof input.overrideLibkappsDirPath) && (undefined === input.overrideRootDirPath || "string" === typeof input.overrideRootDirPath) && (undefined === input.overrideUserDataDirPath || "string" === typeof input.overrideUserDataDirPath) && (undefined === input.patchKitOverrideMainServiceApiUrl || "string" === typeof input.patchKitOverrideMainServiceApiUrl) && (undefined === input.patchKitOverrideMainServiceApiProxyUrl || "string" === typeof input.patchKitOverrideMainServiceApiProxyUrl) && (undefined === input.patchKitOverrideMainServiceApiCacheUrl || "string" === typeof input.patchKitOverrideMainServiceApiCacheUrl) && (undefined === input.patchKitOverrideStatsServiceApiUrl || "string" === typeof input.patchKitOverrideStatsServiceApiUrl) && (undefined === input.patchKitOverrideKeysServiceApiUrl || "string" === typeof input.patchKitOverrideKeysServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiProxyUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiProxyUrl) && (undefined === input.patchKitOverrideLauncherThemesServiceApiUrl || "string" === typeof input.patchKitOverrideLauncherThemesServiceApiUrl); const $io30 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io31 = input => "windows" === input.targetOperatingSystemPlatform && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.isAutoShowingWindowOnProtocolPendingRequestRegisteredEnabled && "boolean" === typeof input.isAutoFocusingWindowOnProtocolPendingRequestRegisteredEnabled && (undefined === input.tray || "object" === typeof input.tray && null !== input.tray && false === Array.isArray(input.tray) && $io24(input.tray)) && ("object" === typeof input.loadingThemeErrorDialog && null !== input.loadingThemeErrorDialog && $io25(input.loadingThemeErrorDialog)) && ("object" === typeof input.logsCollectedDialog && null !== input.logsCollectedDialog && $io27(input.logsCollectedDialog)) && ("object" === typeof input.crashedDialog && null !== input.crashedDialog && $io28(input.crashedDialog)) && (undefined === input.bundledThemeDirAssetId || "string" === typeof input.bundledThemeDirAssetId) && (undefined === input.bundledThemeServerMaskOrigin || "string" === typeof input.bundledThemeServerMaskOrigin) && (undefined === input.overrideThemeUrl || "string" === typeof input.overrideThemeUrl) && (undefined === input.overrideLibkappsDirPath || "string" === typeof input.overrideLibkappsDirPath) && (undefined === input.overrideRootDirPath || "string" === typeof input.overrideRootDirPath) && (undefined === input.overrideUserDataDirPath || "string" === typeof input.overrideUserDataDirPath) && (undefined === input.patchKitOverrideMainServiceApiUrl || "string" === typeof input.patchKitOverrideMainServiceApiUrl) && (undefined === input.patchKitOverrideMainServiceApiProxyUrl || "string" === typeof input.patchKitOverrideMainServiceApiProxyUrl) && (undefined === input.patchKitOverrideMainServiceApiCacheUrl || "string" === typeof input.patchKitOverrideMainServiceApiCacheUrl) && (undefined === input.patchKitOverrideStatsServiceApiUrl || "string" === typeof input.patchKitOverrideStatsServiceApiUrl) && (undefined === input.patchKitOverrideKeysServiceApiUrl || "string" === typeof input.patchKitOverrideKeysServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiProxyUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiProxyUrl) && (undefined === input.patchKitOverrideLauncherThemesServiceApiUrl || "string" === typeof input.patchKitOverrideLauncherThemesServiceApiUrl); const $iu0 = input => (() => {
|
|
73
|
+
}); const $io22 = input => true; const $io23 = input => "string" === typeof input.id; const $io24 = input => true; const $io25 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate && (undefined === input.supportButton || "object" === typeof input.supportButton && null !== input.supportButton && $io26(input.supportButton)); const $io26 = input => "string" === typeof input.labelTemplate && "string" === typeof input.urlTemplate; const $io27 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io28 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io29 = input => "macos" === input.targetOperatingSystemPlatform && ("object" === typeof input.moveToApplicationsFolderIsRequiredDialog && null !== input.moveToApplicationsFolderIsRequiredDialog && $io30(input.moveToApplicationsFolderIsRequiredDialog)) && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.isAutoShowingWindowOnProtocolRequestRegisteredEnabled && "boolean" === typeof input.isAutoFocusingWindowOnProtocolRequestRegisteredEnabled && (undefined === input.tray || "object" === typeof input.tray && null !== input.tray && false === Array.isArray(input.tray) && $io24(input.tray)) && ("object" === typeof input.loadingThemeErrorDialog && null !== input.loadingThemeErrorDialog && $io25(input.loadingThemeErrorDialog)) && ("object" === typeof input.logsCollectedDialog && null !== input.logsCollectedDialog && $io27(input.logsCollectedDialog)) && ("object" === typeof input.crashedDialog && null !== input.crashedDialog && $io28(input.crashedDialog)) && (undefined === input.bundledThemeDirAssetId || "string" === typeof input.bundledThemeDirAssetId) && (undefined === input.bundledThemeServerMaskOrigin || "string" === typeof input.bundledThemeServerMaskOrigin) && (undefined === input.overrideThemeUrl || "string" === typeof input.overrideThemeUrl) && (undefined === input.overrideLibkappsDirPath || "string" === typeof input.overrideLibkappsDirPath) && (undefined === input.overrideRootDirPath || "string" === typeof input.overrideRootDirPath) && (undefined === input.overrideUserDataDirPath || "string" === typeof input.overrideUserDataDirPath) && (undefined === input.patchKitOverrideMainServiceApiUrl || "string" === typeof input.patchKitOverrideMainServiceApiUrl) && (undefined === input.patchKitOverrideMainServiceApiProxyUrl || "string" === typeof input.patchKitOverrideMainServiceApiProxyUrl) && (undefined === input.patchKitOverrideMainServiceApiCacheUrl || "string" === typeof input.patchKitOverrideMainServiceApiCacheUrl) && (undefined === input.patchKitOverrideStatsServiceApiUrl || "string" === typeof input.patchKitOverrideStatsServiceApiUrl) && (undefined === input.patchKitOverrideKeysServiceApiUrl || "string" === typeof input.patchKitOverrideKeysServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiProxyUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiProxyUrl) && (undefined === input.patchKitOverrideLauncherThemesServiceApiUrl || "string" === typeof input.patchKitOverrideLauncherThemesServiceApiUrl); const $io30 = input => "string" === typeof input.titleTemplate && "string" === typeof input.messageTemplate; const $io31 = input => "windows" === input.targetOperatingSystemPlatform && "string" === typeof input.id && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.companyId && "string" === typeof input.companyName && "string" === typeof input.secret && ("object" === typeof input.runtime && null !== input.runtime && $io1(input.runtime)) && "boolean" === typeof input.isUpdatingRuntimeEnabled && "boolean" === typeof input.isDefaultAutoProcessingRuntimeUpdateEnabled && ("optional" === input.defaultAutoProcessingRuntimeUpdateMode || "required" === input.defaultAutoProcessingRuntimeUpdateMode) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog && $io2(input.defaultAutoProcessingRuntimeUpdateOptionalModeUpdateAvailableDialog)) && ("object" === typeof input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && null !== input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog && $io3(input.defaultAutoProcessingRuntimeUpdateRequiredModeUpdateAvailableDialog)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io4(input.assets)) && "string" === typeof input.appsCatalogId && ("object" === typeof input.appMainBranchDefaultRootDir && null !== input.appMainBranchDefaultRootDir && $io6(input.appMainBranchDefaultRootDir)) && ("object" === typeof input.appSecondaryBranchDefaultRootDir && null !== input.appSecondaryBranchDefaultRootDir && $io6(input.appSecondaryBranchDefaultRootDir)) && "boolean" === typeof input.isAppBranchNotDefaultRootDirAllowed && "boolean" === typeof input.isStartingQuitTaskAllowedIfAnyAppBranchProcessExists && ("object" === typeof input.preconfiguredApps && null !== input.preconfiguredApps && false === Array.isArray(input.preconfiguredApps) && $io7(input.preconfiguredApps)) && ("object" === typeof input.window && null !== input.window && $io17(input.window)) && ("object" === typeof input.agreements && null !== input.agreements && false === Array.isArray(input.agreements) && $io19(input.agreements)) && (undefined === input.statsAgreementId || "string" === typeof input.statsAgreementId) && "boolean" === typeof input.isStatsEntryAnonymous && (undefined === input.reportingErrorAgreementId || "string" === typeof input.reportingErrorAgreementId) && ("object" === typeof input.availableLangs && null !== input.availableLangs && false === Array.isArray(input.availableLangs) && $io21(input.availableLangs)) && "string" === typeof input.fallbackLangTag && (undefined === input.protocol || "object" === typeof input.protocol && null !== input.protocol && $io23(input.protocol)) && "boolean" === typeof input.isAutoShowingWindowOnProtocolRequestRegisteredEnabled && "boolean" === typeof input.isAutoFocusingWindowOnProtocolRequestRegisteredEnabled && (undefined === input.tray || "object" === typeof input.tray && null !== input.tray && false === Array.isArray(input.tray) && $io24(input.tray)) && ("object" === typeof input.loadingThemeErrorDialog && null !== input.loadingThemeErrorDialog && $io25(input.loadingThemeErrorDialog)) && ("object" === typeof input.logsCollectedDialog && null !== input.logsCollectedDialog && $io27(input.logsCollectedDialog)) && ("object" === typeof input.crashedDialog && null !== input.crashedDialog && $io28(input.crashedDialog)) && (undefined === input.bundledThemeDirAssetId || "string" === typeof input.bundledThemeDirAssetId) && (undefined === input.bundledThemeServerMaskOrigin || "string" === typeof input.bundledThemeServerMaskOrigin) && (undefined === input.overrideThemeUrl || "string" === typeof input.overrideThemeUrl) && (undefined === input.overrideLibkappsDirPath || "string" === typeof input.overrideLibkappsDirPath) && (undefined === input.overrideRootDirPath || "string" === typeof input.overrideRootDirPath) && (undefined === input.overrideUserDataDirPath || "string" === typeof input.overrideUserDataDirPath) && (undefined === input.patchKitOverrideMainServiceApiUrl || "string" === typeof input.patchKitOverrideMainServiceApiUrl) && (undefined === input.patchKitOverrideMainServiceApiProxyUrl || "string" === typeof input.patchKitOverrideMainServiceApiProxyUrl) && (undefined === input.patchKitOverrideMainServiceApiCacheUrl || "string" === typeof input.patchKitOverrideMainServiceApiCacheUrl) && (undefined === input.patchKitOverrideStatsServiceApiUrl || "string" === typeof input.patchKitOverrideStatsServiceApiUrl) && (undefined === input.patchKitOverrideKeysServiceApiUrl || "string" === typeof input.patchKitOverrideKeysServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiUrl) && (undefined === input.patchKitOverrideAppCatalogsServiceApiProxyUrl || "string" === typeof input.patchKitOverrideAppCatalogsServiceApiProxyUrl) && (undefined === input.patchKitOverrideLauncherThemesServiceApiUrl || "string" === typeof input.patchKitOverrideLauncherThemesServiceApiUrl); const $iu0 = input => (() => {
|
|
74
74
|
if ("linux" === input.targetOperatingSystemPlatform)
|
|
75
75
|
return $io0(input);
|
|
76
76
|
else if ("macos" === input.targetOperatingSystemPlatform)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { _, __ } from "./$";
|
|
2
|
+
export declare const fetchOauth2LoopbackRequestsInfo: __.ManagedAsyncFunc<"fetchOauth2LoopbackRequestsInfo", ({}: {}) => Promise<{
|
|
3
|
+
[oauth2LoopbackRequestId: string]: _.Oauth2LoopbackRequestInfo;
|
|
4
|
+
}>>;
|
|
5
|
+
//# sourceMappingURL=fetch-oauth2-loopback-requests-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-oauth2-loopback-requests-info.d.ts","sourceRoot":"","sources":["../src/fetch-oauth2-loopback-requests-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,CAAC;AAI5B,eAAO,MAAQ,+BAA+B;;GAQ3C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchOauth2LoopbackRequestsInfo = void 0;
|
|
4
|
+
const _1 = require("./$");
|
|
5
|
+
const oauth2_loopback_requests_info_1 = require("./oauth2-loopback-requests-info");
|
|
6
|
+
exports.fetchOauth2LoopbackRequestsInfo = _1.__.declareManagedFunc()
|
|
7
|
+
.async()
|
|
8
|
+
.def(_1._.fetchOauth2LoopbackRequestsInfoDef)
|
|
9
|
+
.execute(async () => {
|
|
10
|
+
return oauth2_loopback_requests_info_1.OAUTH2_LOOPBACK_REQUESTS_INFO.value;
|
|
11
|
+
}).fetchOauth2LoopbackRequestsInfo;
|
|
12
|
+
//# sourceMappingURL=fetch-oauth2-loopback-requests-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-oauth2-loopback-requests-info.js","sourceRoot":"","sources":["../src/fetch-oauth2-loopback-requests-info.ts"],"names":[],"mappings":";;;AAAA,0BAA4B;AAE5B,mFAAgF;AAEjE,uCAA+B,GAAK,KAAE,CAAC,kBAAkB,EAAE;KACvE,KAAK,EAAE;KACP,GAAG,CAAC,IAAC,CAAC,kCAAkC,CAAC;KACzC,OAAO,CACN,KAAK,IAAI,EAAE;IAET,OAAO,6DAA6B,CAAC,KAAK,CAAC;AAC7C,CAAC,CACF,iCAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-protocol-requests-info.d.ts","sourceRoot":"","sources":["../src/fetch-protocol-requests-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,KAAK,CAAC;AAI5B,eAAO,MAAQ,yBAAyB;;GAuBrC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchProtocolRequestsInfo = void 0;
|
|
4
|
+
const _1 = require("./$");
|
|
5
|
+
const protocol_requests_info_box_1 = require("./protocol-requests-info-box");
|
|
6
|
+
exports.fetchProtocolRequestsInfo = _1.__.declareManagedFunc()
|
|
7
|
+
.async()
|
|
8
|
+
.def(_1._.fetchProtocolRequestsInfoDef)
|
|
9
|
+
.execute(async () => {
|
|
10
|
+
const protocolRequestsInfo = {};
|
|
11
|
+
for (const [protocolRequestId, protocolRequestInfoBox] of Object.entries(protocol_requests_info_box_1.PROTOCOL_REQUESTS_INFO_BOX.value)) {
|
|
12
|
+
const protocolRequestInfo = protocolRequestInfoBox.value;
|
|
13
|
+
if (protocolRequestInfo !== undefined) {
|
|
14
|
+
protocolRequestsInfo[protocolRequestId] =
|
|
15
|
+
protocolRequestInfo;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return protocolRequestsInfo;
|
|
19
|
+
}).fetchProtocolRequestsInfo;
|
|
20
|
+
//# sourceMappingURL=fetch-protocol-requests-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-protocol-requests-info.js","sourceRoot":"","sources":["../src/fetch-protocol-requests-info.ts"],"names":[],"mappings":";;;AAAA,0BAA4B;AAE5B,6EAA0E;AAE3D,iCAAyB,GAAK,KAAE,CAAC,kBAAkB,EAAE;KACjE,KAAK,EAAE;KACP,GAAG,CAAC,IAAC,CAAC,4BAA4B,CAAC;KACnC,OAAO,CACN,KAAK,IAAI,EAAE;IAET,MAAM,oBAAoB,GAEtB,EAAE,CAAC;IAEP,KAAK,MAAM,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,uDAA0B,CAAC,KAAK,CAAC,EAC1G,CAAC;QACC,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,KAAK,CAAC;QAEzD,IAAI,mBAAmB,KAAK,SAAS,EACrC,CAAC;YACC,oBAAoB,CAAC,iBAAiB,CAAC;gBACrC,mBAAmB,CAAC;QACxB,CAAC;IACH,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CACF,2BAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-settings.d.ts","sourceRoot":"","sources":["../src/fetch-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;AAIrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch-settings.d.ts","sourceRoot":"","sources":["../src/fetch-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;AAIrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,eAAO,MAAQ,aAAa,6CAMd,OAAO,CAAC,QAAQ,CAAC,CA4B5B,CAAC"}
|
package/dist/fetch-settings.js
CHANGED
|
@@ -1,98 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
3
|
-
if (value !== null && value !== void 0) {
|
|
4
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
5
|
-
var dispose, inner;
|
|
6
|
-
if (async) {
|
|
7
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
8
|
-
dispose = value[Symbol.asyncDispose];
|
|
9
|
-
}
|
|
10
|
-
if (dispose === void 0) {
|
|
11
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
12
|
-
dispose = value[Symbol.dispose];
|
|
13
|
-
if (async) inner = dispose;
|
|
14
|
-
}
|
|
15
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
16
|
-
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
17
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
18
|
-
}
|
|
19
|
-
else if (async) {
|
|
20
|
-
env.stack.push({ async: true });
|
|
21
|
-
}
|
|
22
|
-
return value;
|
|
23
|
-
};
|
|
24
|
-
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
25
|
-
return function (env) {
|
|
26
|
-
function fail(e) {
|
|
27
|
-
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
28
|
-
env.hasError = true;
|
|
29
|
-
}
|
|
30
|
-
var r, s = 0;
|
|
31
|
-
function next() {
|
|
32
|
-
while (r = env.stack.pop()) {
|
|
33
|
-
try {
|
|
34
|
-
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
35
|
-
if (r.dispose) {
|
|
36
|
-
var result = r.dispose.call(r.value);
|
|
37
|
-
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
38
|
-
}
|
|
39
|
-
else s |= 1;
|
|
40
|
-
}
|
|
41
|
-
catch (e) {
|
|
42
|
-
fail(e);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
46
|
-
if (env.hasError) throw env.error;
|
|
47
|
-
}
|
|
48
|
-
return next();
|
|
49
|
-
};
|
|
50
|
-
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
51
|
-
var e = new Error(message);
|
|
52
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
53
|
-
});
|
|
54
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
3
|
exports.fetchSettings = void 0;
|
|
56
4
|
const _1 = require("./$");
|
|
57
5
|
const convert_unversioned_settings_to_settings_1_1 = require("./convert-unversioned-settings-to-settings-1");
|
|
58
6
|
const get_settings_file_store_info_1 = require("./get-settings-file-store-info");
|
|
59
|
-
const settings_lock_1 = require("./settings-lock");
|
|
60
7
|
exports.fetchSettings = _1.__.declareManagedFunc()
|
|
61
8
|
.name(`fetchSettings`)
|
|
62
9
|
.namespace(_1.$namespace)
|
|
63
10
|
.errorTypes([])
|
|
64
11
|
.async()
|
|
65
12
|
.execute(async () => {
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
if (settingsFileStoreContents === undefined) {
|
|
75
|
-
return {
|
|
76
|
-
prefferedLangTag: undefined,
|
|
77
|
-
apps: {},
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
if (settingsFileStoreContents.version === undefined) {
|
|
81
|
-
return (0, convert_unversioned_settings_to_settings_1_1.convertUnversionedSettingsToSettings1)({
|
|
82
|
-
unversionedSettings: settingsFileStoreContents.data,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
if (settingsFileStoreContents.version === 1) {
|
|
86
|
-
return settingsFileStoreContents.data;
|
|
87
|
-
}
|
|
88
|
-
_1.__.checkInvalidAssertion();
|
|
13
|
+
const settingsFileStoreContents = await _1.__.fetchFileStoreContent({
|
|
14
|
+
fileStoreInfo: (0, get_settings_file_store_info_1.getSettingsFileStoreInfo)(),
|
|
15
|
+
});
|
|
16
|
+
if (settingsFileStoreContents === undefined) {
|
|
17
|
+
return {
|
|
18
|
+
prefferedLangTag: undefined,
|
|
19
|
+
apps: {},
|
|
20
|
+
};
|
|
89
21
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
22
|
+
if (settingsFileStoreContents.version === undefined) {
|
|
23
|
+
return (0, convert_unversioned_settings_to_settings_1_1.convertUnversionedSettingsToSettings1)({
|
|
24
|
+
unversionedSettings: settingsFileStoreContents.data,
|
|
25
|
+
});
|
|
93
26
|
}
|
|
94
|
-
|
|
95
|
-
|
|
27
|
+
if (settingsFileStoreContents.version === 1) {
|
|
28
|
+
return settingsFileStoreContents.data;
|
|
96
29
|
}
|
|
30
|
+
_1.__.checkInvalidAssertion();
|
|
97
31
|
}).fetchSettings;
|
|
98
32
|
//# sourceMappingURL=fetch-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-settings.js","sourceRoot":"","sources":["../src/fetch-settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-settings.js","sourceRoot":"","sources":["../src/fetch-settings.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC,6GAAqG;AACrG,iFAA0E;AAK3D,qBAAa,GAAK,KAAE,CAAC,kBAAkB,EAAE;KACrD,IAAI,CAAC,eAAe,CAAC;KACrB,SAAS,CAAC,aAAU,CAAC;KACrB,UAAU,CAAC,EAAE,CAAC;KACd,KAAK,EAAE;KACP,OAAO,CACN,KAAK,IAAuB,EAAE;IAE5B,MAAM,yBAAyB,GAAG,MAAM,KAAE,CAAC,qBAAqB,CAAC;QAC/D,aAAa,EAAE,IAAA,uDAAwB,GAAE;KAC1C,CAAC,CAAC;IAEH,IAAI,yBAAyB,KAAK,SAAS,EAC3C,CAAC;QACC,OAAO;YACL,gBAAgB,EAAE,SAAS;YAC3B,IAAI,EAAE,EAAE;SACT,CAAC;IACJ,CAAC;IAED,IAAI,yBAAyB,CAAC,OAAO,KAAK,SAAS,EACnD,CAAC;QACC,OAAO,IAAA,kFAAqC,EAAC;YAC3C,mBAAmB,EAAE,yBAAyB,CAAC,IAA2B;SAC3E,CAAC,CAAC;IACL,CAAC;IAED,IAAI,yBAAyB,CAAC,OAAO,KAAK,CAAC,EAC3C,CAAC;QACC,OAAO,yBAAyB,CAAC,IAAiB,CAAC;IACrD,CAAC;IAED,KAAE,CAAC,qBAAqB,EAAE,CAAC;AAC7B,CAAC,CACF,eAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { __ } from "./$";
|
|
2
|
-
|
|
3
|
-
export declare const getBootProcedureType: __.ManagedSyncFunc<"getBootProcedureType", () => BootProcedureType>;
|
|
2
|
+
export declare const getBootProcedureType: __.ManagedSyncFunc<"getBootProcedureType", () => string>;
|
|
4
3
|
//# sourceMappingURL=get-boot-procedure-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-boot-procedure-type.d.ts","sourceRoot":"","sources":["../src/get-boot-procedure-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-boot-procedure-type.d.ts","sourceRoot":"","sources":["../src/get-boot-procedure-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;AAIrC,eAAO,MAAQ,oBAAoB,mDAM3B,MAAM,CAwBX,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBootProcedureType = void 0;
|
|
4
4
|
const _1 = require("./$");
|
|
5
|
-
const
|
|
5
|
+
const predefined_boot_procedure_type_1 = require("./predefined-boot-procedure-type");
|
|
6
6
|
exports.getBootProcedureType = _1.__.declareManagedFunc()
|
|
7
7
|
.name(`getBootProcedureType`)
|
|
8
8
|
.namespace(_1.$namespace)
|
|
@@ -19,14 +19,8 @@ exports.getBootProcedureType = _1.__.declareManagedFunc()
|
|
|
19
19
|
partial: true,
|
|
20
20
|
});
|
|
21
21
|
if (typeof overrideBootProcedureTypeArgValue === `string`) {
|
|
22
|
-
|
|
23
|
-
return boot_procedure_type_1.BootProcedureType.MainBootProcedure;
|
|
24
|
-
}
|
|
25
|
-
if (overrideBootProcedureTypeArgValue === boot_procedure_type_1.BootProcedureType.UninstallBootProcedure) {
|
|
26
|
-
return boot_procedure_type_1.BootProcedureType.UninstallBootProcedure;
|
|
27
|
-
}
|
|
28
|
-
_1.__.checkInvalidAssertion();
|
|
22
|
+
return overrideBootProcedureTypeArgValue;
|
|
29
23
|
}
|
|
30
|
-
return
|
|
24
|
+
return predefined_boot_procedure_type_1.PredefinedBootProcedureType.MainBootProcedure;
|
|
31
25
|
}).getBootProcedureType;
|
|
32
26
|
//# sourceMappingURL=get-boot-procedure-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-boot-procedure-type.js","sourceRoot":"","sources":["../src/get-boot-procedure-type.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC
|
|
1
|
+
{"version":3,"file":"get-boot-procedure-type.js","sourceRoot":"","sources":["../src/get-boot-procedure-type.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC,qFAA+E;AAEhE,4BAAoB,GAAK,KAAE,CAAC,kBAAkB,EAAE;KAC5D,IAAI,CAAC,sBAAsB,CAAC;KAC5B,SAAS,CAAC,aAAU,CAAC;KACrB,UAAU,CAAC,EAAE,CAAC;KACd,IAAI,EAAE;KACN,OAAO,CACN,GAAW,EAAE;IAEX,MAAM,EACJ,yBAAyB,EAAE,iCAAiC,GAC7D,GAAG,KAAE,CAAC,gBAAgB,CACrB;QACE;YACE,IAAI,EAAE,2BAA2B;SAClC;KACF,EACD;QACE,iGAAiG;QACjG,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;QACvB,OAAO,EAAE,IAAI;KACd,CACF,CAAC;IAEF,IAAI,OAAO,iCAAiC,KAAK,QAAQ,EACzD,CAAC;QACC,OAAO,iCAAiC,CAAC;IAC3C,CAAC;IAED,OAAO,4DAA2B,CAAC,iBAAiB,CAAC;AACvD,CAAC,CACF,sBAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { __ } from "./$";
|
|
2
|
-
export declare const initializeLogging: __.ManagedAsyncFunc<"initializeLogging", (
|
|
2
|
+
export declare const initializeLogging: __.ManagedAsyncFunc<"initializeLogging", ({ bootProcedureType, }: {
|
|
3
|
+
bootProcedureType: string;
|
|
4
|
+
}) => Promise<void>>;
|
|
3
5
|
//# sourceMappingURL=initialize-logging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-logging.d.ts","sourceRoot":"","sources":["../src/initialize-logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;AAIrC,eAAO,MAAQ,iBAAiB
|
|
1
|
+
{"version":3,"file":"initialize-logging.d.ts","sourceRoot":"","sources":["../src/initialize-logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAc,MAAM,KAAK,CAAC;AAIrC,eAAO,MAAQ,iBAAiB,oEASvB;IACD,iBAAiB,EAAE,MAAM,CAAC;CAC3B,mBAiLJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ exports.initializeLogging = _1.__.declareManagedFunc()
|
|
|
8
8
|
.namespace(_1.$namespace)
|
|
9
9
|
.errorTypes([])
|
|
10
10
|
.async()
|
|
11
|
-
.execute(async () => {
|
|
11
|
+
.execute(async ({ bootProcedureType, }) => {
|
|
12
12
|
_1.__.IS_WRITING_TRACE_LOG_ALLOWED.value = true;
|
|
13
13
|
// eslint-disable-next-line no-console
|
|
14
14
|
const consoleLog = console.log;
|
|
@@ -19,7 +19,7 @@ exports.initializeLogging = _1.__.declareManagedFunc()
|
|
|
19
19
|
_1.__.$fs.mkdirSync(logsDirPath, {
|
|
20
20
|
recursive: true,
|
|
21
21
|
});
|
|
22
|
-
const logsFilePath = _1.__.$path.resolve(logsDirPath, `logs.yml`);
|
|
22
|
+
const logsFilePath = _1.__.$path.resolve(logsDirPath, `logs-${bootProcedureType}.yml`);
|
|
23
23
|
const logsFileWriteStream = _1.__.$fs.createWriteStream(logsFilePath);
|
|
24
24
|
await new Promise((resolvePromise) => {
|
|
25
25
|
logsFileWriteStream.once(`ready`, resolvePromise);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-logging.js","sourceRoot":"","sources":["../src/initialize-logging.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC,2DAAqD;AAEtC,yBAAiB,GAAK,KAAE,CAAC,kBAAkB,EAAE;KACzD,IAAI,CAAC,mBAAmB,CAAC;KACzB,SAAS,CAAC,aAAU,CAAC;KACrB,UAAU,CAAC,EAAE,CAAC;KACd,KAAK,EAAE;KACP,OAAO,CACN,KAAK,
|
|
1
|
+
{"version":3,"file":"initialize-logging.js","sourceRoot":"","sources":["../src/initialize-logging.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAErC,2DAAqD;AAEtC,yBAAiB,GAAK,KAAE,CAAC,kBAAkB,EAAE;KACzD,IAAI,CAAC,mBAAmB,CAAC;KACzB,SAAS,CAAC,aAAU,CAAC;KACrB,UAAU,CAAC,EAAE,CAAC;KACd,KAAK,EAAE;KACP,OAAO,CACN,KAAK,EACH,EACE,iBAAiB,GAGlB,EACD,EAAE;IAEF,KAAE,CAAC,4BAA4B,CAAC,KAAK,GAAG,IAAI,CAAC;IAE7C,sCAAsC;IACt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YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YACtD,CAAC;YACD,WACA,CAAC;YACD,CAAC;QACH,CAAC,CAAC;QAEF,sCAAsC;QACtC,OAAO,CAAC,KAAK,GAAG,CAAC,KAAc,EAAE,EAAE;YAEjC,KAAE,CAAC,aAAa,CAAC;gBACf,IAAI,EAAE,kBAAkB;gBACxB,KAAK;aACN,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,sCAAsC;QACtC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAY,EAAE,EAAE;YAE7B,KAAE,CAAC,aAAa,CAAC;gBACf,IAAI,EAAE,gBAAgB;gBACtB,GAAG;aACJ,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,sCAAsC;QACtC,OAAO,CAAC,IAAI,GAAG,CAAC,IAAa,EAAE,EAAE;YAE/B,KAAE,CAAC,aAAa,CAAC;gBACf,IAAI,EAAE,iBAAiB;gBACvB,IAAI;aACL,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,sCAAsC;QACtC,OAAO,CAAC,KAAK,GAAG,CAAC,KAAc,EAAE,EAAE;YAEjC,KAAE,CAAC,aAAa,CAAC;gBACf,IAAI,EAAE,kBAAkB;gBACxB,KAAK;aACN,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EACR,CAAC;QACC,YAAY,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CACF,mBAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-protocol-client.d.ts","sourceRoot":"","sources":["../src/initialize-protocol-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,EAAE,EAAc,MAAM,KAAK,CAAC;AAQxC,eAAO,MAAQ,wBAAwB,
|
|
1
|
+
{"version":3,"file":"initialize-protocol-client.d.ts","sourceRoot":"","sources":["../src/initialize-protocol-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,EAAE,EAAc,MAAM,KAAK,CAAC;AAQxC,eAAO,MAAQ,wBAAwB,sEAwFpC,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.initializeProtocolClient = void 0;
|
|
|
4
4
|
const _1 = require("./$");
|
|
5
5
|
const focus_window_1 = require("./focus-window");
|
|
6
6
|
const last_protocol_request_id_as_number_1 = require("./last-protocol-request-id-as-number");
|
|
7
|
-
const
|
|
7
|
+
const protocol_requests_info_box_1 = require("./protocol-requests-info-box");
|
|
8
8
|
const retrieve_config_1 = require("./retrieve-config");
|
|
9
9
|
const show_window_1 = require("./show-window");
|
|
10
10
|
exports.initializeProtocolClient = _1.__.declareManagedFunc()
|
|
@@ -19,37 +19,38 @@ exports.initializeProtocolClient = _1.__.declareManagedFunc()
|
|
|
19
19
|
}
|
|
20
20
|
_1.__.$electron.app.on(`second-instance`, () => {
|
|
21
21
|
_1.__.invokeAndIgnoreAsyncExp(async () => {
|
|
22
|
-
if (config.
|
|
22
|
+
if (config.isAutoShowingWindowOnProtocolRequestRegisteredEnabled) {
|
|
23
23
|
await (0, show_window_1.showWindow)({});
|
|
24
24
|
}
|
|
25
|
-
if (config.
|
|
25
|
+
if (config.isAutoFocusingWindowOnProtocolRequestRegisteredEnabled) {
|
|
26
26
|
await (0, focus_window_1.focusWindow)({});
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
_1.__.$electronappuniversalprotocolclient.default.on(`request`, (electronAppUniversalProtocolClientRequestUrl) => {
|
|
31
31
|
_1.__.invokeAndIgnoreAsyncExp(async () => {
|
|
32
|
-
if (config.
|
|
32
|
+
if (config.isAutoShowingWindowOnProtocolRequestRegisteredEnabled) {
|
|
33
33
|
await (0, show_window_1.showWindow)({});
|
|
34
34
|
}
|
|
35
|
-
if (config.
|
|
35
|
+
if (config.isAutoFocusingWindowOnProtocolRequestRegisteredEnabled) {
|
|
36
36
|
await (0, focus_window_1.focusWindow)({});
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const protocolRequestIdAsNumber = last_protocol_request_id_as_number_1.LAST_PROTOCOL_REQUEST_ID_AS_NUMBER.value === undefined
|
|
39
39
|
? 0
|
|
40
40
|
: last_protocol_request_id_as_number_1.LAST_PROTOCOL_REQUEST_ID_AS_NUMBER.value + 1;
|
|
41
|
-
last_protocol_request_id_as_number_1.LAST_PROTOCOL_REQUEST_ID_AS_NUMBER.value =
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
|
|
41
|
+
last_protocol_request_id_as_number_1.LAST_PROTOCOL_REQUEST_ID_AS_NUMBER.value = protocolRequestIdAsNumber;
|
|
42
|
+
const protocolRequestId = String(protocolRequestIdAsNumber);
|
|
43
|
+
const protocolRequestInfoBox = _1.__.invokeSyncExp(() => {
|
|
44
|
+
if (protocol_requests_info_box_1.PROTOCOL_REQUESTS_INFO_BOX.value[protocolRequestId] === undefined) {
|
|
45
|
+
protocol_requests_info_box_1.PROTOCOL_REQUESTS_INFO_BOX.value[protocolRequestId] = {
|
|
46
46
|
value: undefined,
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return protocol_requests_info_box_1.PROTOCOL_REQUESTS_INFO_BOX.value[protocolRequestId];
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
id:
|
|
51
|
+
protocolRequestInfoBox.value = {
|
|
52
|
+
id: protocolRequestId,
|
|
53
|
+
registeredDate: new Date(),
|
|
53
54
|
url: electronAppUniversalProtocolClientRequestUrl,
|
|
54
55
|
};
|
|
55
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-protocol-client.js","sourceRoot":"","sources":["../src/initialize-protocol-client.ts"],"names":[],"mappings":";;;AAAA,0BAAwC;AAExC,iDAA6C;AAC7C,6FAA0F;AAC1F,
|
|
1
|
+
{"version":3,"file":"initialize-protocol-client.js","sourceRoot":"","sources":["../src/initialize-protocol-client.ts"],"names":[],"mappings":";;;AAAA,0BAAwC;AAExC,iDAA6C;A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AC,KAAK,GAAG,CAAC,CAAC;YAEjD,uEAAkC,CAAC,KAAK,GAAG,yBAAyB,CAAC;YAErE,MAAM,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;YAE5D,MAAM,sBAAsB,GAAG,KAAE,CAAC,aAAa,CAAC,GAAG,EAAE;gBAEnD,IAAI,uDAA0B,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS,EACrE,CAAC;oBACC,uDAA0B,CAAC,KAAK,CAAC,iBAAiB,CAAC,GAAG;wBACpD,KAAK,EAAE,SAAS;qBACjB,CAAC;gBACJ,CAAC;gBAED,OAAO,uDAA0B,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAC7D,CAAC,CAAC,CAAC;YAEH,sBAAsB,CAAC,KAAK,GAAG;gBAC7B,EAAE,EAAE,iBAAiB;gBACrB,cAAc,EAAE,IAAI,IAAI,EAAE;gBAC1B,GAAG,EAAE,4CAA4C;aAClD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CACF,CAAC;IAEF,MAAM,KAAE,CAAC,mCAAmC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC9D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE;QAC5B,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,IAAC,CAAC,WAAW,CAAC,GAAG;YAC7C,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,YAAY;KACjB,CAAC,CAAC;AACL,CAAC,CACF,0BAAC"}
|
package/dist/initialize.d.ts
CHANGED
package/dist/initialize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,2BAGlB;IACD,iBAAiB,EAAE,MAAM,CAAC;CAC3B,kBAyFF,CAAC"}
|
package/dist/initialize.js
CHANGED
|
@@ -8,35 +8,42 @@ const fetch_displays_info_1 = require("./fetch-displays-info");
|
|
|
8
8
|
const fetch_gpus_info_1 = require("./fetch-gpus-info");
|
|
9
9
|
const fetch_memory_info_1 = require("./fetch-memory-info");
|
|
10
10
|
const initialize_logging_1 = require("./initialize-logging");
|
|
11
|
+
const predefined_boot_procedure_type_1 = require("./predefined-boot-procedure-type");
|
|
11
12
|
const retrieve_config_1 = require("./retrieve-config");
|
|
12
|
-
const initialize = async () => {
|
|
13
|
+
const initialize = async ({ bootProcedureType, }) => {
|
|
13
14
|
try {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
if (bootProcedureType === predefined_boot_procedure_type_1.PredefinedBootProcedureType.MainBootProcedure
|
|
16
|
+
||
|
|
17
|
+
bootProcedureType === predefined_boot_procedure_type_1.PredefinedBootProcedureType.UninstallBootProcedure) {
|
|
18
|
+
if (process.argv.includes(`--wait-for-single-instance-lock`)) {
|
|
19
|
+
while (!_1.__.$electron.app.requestSingleInstanceLock()) {
|
|
20
|
+
await _1.__.wait(1000);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else if (!_1.__.$electron.app.requestSingleInstanceLock()) {
|
|
24
|
+
_1.__.$electron.app.exit(1);
|
|
25
|
+
process.exit(1);
|
|
17
26
|
}
|
|
18
27
|
}
|
|
19
|
-
|
|
20
|
-
_1.__.$electron.app.exit(1);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
await (0, initialize_logging_1.initializeLogging)();
|
|
28
|
+
await (0, initialize_logging_1.initializeLogging)({ bootProcedureType });
|
|
24
29
|
const config = (0, retrieve_config_1.retrieveConfig)();
|
|
25
|
-
if (
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
if (bootProcedureType === predefined_boot_procedure_type_1.PredefinedBootProcedureType.MainBootProcedure) {
|
|
31
|
+
if (config.targetOperatingSystemPlatform === _1._.TargetOperatingSystemPlatform.MacOS && config.runtime.mode === _1._.RuntimeMode.Prod) {
|
|
32
|
+
if (!_1.__.$electron.app.isInApplicationsFolder()) {
|
|
33
|
+
let wasMovedToApplicationsFolder;
|
|
34
|
+
wasMovedToApplicationsFolder = false;
|
|
35
|
+
while (!wasMovedToApplicationsFolder) {
|
|
36
|
+
await _1.__.$electron.dialog.showMessageBox({
|
|
37
|
+
title: config.moveToApplicationsFolderIsRequiredDialog.titleTemplate,
|
|
38
|
+
message: config.moveToApplicationsFolderIsRequiredDialog.messageTemplate,
|
|
39
|
+
buttons: [
|
|
40
|
+
`Move`,
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
wasMovedToApplicationsFolder = _1.__.$electron.app.moveToApplicationsFolder();
|
|
44
|
+
_1.__.$electron.app.exit(0);
|
|
45
|
+
process.exit(0);
|
|
46
|
+
}
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
}
|
package/dist/initialize.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.js","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":";;;AAAA,0BAA4B;AAE5B,yFAAkF;AAClF,qDAAgD;AAChD,+DAA0D;AAC1D,uDAAkD;AAClD,2DAAsD;AACtD,6DAAyD;AACzD,uDAAmD;AAG5C,MAAM,UAAU,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"initialize.js","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":";;;AAAA,0BAA4B;AAE5B,yFAAkF;AAClF,qDAAgD;AAChD,+DAA0D;AAC1D,uDAAkD;AAClD,2DAAsD;AACtD,6DAAyD;AACzD,qFAA+E;AAC/E,uDAAmD;AAG5C,MAAM,U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C,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AA9FW,QAAA,UAAU,cA8FrB"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const main: ({ onPreinitialized, onInitialized, onBootProcedureExecuted, }: {
|
|
1
|
+
export declare const main: ({ onPreinitialized, onInitialized, executeCustomBootProcedure, onBootProcedureExecuted, }: {
|
|
3
2
|
onPreinitialized?: () => void;
|
|
4
3
|
onInitialized?: () => Promise<void>;
|
|
4
|
+
executeCustomBootProcedure?: ({}: {
|
|
5
|
+
customBootProcedureType: string;
|
|
6
|
+
}) => Promise<void>;
|
|
5
7
|
onBootProcedureExecuted?: ({}: {
|
|
6
|
-
bootProcedureType:
|
|
8
|
+
bootProcedureType: string;
|
|
7
9
|
}) => Promise<void>;
|
|
8
10
|
}) => void;
|
|
9
11
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,IAAI,8FAMZ;IACD,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,0BAA0B,CAAC,EAAE,CAC3B,EACC,EAAE;QACD,uBAAuB,EAAE,MAAM,CAAC;KACjC,KACE,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,uBAAuB,CAAC,EAAE,CACxB,EACC,EAAE;QACD,iBAAiB,EAAE,MAAM,CAAC;KAC3B,KACE,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,SAoDF,CAAC"}
|