From e36632ddbd2a81ad3ec9508abce059461f886ffc Mon Sep 17 00:00:00 2001 From: Eric BREHAULT Date: Mon, 16 Oct 2023 10:34:41 +0200 Subject: [PATCH] upgrade electron (#1069) --- apps/desktop/electron/src/app/events/update.events.ts | 4 ++-- apps/desktop/src/app/app.component.ts | 2 +- package.json | 4 ++-- yarn.lock | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/desktop/electron/src/app/events/update.events.ts b/apps/desktop/electron/src/app/events/update.events.ts index 659fa44f4..3656ce852 100644 --- a/apps/desktop/electron/src/app/events/update.events.ts +++ b/apps/desktop/electron/src/app/events/update.events.ts @@ -1,4 +1,4 @@ -import { app, autoUpdater, dialog } from 'electron'; +import { MessageBoxOptions, app, autoUpdater, dialog } from 'electron'; import { platform, arch } from 'os'; import { updateServerUrl } from '../constants'; import App from '../app'; @@ -27,7 +27,7 @@ export default class UpdateEvents { } autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName, releaseDate) => { - const dialogOpts = { + const dialogOpts: MessageBoxOptions = { type: 'info', buttons: ['Restart', 'Later'], title: 'Application Update', diff --git a/apps/desktop/src/app/app.component.ts b/apps/desktop/src/app/app.component.ts index 2d3699000..5791ff341 100644 --- a/apps/desktop/src/app/app.component.ts +++ b/apps/desktop/src/app/app.component.ts @@ -35,8 +35,8 @@ export class AppComponent implements OnInit { private user: UserService, private sdk: SDKService, private router: Router, - private modalService: SisModalService, private tracking: STFTrackingService, + private modalService: SisModalService, private cdr: ChangeDetectorRef, ) { this.initTranslate(undefined); diff --git a/package.json b/package.json index bacb79043..ff4ad86c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuclia", - "version": "2.7.3", + "version": "2.7.4", "license": "MIT", "author": "Nuclia.cloud", "description": "Nuclia frontend apps and libs", @@ -146,7 +146,7 @@ "concurrently": "^8.0.1", "crypto-browserify": "^3.12.0", "dotenv": "10.0.0", - "electron": "^24.0.0", + "electron": "^24.8.5", "electron-builder": "23.6.0", "electron-notarize": "^1.2.1", "es-dirname": "^0.1.0", diff --git a/yarn.lock b/yarn.lock index 101020aeb..9822cd56e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13309,16 +13309,16 @@ __metadata: languageName: node linkType: hard -"electron@npm:^24.0.0": - version: 24.1.2 - resolution: "electron@npm:24.1.2" +"electron@npm:^24.8.5": + version: 24.8.8 + resolution: "electron@npm:24.8.8" dependencies: "@electron/get": ^2.0.0 "@types/node": ^18.11.18 extract-zip: ^2.0.1 bin: electron: cli.js - checksum: 54b012bed51c0cadcb8cc7bc2bdd9c46969214bc2532d57699da2c9ec6fbfeb8b5752c56c1c05c8d8ab46b3d6856db861a23a1124012024ae0131e5df9acc269 + checksum: 9a011c37607ca3e55b6b68a4b705e7e5d68961a6e7ec564b44c13c6f743d531aa6938fe5d0cccd3a860d9a825a662a53443e8be5430e023baaa33f5aec650c41 languageName: node linkType: hard @@ -19726,7 +19726,7 @@ __metadata: date-fns: ^2.29.3 deepmerge-ts: ^5.1.0 dotenv: 10.0.0 - electron: ^24.0.0 + electron: ^24.8.5 electron-builder: 23.6.0 electron-notarize: ^1.2.1 electron-updater: ^5.0.1