Implements @elysiajs/swagger for automated API documentation and introduces a feature flag system to expose service capabilities based on environment variables. Refactors authentication guards into native Elysia scoped middleware for improved integration and type safety. Updates error handling to support custom status codes and adds instance-specific headers to responses for better observability. Includes an IP fallback mechanism for bug reports that utilizes internal system info when the direct submitter IP is unavailable.
23 lines
535 B
JSON
23 lines
535 B
JSON
{
|
|
"name": "emly-bugreport-server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "bun run --watch src/index.ts",
|
|
"dev:wait": "bun run --watch src/wait-for-mysql.ts",
|
|
"start": "bun run src/index.ts",
|
|
"start:wait": "bun run src/wait-for-mysql.ts"
|
|
},
|
|
"dependencies": {
|
|
"@elysiajs/swagger": "^1.3.1",
|
|
"@node-rs/argon2": "^2.0.2",
|
|
"elysia": "^1.4.27",
|
|
"jszip": "^3.10.1",
|
|
"mysql2": "^3.18.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|