mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
* fix(health): improve UCDP auth error handling, fix insights TTL - UCDP: detect 401/403 and string error responses with clear message about missing UCDP_ACCESS_TOKEN env var (API now requires auth) - Insights: increase cache TTL from 600s (10min) to 1800s (30min) to match health maxStaleMin and survive missed/delayed cron runs * fix(health): use Promise.any for UCDP version discovery UCDP v25.1 API hangs (30s timeout) while v24.1 works fine. Promise.allSettled waited for ALL candidates to settle, wasting 30s. Promise.any returns as soon as the first version succeeds (~3s for v24.1). Also adds empty-result check in discovery to skip versions that return 0 events (v24.1 data only goes through 2023). * fix(scripts): add h3-js dependency for Railway gpsjam cron service fetch-gpsjam.mjs imports h3-js for H3 hex → lat/lon conversion. scripts/package.json needs it since Railway builds from rootDirectory: "scripts".
19 lines
421 B
JSON
19 lines
421 B
JSON
{
|
|
"name": "worldmonitor-railway-relay",
|
|
"version": "1.1.0",
|
|
"description": "Railway relay: AIS/OpenSky + RSS proxy + Telegram OSINT poller",
|
|
"main": "ais-relay.cjs",
|
|
"scripts": {
|
|
"start": "node ais-relay.cjs",
|
|
"telegram:session": "node telegram/session-auth.mjs"
|
|
},
|
|
"dependencies": {
|
|
"ws": "^8.18.0",
|
|
"telegram": "^2.22.2",
|
|
"h3-js": "^4.2.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
}
|
|
}
|