mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
put todos
This commit is contained in:
parent
5660f602a7
commit
a157d0b15f
2 changed files with 3 additions and 0 deletions
|
@ -163,7 +163,9 @@ const request = async (ctx, userAgent, reqData) => {
|
|||
const res = await fetch(url, req)
|
||||
|
||||
const errProps = {
|
||||
// todo [breaking]: assign as non-enumerable property
|
||||
request: fetchReq,
|
||||
// todo [breaking]: assign as non-enumerable property
|
||||
response: res,
|
||||
url,
|
||||
}
|
||||
|
|
|
@ -148,6 +148,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
|
|||
|
||||
const freq = pt.jny.freq || {}
|
||||
// todo: expose `res.cycle` even if only one field exists (breaking)
|
||||
// todo [breaking]: rename to something more intuitive, e.g. res.headways.{min,max,nrOfTrips}
|
||||
if (freq.minC && freq.maxC) {
|
||||
res.cycle = {
|
||||
min: freq.minC * 60,
|
||||
|
|
Loading…
Add table
Reference in a new issue