diff --git a/package-lock.json b/package-lock.json index 3346d17..56c3f5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -322,9 +322,9 @@ "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==" }, "better-sqlite3": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-7.0.1.tgz", - "integrity": "sha512-fsVcoGXxnseNajbfFbth0BKnDWebPY6x77UWfrBHApCKq1yo41DlWnFsffOsLpjkQ4VKgDU5C3aUtiw3wGGU0Q==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-7.1.0.tgz", + "integrity": "sha512-FV/snQ8F/kyqhdxsevzbojVtMowDWOfe1A5N3lYu1KJwoho2t7JgITmdlSc7DkOh3Zq65I+ZyeNWXQrkLEDFTg==", "requires": { "bindings": "^1.5.0", "prebuild-install": "^5.3.3", @@ -2130,9 +2130,9 @@ "dev": true }, "node-abi": { - "version": "2.16.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.16.0.tgz", - "integrity": "sha512-+sa0XNlWDA6T+bDLmkCUYn6W5k5W6BPRL6mqzSCs6H/xUgtl4D5x2fORKDzopKiU6wsyn/+wXlRXwXeSp+mtoA==", + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.18.0.tgz", + "integrity": "sha512-yi05ZoiuNNEbyT/xXfSySZE+yVnQW6fxPZuFbLyS1s6b5Kw3HzV2PHOM4XR+nsjzkHxByK+2Wg+yCQbe35l8dw==", "requires": { "semver": "^5.4.1" }, @@ -2438,14 +2438,14 @@ } }, "prebuild-install": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.3.tgz", - "integrity": "sha512-GV+nsUXuPW2p8Zy7SarF/2W/oiK8bFQgJcncoJ0d7kRpekEA0ftChjfEaF9/Y+QJEc/wFR7RAEa8lYByuUIe2g==", + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.4.tgz", + "integrity": "sha512-AkKN+pf4fSEihjapLEEj8n85YIw/tN6BQqkhzbDc0RvEZGdkpJBGMUYx66AAMcPG2KzmPQS7Cm16an4HVBRRMA==", "requires": { "detect-libc": "^1.0.3", "expand-template": "^2.0.3", "github-from-package": "0.0.0", - "minimist": "^1.2.0", + "minimist": "^1.2.3", "mkdirp": "^0.5.1", "napi-build-utils": "^1.0.1", "node-abi": "^2.7.0", @@ -2757,9 +2757,9 @@ } }, "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" }, "safer-buffer": { "version": "2.1.2", @@ -3043,9 +3043,9 @@ } }, "svelte": { - "version": "3.23.1", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.23.1.tgz", - "integrity": "sha512-HTKVSDHcn4ztxRl3g425pwihePXkCvn4B2gO5Y3n3GHzHZWxYM9T+l/LHs7HjJjcI7Xl7/ujnfA3S45pz0qXIg==" + "version": "3.23.2", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.23.2.tgz", + "integrity": "sha512-hE8GeTM83YVR4GY6/6PeDEcGct4JS5aCi+IYbCAa76oaPSfuF7L85DQYULQxlTK/KPWzw3L1GRGmC3oPG/PQoA==" }, "tar": { "version": "4.4.10", @@ -3062,9 +3062,9 @@ } }, "tar-fs": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.0.1.tgz", - "integrity": "sha512-6tzWDMeroL87uF/+lin46k+Q+46rAJ0SyPGz7OW7wTgblI273hsBqk2C1j0/xNadNLKDTUL9BukSjB7cwgmlPA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.0.tgz", + "integrity": "sha512-9uW5iDvrIMCVpvasdFHW0wJPez0K4JnMZtsuIeDI7HyMGJNxmDZDOCQROr7lXyS+iL/QMpj07qcjGYTSdRFXUg==", "requires": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", diff --git a/package.json b/package.json index 1297b21..d29d0c9 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,12 @@ "rollup-plugin-svelte": "^5.2.2" }, "dependencies": { - "better-sqlite3": "^7.0.1", + "better-sqlite3": "^7.1.0", "bulma": "^0.9.0", "electron-store": "^5.2.0", "electron-util": "^0.14.1", "ley": "^0.5.0", "papaparse": "^5.2.0", - "svelte": "^3.23.1" + "svelte": "^3.23.2" } } diff --git a/src/main.js b/src/main.js index 39dcccb..6a87351 100644 --- a/src/main.js +++ b/src/main.js @@ -4,7 +4,6 @@ import { app, BrowserWindow, ipcMain } from 'electron' import { is } from 'electron-util' import Store from 'electron-store' -app.allowRendererProcessReuse = true const configFile = new Store({ defaults: { windowBounds: { @@ -24,7 +23,7 @@ function createWindow() { useContentSize: true, defaultEncoding: 'utf-8', webPreferences: { - nodeIntegration: true, + nodeIntegration: true }, title: `${app.name}` // icon: join(__dirname, '../icons/icon.icns') @@ -38,7 +37,7 @@ function createWindow() { })) if (is.development || process.argv.some(a => a === '--devtools')) mainWindow.openDevTools() - mainWindow.on('close', async e => { + mainWindow.on('close', e => { if (!configData.close) { e.preventDefault() configFile.set('windowBounds.main', mainWindow.getBounds()) @@ -48,9 +47,6 @@ function createWindow() { mainWindow.close() } }) - mainWindow.on('closed', () => { - mainWindow = null - }) mainWindow.once('ready-to-show', async () => { mainWindow.show() }) @@ -58,7 +54,7 @@ function createWindow() { app.on('ready', createWindow) app.on('window-all-closed', function () { - if (process.platform !== 'darwin') app.quit() + app.quit() }) app.on('activate', function () { if (mainWindow === null) createWindow()