From 64cd931e8168a43b7a224a9ea60ae79db1aaec8a Mon Sep 17 00:00:00 2001 From: powerm1nt Date: Sat, 3 Feb 2024 17:12:58 +0100 Subject: [PATCH] Updated deps --- package.json | 18 +++++++++--------- src/Common/Utils.js | 11 +++++------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index c69d7d1..09dffca 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,13 @@ }, "dependencies": { "@octokit/core": "^4.1.0", - "@powerws/uikit": "^0.220.0", + "@powerws/uikit": "^0.223.0", "adm-zip": "^0.5.10", - "axios": "^1.3.4", + "axios": "^1.6.7", "chalk": "^5.2.0", "cli-spinners": "^2.7.0", "commander": "^10.0.0", - "electron": "^23.1.2", + "electron": "^28.2.1", "electron-is-dev": "^2.0.0", "electron-log": "^5.0.0-beta.16", "events": "^3.3.0", @@ -35,11 +35,11 @@ "uuid": "^9.0.0" }, "devDependencies": { - "@types/react": "^18.0.26", - "@types/react-dom": "^18.0.9", - "@vitejs/plugin-react-swc": "^3.0.0", - "esbuild": "^0.15.12", - "eslint": "^8.30.0", + "@types/react": "^18.2.52", + "@types/react-dom": "^18.2.18", + "@vitejs/plugin-react-swc": "^3.6.0", + "esbuild": "^0.20.0", + "eslint": "^8.56.0", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.6.0", @@ -47,7 +47,7 @@ "eslint-plugin-react": "^7.31.11", "pkg": "^5.8.1", "sass": "^1.57.1", - "vite": "^4.0.5", + "vite": "^5.0.12", "vite-plugin-eslint": "^1.8.1" } } diff --git a/src/Common/Utils.js b/src/Common/Utils.js index 83afdb3..9787b98 100644 --- a/src/Common/Utils.js +++ b/src/Common/Utils.js @@ -1,23 +1,22 @@ import fs from 'fs' import * as path from 'path' -function listFilesRecursively(directory) { +function listFilesRecursively (directory) { let fileList = [] for (const element of directory) { - const fullPath = path.join(element).replace(/\\/g, '/'); - const stats = fs.statSync(fullPath); + const fullPath = path.join(element).replace(/\\/g, '/') + const stats = fs.statSync(fullPath) if (stats.isDirectory()) { fileList = fileList.concat(listFilesRecursively(fs.readdirSync(fullPath).map(file => (path.join(fullPath, file)).replace(/\\/g, '/')))) } else if (stats.isFile()) { - fileList.push(fullPath); + fileList.push(fullPath) } } - return fileList; + return fileList } - function calculateBitrate (bytesDownloaded, downloadTimeSeconds) { // Calculate the bitrate in bytes per second const bytesPerSecond = bytesDownloaded / downloadTimeSeconds