McToel
1aeb246622
Browser compatibility ( #17 )
...
* Removed Proxy and local address code
* replaced node crypto with web crypto
* Replaced require with static imports
* removed commented out imports
* import db-hafas-stations on demand
* trying to handle undefined envs
* Less optimistic variable handling
* cleanup
* Small browser docs addition
* Linting
* No async in new Promise
* Bumped eslint to v9 and ecmaScript to 2025
* removed duplicated eslint config
* Bumped minimal node version to node 18
* Added node 24
* using math.random instead of webcrypto and reintroduced randomizeUserAgent
* Oh no node 24 is actually not released yet
* removed temp debug file
2025-02-25 13:21:26 +01:00
Traines
977da80885
cleanup
2025-01-11 21:14:50 +00:00
Traines
f8a79834b3
linting
2024-12-08 21:42:57 +00:00
Traines
0e328aa681
tests
2024-12-07 23:48:08 +00:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
...
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
339d64e901
convert to ESM 💥 📝
2022-11-18 19:20:03 +01:00
Jannis R
cef6dcaf0f
request: pass whole req body into transformReqBody 🐛 ✅
2022-11-18 19:20:03 +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
9318007455
move profile E2E tests to test/e2e
2020-01-05 18:10:08 +01:00
Jannis R
99d1531dbb
adapt tests to c2dc874
2020-01-05 17:55:37 +01:00
Jannis R
2d1d482ddf
adapt tests to 938a6f2
2020-01-05 17:55:27 +01:00
Jannis R
2b9280e6c3
adapt tests to 29a2cf3
2020-01-05 17:55:16 +01:00
Jannis R
0c145d352b
BVG, VBB: tests for walkingSpeed option ✅
2020-01-05 17:50:56 +01:00
Jannis R
3b0740d310
adapt tests to 7e39a2f
2019-02-28 16:45:40 +01:00
Jannis R
eab850e058
adapt docs & tests to eb3ffba
📝
2019-02-28 16:45:31 +01:00
Jannis R
9c449958c4
remove (arrival|departure).trip, movement.trip 💥
2019-02-28 16:45:31 +01:00
Jannis R
8566bcc85f
journeys tests: expect 4 results ✅
...
The default nr of results returned by HAFAS seems to be `3`, so we pick
a different one to assert that the `results` option actually works.
2019-02-28 16:45:31 +01:00
Jannis R
c1bb9a6a5c
adapt docs & tests to 0e1fcb0
📝 ✅
2019-02-28 16:45:18 +01:00
Jannis R
a1c40ad084
adapt tests to fcc53b5
✅
2019-02-28 16:45:09 +01:00
Jannis R
88c78c243f
adapt tests to 96ff59d
✅
2019-02-28 16:44:46 +01:00
Jannis R
0fa9610b30
tests: trip validator ✅
2019-02-28 16:44:46 +01:00
Jannis R
bbff1f4c63
movement.nextStops -> movement.nextStopovers 💥
2019-02-28 16:44:10 +01:00
Jannis R
59584a3402
tests: co/yield -> async/await
2019-02-28 16:44:10 +01:00
Jannis R
1e13cf15ae
parseLocation: strip leading zeros from IDs 💥
2019-02-28 16:30:18 +01:00
Jannis R
b55c2c1579
validateMovement: min/max longitude/latitude config
2018-12-30 18:42:05 +01:00
Jannis R
f097022b9a
tests for departure.nextStopovers/arrival.previousStopovers ✅
2018-12-28 22:14:35 +01:00
Jannis R
b208a3dda4
tests: fix messages ✅
2018-12-03 11:48:31 +01:00
Jannis R
d9126d531a
leg.alternatives: DB smoke test ✅
2018-12-03 11:43:14 +01:00
Jannis R
f88358e02a
tests for leg.cycle & leg.alternatives ✅
2018-12-03 11:43:14 +01:00
Jannis R
05409c4f10
earlier/later journeys tests: add when 💚
2018-11-20 18:38:48 +01:00
Jannis R
0ce28fc783
test earlier/later journeys test 💚
2018-11-20 18:29:20 +01:00
Jannis R
ef40e827ae
fix tests 💚
2018-11-13 20:34:12 +01:00
Jannis R
4f15cbd049
minor changes
2018-10-15 20:10:50 +02:00
Jannis R
3ac04a0ebd
reachableFrom(loc, [opt]) -> reachableFrom(address, [opt])
2018-09-03 16:43:01 +02:00
Jannis R
e65b2d8780
tests for reachableFrom ✅
2018-09-03 16:43:01 +02:00
Jannis R
5cb2b4f049
fix tests 💚
2018-09-03 15:55:09 +02:00
Jannis R
1f13f68926
allow line.fahrtNr of null 💚
2018-08-22 19:33:38 +02:00
Jannis R
9257d3ad7d
parse line.fahrtNr, adapt tests ✅ , adapt docs 📝
2018-08-22 19:06:57 +02:00
Jannis R
05bd54f021
tests for BVG ✅
2018-07-29 20:17:50 +02:00
Jannis R
da10988b29
add tests for refreshJourneys (c88071f) ✅
2018-07-25 10:05:52 +02:00
Jannis R
c4511c949c
adapt tests & Nah.sh profile to 12e61be
2018-07-16 11:57:07 +02:00
Jannis R
951c21eecc
adapt tests to 98a051b
2018-07-13 16:07:23 +02:00
Jannis R
c0a04fc74f
tests for includeRelatedStations
option ✅
...
see 1551943
2018-07-10 22:33:55 +02:00
Jannis R
efc6467c93
tests: validate former scheduled platforms ✅
2018-07-09 19:46:13 +02:00
Jannis R
c80f355d47
tests for departures with direction option ✅
2018-07-07 21:33:35 +02:00
Jannis R
bb6e42a662
walking legs: expose distance
2018-06-28 14:12:25 +02:00
Jannis R
d3815f80d7
arrivals/departures: parse & expose platforms ✨
2018-06-27 17:19:49 +02:00
Jannis R
f6c824eecb
fix tests 💚
2018-06-26 18:13:41 +02:00
Jannis R
3ade1af7a2
basic tests for arrivals ✅
2018-06-26 18:13:41 +02:00