mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-25 12:16:37 +00:00
update lodash, semver, electron to latest + @types/node to 18
This commit is contained in:
parent
a067a61cb4
commit
910d5483e7
@ -447,8 +447,5 @@ rules:
|
||||
react/jsx-uses-vars:
|
||||
- error
|
||||
|
||||
overrides:
|
||||
files: ['*.jsx']
|
||||
rules:
|
||||
require-jsdoc:
|
||||
- off
|
||||
ban-ts-ignore:
|
||||
- warn
|
@ -95,7 +95,6 @@ function terminateServer(server: any) {
|
||||
// the server to actually close. Otherwise, it
|
||||
// just stops receiving any further connections,
|
||||
// but remains open if there are active ones.
|
||||
// @ts-ignore (no Server.sockets in @types/node-ipc)
|
||||
for (const socket of server.sockets) {
|
||||
socket.destroy();
|
||||
}
|
||||
|
@ -30,7 +30,8 @@ const adapters: Adapter[] = [
|
||||
|
||||
// Can't use permissions.isElevated() here as it returns a promise and we need to set
|
||||
// module.exports = scanner right now.
|
||||
if (platform !== 'linux' || geteuid() === 0) {
|
||||
const euid = geteuid ? geteuid() : undefined;
|
||||
if (platform !== 'linux' || euid === 0) {
|
||||
adapters.push(new UsbbootDeviceAdapter());
|
||||
}
|
||||
|
||||
|
2298
npm-shrinkwrap.json
generated
2298
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -23,7 +23,6 @@
|
||||
"lint-css": "prettier --write lib/**/*.css",
|
||||
"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",
|
||||
"postinstall": "electron-rebuild -t prod,dev,optional",
|
||||
"sanity-checks": "bash scripts/ci/ensure-all-file-extensions-in-gitattributes.sh",
|
||||
"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",
|
||||
@ -60,14 +59,15 @@
|
||||
"@svgr/webpack": "5.5.0",
|
||||
"@types/chai": "4.3.4",
|
||||
"@types/copy-webpack-plugin": "6.4.3",
|
||||
"@types/lodash": "^4.14.199",
|
||||
"@types/mime-types": "2.1.1",
|
||||
"@types/mini-css-extract-plugin": "1.4.3",
|
||||
"@types/mocha": "^9.1.1",
|
||||
"@types/node": "^16.18.12",
|
||||
"@types/node": "^18.18.5",
|
||||
"@types/node-ipc": "9.2.0",
|
||||
"@types/react": "16.14.34",
|
||||
"@types/react-dom": "16.9.17",
|
||||
"@types/semver": "7.3.13",
|
||||
"@types/semver": "7.5.3",
|
||||
"@types/sinon": "9.0.11",
|
||||
"@types/terser-webpack-plugin": "5.0.4",
|
||||
"@types/tmp": "0.2.3",
|
||||
@ -79,11 +79,10 @@
|
||||
"css-loader": "5.2.7",
|
||||
"d3": "4.13.0",
|
||||
"debug": "4.3.4",
|
||||
"electron": "^25.8.2",
|
||||
"electron": "^27.0.0",
|
||||
"electron-builder": "^23.6.0",
|
||||
"electron-mocha": "^11.0.2",
|
||||
"electron-notarize": "1.2.2",
|
||||
"electron-rebuild": "^3.2.9",
|
||||
"electron-updater": "5.3.0",
|
||||
"esbuild-loader": "2.20.0",
|
||||
"etcher-sdk": "8.3.1",
|
||||
@ -108,7 +107,7 @@
|
||||
"react-i18next": "11.18.6",
|
||||
"redux": "4.2.0",
|
||||
"rendition": "19.3.2",
|
||||
"semver": "7.3.8",
|
||||
"semver": "7.5.4",
|
||||
"simple-progress-webpack-plugin": "1.1.2",
|
||||
"sinon": "9.2.4",
|
||||
"string-replace-loader": "3.1.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user