- BUG-1: Pre-commit hook allows .env.example (grep -v filter) - BUG-2: /auth/refresh uses transaction + FOR UPDATE to prevent race condition - WARN-1: Auth middleware checks deleted_at with 5-min TTL cache - WARN-2: PUT /admin/users/:id/status filters deleted_at IS NULL - WARN-3: Install node-cron@^3.0.3
35 lines
814 B
JSON
35 lines
814 B
JSON
{
|
|
"name": "xiaocai-server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc && shx cp src/db/*.sql dist/db/",
|
|
"start": "node dist/index.js",
|
|
"db:init": "tsx src/db/init.ts",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^17.4.2",
|
|
"express": "^4.18.2",
|
|
"express-rate-limit": "^8.5.2",
|
|
"multer": "^2.1.1",
|
|
"mysql2": "^3.9.0",
|
|
"node-cron": "^3.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.17",
|
|
"@types/express": "^4.17.21",
|
|
"@types/multer": "^2.1.0",
|
|
"@types/node": "^20.11.0",
|
|
"@types/supertest": "^6.0.3",
|
|
"jest": "^29.7.0",
|
|
"shx": "^0.4.0",
|
|
"supertest": "^6.3.4",
|
|
"ts-jest": "^29.4.11",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5.3.0"
|
|
}
|
|
}
|