Commit graph

1219 commits

Author SHA1 Message Date
Jannis R
c4470ca962
arrivals/departures: return obj with realtimeDataUpdatedAt & results 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
1000e48dfd
handle METHOD_NA/NO_MATCH/PARAMETER errors 2022-11-17 15:17:02 +01:00
Jannis R
9b263bb379
rework error handling 💥📝 2022-11-17 15:17:02 +01:00
Jannis R
0275b65c7a
fetch-ponyfill & pinkie-promise -> cross-fetch 💥
cross-fetch requires `globalThis.Promise` to be present.
2022-11-17 15:17:02 +01:00
Jannis R
7765f9d7a1
lib/request: use async/await, simplify error handling 2022-11-17 15:17:02 +01:00
Jannis R
b030eec1f5
use more async/await 💥 2022-11-17 15:17:02 +01:00
Jannis R
40957d3515
reachableFrom: don't retry 💥 2022-11-17 15:17:02 +01:00
Jannis R
f5962c4b7f
VBB E2E/integration tests: update mocked when & fixtures 2022-11-17 15:17:02 +01:00
Jannis R
70ae1b48bc
VBB/BVG E2E/integration tests: refactor shared test utils 2022-11-17 15:17:02 +01:00
Jannis R
7b0374695a
VBB: remove vbb-parse-line 💥 2022-11-17 15:17:01 +01:00
Jannis R
673d6f8279
VBB: remove vbb-parse-ticket, adapt to new response format 💥 2022-11-17 15:17:01 +01:00
Jannis R
d2bc134645
VBB: don't shorten stop/station names 💥 2022-11-17 15:17:01 +01:00
Jannis R
5ecf03f349
VBB: don't convert 7/9 <-> 12 digit IDs 💥 2022-11-17 15:17:01 +01:00
Jannis R
df4124e31d
BVG: don't shorten names 💥 2022-11-17 15:17:01 +01:00
Jannis R
5797105939
BVG: remove vbb-stations 💥 2022-11-17 15:17:01 +01:00
Jannis R
1f6115955d
BVG: don't convert IDs 💥 2022-11-17 15:17:01 +01:00
Jannis R
1ae1362916
BVG: remove vbb-parse-line 💥 2022-11-17 15:17:01 +01:00
Jannis R
a81e550f2a
departures{GetPasslist,StbFltrEquiv}: default to false 💥 2022-11-17 15:17:01 +01:00
Jannis R
492fdeb2ef
add profile.randomizeUserAgent flag 📝 2022-11-17 15:17:01 +01:00
Jannis R
e0cdd55908
parseWarning: {from,to}Loc -> {from,to}Location 💥 2022-11-17 15:17:01 +01:00
Jannis R
90308411fc
docs: .then/.catch -> await 📝
[ci skip]
2022-11-17 15:17:01 +01:00
Jannis R
d5969bc0c4
Node 16+ 💥💚 2022-11-17 15:17:01 +01:00
Jannis R
2baf2f6f04
changelog 📝; 5.26.2 2022-11-16 15:32:49 +01:00
Jannis R
a60083f8d1
parse trip.scheduledDays 2022-11-16 15:23:25 +01:00
Jannis R
b6900a3ddb
parse journey.scheduleDays using fpB & fpE 🐛
fixes #277

Thanks @bergmannjg!
2022-11-16 15:22:18 +01:00
Jannis R
61fc2293fb
E2E/integration tests: tweak assertions 2022-11-09 18:25:04 +01:00
Jannis R
5ff8527b60
tweak & restructure docs 📝, explicit defaults 2022-11-09 18:23:56 +01:00
Jannis R
c88179777d
put todos 2022-10-24 17:29:23 +02:00
Jannis R
f530a30fe0
mention related libs 📝 2022-10-24 14:12:00 +02:00
Jannis R
2319d317d0
changelog 📝; 5.26.1 2022-10-15 14:12:02 +02:00
Jannis R
66d78767ff
readme: mention typings & related libs 📝 2022-10-15 14:07:12 +02:00
Jannis R
0f7382e3b8
parse{Arrival,Departure}: properly parse .origin & .destination 🐛
fixes #273

Co-Authored-By: Jürgen Bergmann <bergmannj@posteo.de>
2022-10-15 14:02:11 +02:00
Jannis R
f20146137e
CI: run with Node 10-18 💚 2022-10-07 14:12:22 +02:00
Jannis R
7ccffa5e51
profile.log{Request,Response}: pass in random request ID 📝 2022-10-07 01:31:12 +02:00
Jannis R
4189ce437b
changelog 📝; 5.26.0 2022-10-06 19:23:58 +02:00
Jannis R
829c9ca461
add profile.log{Request,Response}() hooks 📝 2022-10-06 14:34:38 +02:00
Jannis R
0dc230837a
changelog 📝; 5.25.0
[ci skip]
2022-07-30 13:38:19 +02:00
Jannis R
95af0a0127
parse{Arrival,Departure}: expose prognosisType
fixes #266
2022-07-22 01:07:09 +02:00
Pieterjan Van Saet
7c68f962c1
parse{Stopover,JourneyLeg, Trip}: expose {arrival,departure}PrognosisType
see #266

Co-authored-by: Jannis R <mail@jannisr.de>
2022-07-22 01:06:35 +02:00
Jannis R
0a63698100
parse CHKI legs with checkin: true
fixes #267
2022-07-21 21:37:01 +02:00
Jannis R
9f2dcecf19
readme: link to db-tickets 📝
closes #268

[ci skip]
2022-07-19 22:25:26 +02:00
Jannis R
7929a986d5
changelog 📝; 5.24.1
[ci skip]
2022-06-23 12:54:56 +02:00
Jannis R
2ed2f38195
E2E/integration tests: DRY & tweak assertions 2022-06-18 18:33:26 +02:00
Jannis R
bdf933f806
INSA E2E/integration tests: adapt to latest data, update mocked when & fixtures 2022-06-18 18:33:26 +02:00
Jannis R
38cc9e9af8
E2E/integration tests: validate remarks 2022-06-18 18:33:26 +02:00
Jannis R
dda36c2da0
tests: enable linter, fix code style 2022-06-18 18:33:26 +02:00
Jannis R
3c7d8f79b2
DB: fix journeysFromTrip E2E/integration test 🐛 2022-06-18 18:33:26 +02:00
Jannis R
08be943906
BVG: re-skip BerlKönig test 2022-06-18 18:33:26 +02:00
Jannis R
4aa5f1de85
CFL, Irish Rail: transformReqBody -> defaultLanguage 2022-06-18 18:33:26 +02:00
Jannis R
492cb7dfbc
KVB: provide CA certificate chain via Agent 🐛 2022-06-18 18:33:13 +02:00