Some checks failed
Deploy to Production / Deploy to Server (push) Failing after 20s
- Add pino structured logging with request IDs (X-Request-Id header) - Add 30s timeout to acquirePage() and renderPdf/renderUrlPdf - Add verification cache cleanup (every 15min) and rate limit cleanup (every 60s) - Read version from package.json in health endpoint - Add compression middleware - Escape currency in templates (XSS fix) - Add static asset caching (1h maxAge) - Remove deprecated docker-compose version field - Replace all console.log/error with pino logger
37 lines
914 B
JSON
37 lines
914 B
JSON
{
|
|
"name": "docfast-api",
|
|
"version": "0.1.0",
|
|
"description": "Markdown/HTML to PDF API with built-in invoice templates",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx src/index.ts",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"compression": "^1.8.1",
|
|
"express": "^4.21.0",
|
|
"express-rate-limit": "^7.5.0",
|
|
"helmet": "^8.0.0",
|
|
"marked": "^15.0.0",
|
|
"nanoid": "^5.0.0",
|
|
"nodemailer": "^8.0.1",
|
|
"pg": "^8.13.0",
|
|
"pino": "^10.3.1",
|
|
"puppeteer": "^24.0.0",
|
|
"stripe": "^20.3.1",
|
|
"swagger-ui-dist": "^5.31.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/compression": "^1.8.1",
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/nodemailer": "^7.0.9",
|
|
"@types/pg": "^8.11.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.0.0"
|
|
},
|
|
"type": "module"
|
|
}
|