Skip to content

Commit 6722a5f

Browse files
authored
CHORE: Bump npm deps (#2296)
* remove: last frontend tests * remove: @vue/test-utils * CHORE: Bump dependencies * FIX: eslint and formating * FIX: eslint issues
1 parent 8ae2469 commit 6722a5f

29 files changed

Lines changed: 4600 additions & 4449 deletions

File tree

launcher/eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = [
1414
...globals.node,
1515
...globals.jest,
1616
...globals.browser,
17-
AudioWorkletGlobalScope: globals.browser["AudioWorkletGlobalScope"],
1817
},
1918
parser: require("vue-eslint-parser"),
2019
parserOptions: {

launcher/jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
moduleFileExtensions: ["js", "json", "vue"],
3-
roots: ["<rootDir>/src/", "<rootDir>/tests/"],
3+
roots: ["<rootDir>/src/"],
44
// testEnvironment: "jest-environment-jsdom",
55
testMatch: ["**/?(*.)+(spec|test|int).[tj]s?(x)"],
66
moduleNameMapper: {
@@ -10,7 +10,6 @@ module.exports = {
1010
testEnvironment: "jsdom",
1111
transformIgnorePatterns: ["node_modules/(?!(sucrase)/)"],
1212
transform: {
13-
".*\\.(vue)$": "@vue/vue3-jest",
1413
"^.+\\.(js|jsx|ts|tsx|mjs)$": "babel-jest",
1514
// ".*\\.(ts)$": "ts-jest"
1615
},

launcher/package-lock.json

Lines changed: 4466 additions & 4290 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

launcher/package.json

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -38,64 +38,62 @@
3838
"@sapien99/vue-cli-plugin-electron-builder-notarize": "^1.1.3",
3939
"@vue-hero-icons/outline": "^1.7.2",
4040
"@vue-hero-icons/solid": "^1.7.2",
41-
"@xterm/addon-attach": "^0.11.0",
42-
"@xterm/addon-fit": "^0.10.0",
43-
"@xterm/xterm": "^5.5.0",
41+
"@xterm/addon-attach": "^0.12.0",
42+
"@xterm/addon-fit": "^0.11.0",
43+
"@xterm/xterm": "^6.0.0",
4444
"animate.css": "^4.1.1",
45-
"axios": "^1.12.2",
46-
"electron-builder": "^25.1.8",
45+
"axios": "^1.14.0",
46+
"electron-builder": "^26.8.1",
4747
"electron-log": "^5.4.3",
48-
"electron-store": "^10.1.0",
49-
"electron-updater": "^6.6.2",
48+
"electron-store": "^11.0.2",
49+
"electron-updater": "^6.8.3",
5050
"evilscan": "^1.9.1",
5151
"file-saver": "^2.0.5",
52-
"geoip-lite": "^1.4.10",
53-
"gsap": "^3.13.0",
52+
"geoip-lite": "^2.0.1",
53+
"gsap": "^3.14.2",
5454
"jszip": "^3.10.1",
55-
"ping": "^0.4.4",
56-
"pinia": "^3.0.3",
55+
"ping": "^1.0.0",
56+
"pinia": "^3.0.4",
5757
"qrcode": "^1.5.4",
58-
"semver": "^7.7.2",
58+
"semver": "^7.7.4",
5959
"ssh2": "^1.17.0",
60-
"swiper": "^11.2.5",
60+
"swiper": "^12.1.3",
6161
"tailwindcss-animated": "^2.0.0",
62-
"vue": "^3.5.21",
63-
"vue-i18n": "^11.1.12",
64-
"vue-router": "^4.5.1",
65-
"vue3-apexcharts": "^1.8.0",
66-
"vue3-carousel": "^0.16.0",
62+
"vue": "^3.5.31",
63+
"vue-i18n": "^11.3.0",
64+
"vue-router": "^5.0.4",
65+
"vue3-apexcharts": "^1.11.1",
66+
"vue3-carousel": "^0.17.0",
6767
"vue3-circle-progress": "^1.0.7",
6868
"vuedraggable": "^2.24.3",
6969
"web3": "^4.16.0",
70-
"yaml": "^2.8.1"
70+
"yaml": "^2.8.3"
7171
},
7272
"devDependencies": {
73-
"@babel/plugin-transform-runtime": "^7.28.3",
74-
"@babel/preset-env": "^7.28.3",
75-
"@babel/runtime": "^7.28.4",
76-
"@tailwindcss/forms": "^0.5.10",
77-
"@tailwindcss/typography": "^0.5.16",
73+
"@babel/plugin-transform-runtime": "^7.29.0",
74+
"@babel/preset-env": "^7.29.2",
75+
"@babel/runtime": "^7.29.2",
76+
"@eslint/js": "^10.0.1",
77+
"@tailwindcss/forms": "^0.5.11",
78+
"@tailwindcss/typography": "^0.5.19",
7879
"@vue/cli-service": "^5.0.9",
79-
"@vue/compiler-sfc": "^3.5.21",
80-
"@vue/test-utils": "^2.4.6",
81-
"@vue/vue3-jest": "^29.2.6",
80+
"@vue/compiler-sfc": "^3.5.31",
8281
"@vueuse/core": "^13.9.0",
83-
"autoprefixer": "^10.4.21",
82+
"autoprefixer": "^10.4.27",
8483
"concurrently": "^9.2.1",
85-
"electron": "^38.1.0",
86-
"electron-builder": "^25.1.8",
87-
"eslint": "^9.35.0",
84+
"electron": "^41.1.0",
85+
"electron-builder": "^26.8.1",
86+
"eslint": "^10.1.0",
8887
"eslint-config-prettier": "^10.1.8",
8988
"eslint-plugin-node": "^11.1.0",
90-
"eslint-plugin-prettier": "^5.5.4",
91-
"eslint-plugin-promise": "^7.2.1",
92-
"eslint-plugin-vue": "^10.4.0",
93-
"globals": "^16.4.0",
94-
"jest": "^29.7.0",
95-
"jest-environment-jsdom": "^29.7.0",
96-
"nodemon": "^3.1.10",
97-
"postcss": "^8.5.6",
98-
"prettier": "^3.6.2",
89+
"eslint-plugin-prettier": "^5.5.5",
90+
"eslint-plugin-vue": "^10.8.0",
91+
"globals": "^17.4.0",
92+
"jest": "^30.3.0",
93+
"jest-environment-jsdom": "^30.3.0",
94+
"nodemon": "^3.1.14",
95+
"postcss": "^8.5.8",
96+
"prettier": "^3.8.1",
9997
"tailwind-scrollbar": "^3.1.0",
10098
"tailwindcss": "^3.4.17",
10199
"vue-cli-plugin-electron-builder": "^3.0.0-alpha.4",
@@ -105,7 +103,7 @@
105103
"license": "https://wrapbootstrap.com/help/licenses",
106104
"overrides": {
107105
"vue-cli-plugin-electron-builder": {
108-
"electron-builder": "^25.1.8"
106+
"electron-builder": "^26.8.1"
109107
}
110108
},
111109
"repository": {

launcher/src/backend/Monitoring.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class Monitoring {
177177
// Returns last known head block or false if unknown
178178
async getLastKnownHeadBlock(ntwk) {
179179
const file = this.lastKnownHeadBlockFile;
180-
var cont = {};
180+
var cont;
181181
try {
182182
cont = fs.readFileSync(file);
183183
cont = JSON.parse(cont);
@@ -367,7 +367,7 @@ export class Monitoring {
367367
`.trim();
368368

369369
// Execute the CURL command on the node and return the result
370-
let result = null;
370+
let result;
371371
try {
372372
result = await this.nodeConnection.sshService.exec(cmd);
373373
} catch (err) {
@@ -495,7 +495,7 @@ export class Monitoring {
495495
`.trim();
496496

497497
// Execute the CURL command on the node and return the result
498-
let result = null;
498+
let result;
499499
try {
500500
result = await this.nodeConnection.sshService.exec(cmd);
501501
} catch (err) {
@@ -654,7 +654,7 @@ export class Monitoring {
654654
const cmd = `curl -s --location --request ${method} -w "\\n%{http_code}" '${url}' ${requestheaders} ${requestdata}`.trim();
655655

656656
// Execute the CURL command on the node and return the result
657-
let result = null;
657+
let result;
658658
try {
659659
result = await this.nodeConnection.sshService.exec(cmd);
660660
} catch (err) {
@@ -794,7 +794,7 @@ export class Monitoring {
794794
const cmd = `curl -s --location --request ${method} -w "\\n%{http_code}" '${url}' ${requestheaders} ${requestdata}`.trim();
795795

796796
// Execute the CURL command on the node and return the result
797-
let result = null;
797+
let result;
798798
try {
799799
result = await this.nodeConnection.sshService.exec(cmd);
800800
} catch (err) {
@@ -1418,7 +1418,7 @@ export class Monitoring {
14181418
// Do not disable consensuc/execution vars on lint warning because they are used with eval!
14191419
let consensus = cc; // eslint-disable-line no-unused-vars
14201420
let execution = ec; // eslint-disable-line no-unused-vars
1421-
var data = {},
1421+
var data,
14221422
opttyp = null,
14231423
optnam = null,
14241424
defval = null,
@@ -1698,7 +1698,7 @@ export class Monitoring {
16981698
}
16991699

17001700
// Execute the command on the node
1701-
let result = null;
1701+
let result;
17021702
try {
17031703
result = await this.nodeConnectionProm.sshService.exec(sshcmd);
17041704
} catch (err) {
@@ -3086,7 +3086,7 @@ export class Monitoring {
30863086
const logsTail = this.is_numeric(logs_tail) ? parseInt(logs_tail) : 0;
30873087
const logsTs = typeof logs_ts == "boolean" && logs_ts ? true : false;
30883088
var sshcommand = [];
3089-
var logArgs = "";
3089+
var logArgs;
30903090
for (let i = 0; i < serviceInfos.length; i++) {
30913091
var containerName = serviceInfos[i].config.instanceID;
30923092
if (logsTail > 0) {

0 commit comments

Comments
 (0)