patch: upgrade etcher-sdk to 9.0.0 and axios to 1.6.0

This commit is contained in:
Edwin Joassart 2023-12-08 14:29:12 +01:00
parent a309ecb6bc
commit 496ad13a11
5 changed files with 1077 additions and 15222 deletions

View File

@ -70,14 +70,14 @@ export async function isElevated(): Promise<boolean> {
}
return true;
}
return process.geteuid() === UNIX_SUPERUSER_USER_ID;
return process.geteuid!() === UNIX_SUPERUSER_USER_ID;
}
/**
* @summary Check if the current process is running with elevated permissions
*/
export function isElevatedUnixSync(): boolean {
return process.geteuid() === UNIX_SUPERUSER_USER_ID;
return process.geteuid!() === UNIX_SUPERUSER_USER_ID;
}
function escapeSh(value: any): string {

16282
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -49,12 +49,12 @@
"@fortawesome/fontawesome-free": "5.15.4",
"@sentry/electron": "^4.1.2",
"analytics-client": "^2.0.1",
"axios": "^0.27.2",
"axios": "^1.6.0",
"d3": "4.13.0",
"debug": "4.3.4",
"electron-squirrel-startup": "^1.0.0",
"electron-updater": "5.3.0",
"etcher-sdk": "8.3.1",
"etcher-sdk": "9.0.0",
"i18next": "21.10.0",
"immutable": "3.8.2",
"lodash": "4.17.21",

View File

@ -5,6 +5,7 @@
"node_modules/drivelist/**",
"node_modules/mountutils/**",
"node_modules/winusb-driver-generator/**",
"node_modules/node-raspberrypi-usbboot/**"
"node_modules/node-raspberrypi-usbboot/**",
"node_modules/axios/**"
]
}

View File

@ -1,14 +1,14 @@
{
"compilerOptions": {
"target": "ES2019",
"target": "ES2020",
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"typeRoots": ["./node_modules/@types", "./typings"],
"module": "CommonJS",
"module": "commonjs",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true