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

This commit is contained in:
Edwin Joassart 2023-10-30 17:07:33 +01:00
parent 4ee8055b20
commit 3eea1c48a0
5 changed files with 5148 additions and 17658 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 {

22789
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@
"@types/terser-webpack-plugin": "5.0.4",
"@types/tmp": "0.2.5",
"analytics-client": "^2.0.1",
"axios": "^0.27.2",
"axios": "^1.6.0",
"chai": "4.3.10",
"copy-webpack-plugin": "11.0.0",
"css-loader": "5.2.7",
@ -85,7 +85,7 @@
"electron-notarize": "1.2.2",
"electron-updater": "6.1.4",
"esbuild-loader": "4.0.2",
"etcher-sdk": "8.7.2",
"etcher-sdk": "9.0.0",
"file-loader": "6.2.0",
"husky": "^8.0.3",
"i18next": "23.6.0",

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,