put todos

This commit is contained in:
Jannis R 2024-01-18 15:27:35 +01:00
parent 5660f602a7
commit a157d0b15f
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 0 deletions

View file

@ -163,7 +163,9 @@ const request = async (ctx, userAgent, reqData) => {
const res = await fetch(url, req) const res = await fetch(url, req)
const errProps = { const errProps = {
// todo [breaking]: assign as non-enumerable property
request: fetchReq, request: fetchReq,
// todo [breaking]: assign as non-enumerable property
response: res, response: res,
url, url,
} }

View file

@ -148,6 +148,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
const freq = pt.jny.freq || {} const freq = pt.jny.freq || {}
// todo: expose `res.cycle` even if only one field exists (breaking) // 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) { if (freq.minC && freq.maxC) {
res.cycle = { res.cycle = {
min: freq.minC * 60, min: freq.minC * 60,