Skip to content

Commit b6b3417

Browse files
committed
chore: Bump some dependencies
1 parent 4713182 commit b6b3417

File tree

10 files changed

+1326
-727
lines changed

10 files changed

+1326
-727
lines changed

backend/lib/msmart/MSmartDummycloud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class MSmartDummycloud {
502502
res.status(200).json({});
503503
});
504504

505-
app.all("*", (req, res) => {
505+
app.all("*splat", (req, res) => {
506506
if (this.onHttpRequest) {
507507
const handled = this.onHttpRequest(req, res);
508508
if (handled) {

backend/lib/robots/MiioValetudoRobot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class MiioValetudoRobot extends ValetudoRobot {
7676

7777
this.fdsMockServer = http.createServer(this.expressApp);
7878

79-
this.expressApp.put("/api/miio/fds_upload_handler/:filename?", (req, res) => {
79+
this.expressApp.put("/api/miio/fds_upload_handler/{:filename}", (req, res) => {
8080
Logger.debug("FDS upload started with:", {
8181
query: req.query,
8282
params: req.params

backend/lib/webserver/WebServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class WebServer {
180180
}
181181
});
182182

183-
this.app.get("*", (req, res) => {
183+
this.app.get("*splat", (req, res) => {
184184
res.status(404).send(Tools.GET_RANDOM_ARRAY_ELEMENT(Object.values(notFoundPages)));
185185
});
186186

backend/lib/webserver/capabilityRouters/ConsumableMonitoringCapabilityRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ConsumableMonitoringCapabilityRouter extends CapabilityRouter {
1010
}
1111
});
1212

13-
this.router.put("/:type/:sub_type?", this.validator, async (req, res) => {
13+
this.router.put("/:type/{:sub_type}", this.validator, async (req, res) => {
1414
//This is only required because typescript doesn't understand optional parameters
1515
//error TS2551: Property 'sub_type' does not exist on type 'RouteParameters<"/:type/:sub_type?">'. Did you mean 'sub_type?'?
1616
const parameters = {

backend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
"aedes": "0.51.3",
4040
"ajv": "8.17.1",
4141
"async-mqtt": "2.6.3",
42-
"axios": "0.27.2",
42+
"axios": "0.30.2",
4343
"bonjour-service": "1.2.1",
44-
"compression": "1.7.4",
44+
"compression": "1.8.1",
4545
"crc": "4.3.2",
46-
"express": "4.21.1",
46+
"express": "5.2.1",
4747
"express-basic-auth": "1.2.1",
4848
"express-dynamic-middleware": "1.0.0",
4949
"express-list-endpoints": "7.1.0",
@@ -72,7 +72,7 @@
7272
"@types/semaphore": "1.1.4",
7373
"@types/uuid": "10.0.0",
7474
"cross-env": "7.0.3",
75-
"mocha": "10.7.3",
75+
"mocha": "12.0.0-beta-4",
7676
"@yao-pkg/pkg": "6.6.0",
7777
"should": "13.2.3"
7878
}

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@mui/material": "6.1.1",
4242
"@tanstack/react-query": "5.59.13",
4343
"@tanstack/react-query-devtools": "5.59.13",
44-
"axios": "1.6.2",
44+
"axios": "1.13.2",
4545
"eliza-as-promised": "git+https://npm@github.com/Hypfer/eliza-as-promised#0.0.3",
4646
"notistack": "3.0.1",
4747
"react": "18.3.1",

frontend/public/robots.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# https://www.robotstxt.org/robotstxt.html
21
User-agent: *
3-
Disallow:
2+
Disallow: /

0 commit comments

Comments
 (0)