diff --git a/lib/request.js b/lib/request.js index 24ea83d0..bc8f25f3 100644 --- a/lib/request.js +++ b/lib/request.js @@ -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, } diff --git a/parse/journey-leg.js b/parse/journey-leg.js index 22b887cc..9146a82b 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -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,