- Add environment-aware CORS and secure cookie support: * Add secureCookies config to env.ts based on SECURE_COOKIES env var or https detection * Integrate @elysiajs/cors with credentials and origin configuration * Update cookie helpers to use SameSite=None; Secure in production - Wrap expert review update and insert in database transaction for atomicity: * Ensures diagnosis status update and review insert succeed together * Rolls back both operations if either fails * Preserves behavior: only update if status is needs_review, return badRequest if no row updated Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
31 lines
737 B
JSON
31 lines
737 B
JSON
{
|
|
"name": "@zeavis/api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --watch src/index.ts",
|
|
"start": "bun src/index.ts",
|
|
"typecheck": "tsc --project tsconfig.json",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate"
|
|
},
|
|
"dependencies": {
|
|
"@elysiajs/cors": "1.4.2",
|
|
"@tensorflow/tfjs": "4.22.0",
|
|
"@zeavis/shared": "workspace:*",
|
|
"bcryptjs": "^2.4.3",
|
|
"drizzle-orm": "^0.36.4",
|
|
"elysia": "^1.1.25",
|
|
"jpeg-js": "0.4.4",
|
|
"pngjs": "7.0.0",
|
|
"postgres": "^3.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/bun": "latest",
|
|
"drizzle-kit": "^0.27.1",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|