Commit graph

142 commits

Author SHA1 Message Date
Jannis R
de86391dcd
support HTTP proxies 2020-09-21 13:18:31 +02:00
Jannis R
4fc4c3b873
fix H9360 error message 🐛 2020-08-01 13:08:53 +02:00
Jannis R
51f4a66bd8
journeys: remove collection of results
Reverts 7fd574f.
See also https://github.com/public-transport/hafas-client/pull/23#issuecomment-370246163 .
2020-07-19 22:58:13 +02:00
Jannis R
dce42bfa31
move trip parsing into parse/trip 2020-06-11 15:34:20 +02:00
Jannis R
3c888a0ea0
refreshJourney: actually throw the error 🐛, add code 2020-04-18 17:14:40 +02:00
Jannis R
9c4189a874 add E2E tests for SVV 2020-04-09 14:33:58 +02:00
Lukas Siemon
1b0133190f
object-scan@13 (improved performance)
closes #173
2020-04-09 01:00:45 +02:00
Jannis R
36a8b388f2
add todos
also remove dead code
2020-03-18 21:45:30 +01:00
Lukas Siemon
8cb7d807f2
improve findInTree performance
by passing a list of paths to find in the tree up front

#154

closes #152
2020-02-22 19:13:56 +00:00
Jannis R
9522e9296d
object-scan@11 2020-02-15 19:24:30 +00:00
Simeon Keske
1c67350b48
move refreshJourneyReq-formatter to own function 2020-02-08 18:05:42 +01:00
Jannis R
c1beb28b85
Error -> TypeError 2020-02-04 18:47:25 +01:00
Jannis R
dfff999406
request: add response ID to error objects 2020-02-04 18:42:11 +01:00
Lukas Siemon
cf69ff4bc8 amend: converted spaced to tabs 2020-01-26 21:37:41 +01:00
Lukas Siemon
8c6a8d858e chore: improved performance 2020-01-26 21:37:41 +01:00
Jannis R
39a626784b
request formatters via profile 2020-01-05 18:10:10 +01:00
Jannis R
773035c05d
call formatProductsFilter via profile, use products from ctx.profile 💥 2020-01-05 18:10:10 +01:00
Jannis R
6d5c6081ce
request() via profile 💥 2020-01-05 18:10:09 +01:00
Jannis R
9fc6664302
adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
Jannis R
7b7293efea
lib/request: use transformed req body 🐛 2020-01-05 18:10:09 +01:00
Jannis R
252ce5b515
lib/request, index: use ctx object 💥 2020-01-05 18:10:09 +01:00
Jannis R
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥 2020-01-05 18:10:09 +01:00
Jannis R
6c5409fbce
extract parseIcon from parseCommon 2020-01-05 18:10:09 +01:00
Jannis R
d724846e91
rename findIdxRefs -> findInTree, remove resolveIdxRefs abstraction 2020-01-05 17:51:27 +01:00
Jannis R
3eae7ab169
parseCommon: resolve operator references 2020-01-05 17:51:27 +01:00
Jannis R
93814983da
add profile.parseCommon 2020-01-05 17:50:27 +01:00
Jannis R
ed0c606db1
add journeysOutFrwd profile flag 2019-12-29 22:18:22 +01:00
Jannis R
43b4a6e6d9
handle H_UNKNOWN error
see also schildbach/public-transport-enabler#0f6862f
2019-10-28 17:35:57 +01:00
Jannis R
2e88e964bb client ID: install-unique -> process-unique 2019-08-16 17:57:04 +02:00
Jannis R
b57c212bb5 errors: add HTTP status codes 2019-07-08 21:06:43 +02:00
Jannis R
b144dd5358 parse & expose error codes 2019-07-08 21:06:43 +02:00
Jannis R
d0f7ca1b6c
follow HTTP redirects, accept br encoding 2019-06-24 18:26:11 +02:00
Jannis R
4a79b91680
parseLocation: L param as fallback ID 2019-02-28 16:45:31 +01:00
Jannis R
d7e439b948
NODE_DEBUG -> DEBUG 💥 2019-02-28 16:45:18 +01:00
Jannis R
5d0096c596
departures: profile flag for getPasslist & stbFilterEquiv 2018-12-30 18:42:05 +01:00
Jannis R
b809281d0e
fix error parsing 🐛 2018-12-06 11:31:38 +01:00
Jannis R
a24822d161
fix test output 💚 2018-09-03 15:46:15 +02:00
Jannis R
3c104e2233
debug hook logging request & response 2018-09-03 15:31:22 +02:00
Jannis R
e98cec1734
remove unused code, minor changes 2018-09-03 15:30:42 +02:00
Jannis R
ae31807eb7
better User-Agent randomization 🐛 2018-08-08 18:40:35 +02:00
Jannis R
96c1df5c3a
generate & send install-unique IDs 2018-07-26 19:04:00 +02:00
Jannis R
067e807db7 INSA doesn't support refreshJourney 🐛 2018-07-25 10:05:52 +02:00
Jannis R
5d9d738152 mandatory User-Agent param 💥 2018-07-24 18:29:31 +02:00
Jannis R
a475f2048d parse stops and their stations 2018-07-13 16:07:23 +02:00
Jannis R
0199749a31
language option with default 'en' 2018-07-09 12:40:38 +02:00
Jannis R
4a454917dd rename profile.journeyLeg to profile.trip 💥 2018-07-07 21:19:28 +02:00
Jannis R
d9b7df693a
parse hint & warning types using icons
[ci skip]
2018-06-30 18:24:55 +02:00
Jannis R
31973431ff
option not to parse remarks 2018-06-28 13:45:56 +02:00
Jannis R
1d5f4ff31c parse arrivals 2018-06-26 18:13:41 +02:00
Jannis R
f5eceafdf3
merge refactor-parse-fns into next 2018-06-26 13:07:06 +02:00