Skip to content

Commit 85ae3ff

Browse files
author
Yann
committed
chore: refresh deps and add node tests
Keep runtime/build tooling current and ensure server startup and APIs are covered.
1 parent 688e433 commit 85ae3ff

5 files changed

Lines changed: 1670 additions & 16 deletions

File tree

.parcelrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async function main() {
231231
app.use('/api', api);
232232

233233
// Fallback: serve index.html for any other route (SPA support)
234-
app.get('*', async (req, res) => {
234+
app.get(/.*/, async (req, res) => {
235235
const filePath = join(process.cwd(), 'dist', 'index.html');
236236
try {
237237
await stat(filePath);

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
"name": "keepalive",
33
"type": "module",
44
"dependencies": {
5-
"express": "^4.18.2",
6-
"node-cron": "^3.0.3",
7-
"lowdb": "^7.0.1"
5+
"express": "^5.2.1",
6+
"lowdb": "^7.0.1",
7+
"node-cron": "^4.2.1"
88
},
99
"devDependencies": {
10-
"parcel": "^2.14.4",
11-
"vite": "^6.3.1",
10+
"vite": "^6.4.1",
1211
"vite-plugin-html-minify": "^1.0.0"
1312
},
1413
"scripts": {
1514
"start": "node index.js",
16-
"test": "echo 'No test runner configured'",
15+
"test": "node --test test/server.test.js",
1716
"build": "vite build",
1817
"preview": "vite preview",
1918
"clean": "rm -rf dist/",

0 commit comments

Comments
 (0)