From b08bc6966617928a362730fb2b20a7dd561bae20 Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Mon, 30 Sep 2024 13:38:25 +0200 Subject: [PATCH] Bump electron-log --- package.json | 2 +- src/main/index.js | 5 ++++- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 009b339d..8947e1b5 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,8 @@ "cpus": "^1.0.3", "d3-array": "^3.2.0", "electron-better-ipc": "^2.0.1", - "electron-log": "^4.4.8", "electron-progressbar": "^2.0.1", + "electron-log": "^5.2.0", "electron-store": "^8.1.0", "electron-updater": "^5.2.4", "filenamify": "^4.3.0", diff --git a/src/main/index.js b/src/main/index.js index c4ba0e5c..f06054ee 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -1,7 +1,7 @@ import electron from 'electron'; import path from 'path'; import url from 'url'; -import log from 'electron-log'; +import log from 'electron-log/main'; import { autoUpdater } from 'electron-updater'; import ProgressBar from 'electron-progressbar'; @@ -9,6 +9,9 @@ import './api'; import MenuBuilder from './menu'; import { is } from '../common/utils'; +// It preloads electron-log IPC code in renderer processes +log.initialize(); + // TODO: Have removed electron-debug dependency, because it used remote module. Maybe we need some alternative. //------------------------------------------------------------------- diff --git a/yarn.lock b/yarn.lock index 7acee195..b85561b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5630,10 +5630,10 @@ electron-download@^4.1.1: semver "^5.4.1" sumchecker "^2.0.2" -electron-log@^4.4.8: - version "4.4.8" - resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-4.4.8.tgz#fcb9f714dbcaefb6ac7984c4683912c74730248a" - integrity sha512-QQ4GvrXO+HkgqqEOYbi+DHL7hj5JM+nHi/j+qrN9zeeXVKy8ZABgbu4CnG+BBqDZ2+tbeq9tUC4DZfIWFU5AZA== +electron-log@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-5.2.0.tgz#505716926dfcf9cb3e74f42b1003be6d865bcb88" + integrity sha512-VjLkvaLmbP3AOGOh5Fob9M8bFU0mmeSAb5G2EoTBx+kQLf2XA/0byzjsVGBTHhikbT+m1AB27NEQUv9wX9nM8w== electron-progressbar@^2.0.1: version "2.2.1"