mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 19:05:11 +00:00
Major Changes: - Add shared parseListItem.helper.js for unified list parsing (DRY) - Migrate all 22 extractors to use fetchWithMirror() for consistent mirror fallback - Remove unused cors dependency (custom CORS middleware handles it) - Fix middleware ordering: timeout now registered before routes - Fix CORS to allow POST for /api/mirrors/reset endpoint - Remove redundant cache check in homeInfo extractor New Features: - Request ID tracking (X-Request-Id header) for debugging - Graceful shutdown handling (SIGTERM/SIGINT) with 10s timeout - CSP and HSTS security headers - Rate limiter cleanup interval (every 5 min) to prevent memory leak - Request body size limits (10kb) via express.json() Security: - Content-Security-Policy header for XSS protection - Strict-Transport-Security for HTTPS enforcement - X-Permitted-Cross-Domain-Policies: none - Body size limits to prevent large payload attacks Code Quality: - All files follow strict documentation style (box headers, section separators, feature markers, JSDoc params/returns, inline notes, module footers) - Eliminated ~200 lines of duplicated code across 8+ extractors - Updated CHANGELOG.md with comprehensive change history
29 lines
670 B
JSON
29 lines
670 B
JSON
{
|
|
"name": "AniKotoAPI",
|
|
"version": "2.2.0",
|
|
"description": "A restful API to provide all information about anime from anikototv.to",
|
|
"main": "./server.js",
|
|
"scripts": {
|
|
"start": "node ./server.js",
|
|
"dev": "nodemon server.js",
|
|
"test": "node test.js"
|
|
},
|
|
"author": "Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"axios": "^1.8.0",
|
|
"cheerio": "^1.0.0-rc.12",
|
|
"compression": "^1.8.1",
|
|
"dotenv": "^16.4.0",
|
|
"express": "^4.21.0"
|
|
},
|
|
"type": "module",
|
|
"devDependencies": {
|
|
"nodemon": "^3.1.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Shineii86/AniKotoAPI.git"
|
|
}
|
|
}
|