2304f95ac1
Harden geolocation with watchdog timeouts and permission checks so desktop browsers without GPS no longer hang Live-Log. Show a hint to log a position when none exists for the day. Return 503 when crew-pool Prisma models are missing instead of crashing. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"name": "server",
|
|
"version": "1.0.0",
|
|
"description": "Backend API for Kapteins Daagbok",
|
|
"main": "dist/index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "prisma generate && tsc",
|
|
"postinstall": "prisma generate",
|
|
"start": "node dist/index.js",
|
|
"dev": "prisma generate && tsx watch src/index.ts",
|
|
"db:push": "prisma db push",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "^5.10.2",
|
|
"@simplewebauthn/server": "^9.0.3",
|
|
"cookie-parser": "^1.4.7",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"express-rate-limit": "^8.5.2",
|
|
"helmet": "^8.2.0",
|
|
"prisma": "^5.10.2",
|
|
"web-push": "^3.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cookie-parser": "^1.4.10",
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/node": "^20.11.24",
|
|
"@types/supertest": "^6.0.3",
|
|
"@types/web-push": "^3.6.4",
|
|
"supertest": "^7.1.0",
|
|
"tsx": "^4.7.1",
|
|
"typescript": "^5.3.3",
|
|
"vitest": "^3.0.9"
|
|
}
|
|
}
|