update lodash, semver, electron to latest + @types/node to 18

This commit is contained in:
Edwin Joassart 2023-10-16 17:13:49 +02:00
parent a067a61cb4
commit 910d5483e7
5 changed files with 328 additions and 1992 deletions

View File

@ -447,8 +447,5 @@ rules:
react/jsx-uses-vars: react/jsx-uses-vars:
- error - error
overrides: ban-ts-ignore:
files: ['*.jsx'] - warn
rules:
require-jsdoc:
- off

View File

@ -95,7 +95,6 @@ function terminateServer(server: any) {
// the server to actually close. Otherwise, it // the server to actually close. Otherwise, it
// just stops receiving any further connections, // just stops receiving any further connections,
// but remains open if there are active ones. // but remains open if there are active ones.
// @ts-ignore (no Server.sockets in @types/node-ipc)
for (const socket of server.sockets) { for (const socket of server.sockets) {
socket.destroy(); socket.destroy();
} }

View File

@ -30,7 +30,8 @@ const adapters: Adapter[] = [
// Can't use permissions.isElevated() here as it returns a promise and we need to set // Can't use permissions.isElevated() here as it returns a promise and we need to set
// module.exports = scanner right now. // module.exports = scanner right now.
if (platform !== 'linux' || geteuid() === 0) { const euid = geteuid ? geteuid() : undefined;
if (platform !== 'linux' || euid === 0) {
adapters.push(new UsbbootDeviceAdapter()); adapters.push(new UsbbootDeviceAdapter());
} }

2298
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,6 @@
"lint-css": "prettier --write lib/**/*.css", "lint-css": "prettier --write lib/**/*.css",
"lint-ts": "balena-lint --fix --typescript typings lib tests scripts/clean-shrinkwrap.ts webpack.config.ts", "lint-ts": "balena-lint --fix --typescript typings lib tests scripts/clean-shrinkwrap.ts webpack.config.ts",
"lint": "npm run lint-ts && npm run lint-css", "lint": "npm run lint-ts && npm run lint-css",
"postinstall": "electron-rebuild -t prod,dev,optional",
"sanity-checks": "bash scripts/ci/ensure-all-file-extensions-in-gitattributes.sh", "sanity-checks": "bash scripts/ci/ensure-all-file-extensions-in-gitattributes.sh",
"start": "./node_modules/.bin/electron .", "start": "./node_modules/.bin/electron .",
"test-gui": "electron-mocha --recursive --reporter spec --window-config tests/gui/window-config.json --require ts-node/register/transpile-only --require-main tests/gui/allow-renderer-process-reuse.ts --full-trace --no-sandbox --renderer tests/gui/**/*.ts", "test-gui": "electron-mocha --recursive --reporter spec --window-config tests/gui/window-config.json --require ts-node/register/transpile-only --require-main tests/gui/allow-renderer-process-reuse.ts --full-trace --no-sandbox --renderer tests/gui/**/*.ts",
@ -60,14 +59,15 @@
"@svgr/webpack": "5.5.0", "@svgr/webpack": "5.5.0",
"@types/chai": "4.3.4", "@types/chai": "4.3.4",
"@types/copy-webpack-plugin": "6.4.3", "@types/copy-webpack-plugin": "6.4.3",
"@types/lodash": "^4.14.199",
"@types/mime-types": "2.1.1", "@types/mime-types": "2.1.1",
"@types/mini-css-extract-plugin": "1.4.3", "@types/mini-css-extract-plugin": "1.4.3",
"@types/mocha": "^9.1.1", "@types/mocha": "^9.1.1",
"@types/node": "^16.18.12", "@types/node": "^18.18.5",
"@types/node-ipc": "9.2.0", "@types/node-ipc": "9.2.0",
"@types/react": "16.14.34", "@types/react": "16.14.34",
"@types/react-dom": "16.9.17", "@types/react-dom": "16.9.17",
"@types/semver": "7.3.13", "@types/semver": "7.5.3",
"@types/sinon": "9.0.11", "@types/sinon": "9.0.11",
"@types/terser-webpack-plugin": "5.0.4", "@types/terser-webpack-plugin": "5.0.4",
"@types/tmp": "0.2.3", "@types/tmp": "0.2.3",
@ -79,11 +79,10 @@
"css-loader": "5.2.7", "css-loader": "5.2.7",
"d3": "4.13.0", "d3": "4.13.0",
"debug": "4.3.4", "debug": "4.3.4",
"electron": "^25.8.2", "electron": "^27.0.0",
"electron-builder": "^23.6.0", "electron-builder": "^23.6.0",
"electron-mocha": "^11.0.2", "electron-mocha": "^11.0.2",
"electron-notarize": "1.2.2", "electron-notarize": "1.2.2",
"electron-rebuild": "^3.2.9",
"electron-updater": "5.3.0", "electron-updater": "5.3.0",
"esbuild-loader": "2.20.0", "esbuild-loader": "2.20.0",
"etcher-sdk": "8.3.1", "etcher-sdk": "8.3.1",
@ -108,7 +107,7 @@
"react-i18next": "11.18.6", "react-i18next": "11.18.6",
"redux": "4.2.0", "redux": "4.2.0",
"rendition": "19.3.2", "rendition": "19.3.2",
"semver": "7.3.8", "semver": "7.5.4",
"simple-progress-webpack-plugin": "1.1.2", "simple-progress-webpack-plugin": "1.1.2",
"sinon": "9.2.4", "sinon": "9.2.4",
"string-replace-loader": "3.1.0", "string-replace-loader": "3.1.0",