Skip to content

Commit

Permalink
Updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Powerm1nt committed Feb 3, 2024
1 parent 05affe3 commit 64cd931
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -35,19 +35,19 @@
"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",
"eslint-plugin-promise": "^6.1.1",
"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"
}
}
11 changes: 5 additions & 6 deletions src/Common/Utils.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 64cd931

Please sign in to comment.