Kenneth 1483805f13 fix: handle empty lines array in TFL source (#106)
Empty lines array caused fetchLineStatuses to build /Line//Status
URL, resulting in a 404 from the TFL API. Now defaults to all
lines when the array is empty.

Also switches fetchStations to Promise.allSettled so individual
line failures don't break the entire station fetch.

Co-authored-by: Ona <no-reply@ona.com>
2026-03-29 23:19:34 +01:00
2026-01-16 00:56:55 +00:00
2026-03-10 19:19:23 +00:00
2026-03-10 19:19:23 +00:00
2026-01-16 00:56:55 +00:00

aelis

To install dependencies:

bun install

Packages

@aelis/source-tfl

TfL (Transport for London) feed source for tube, overground, and Elizabeth line alerts.

Testing

cd packages/aelis-source-tfl
bun run test

Fixtures

Tests use fixture data from real TfL API responses stored in fixtures/tfl-responses.json.

To refresh fixtures:

bun run fetch-fixtures
Description
No description provided
Readme 15 MiB
Languages
TypeScript 97.1%
Shell 1.1%
CSS 0.9%
JavaScript 0.7%
Dockerfile 0.2%