minotor 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/parser.cjs.js +2 -2
- package/dist/parser.cjs.js.map +1 -1
- package/dist/parser.esm.js +2 -2
- package/dist/parser.esm.js.map +1 -1
- package/dist/router.cjs.js +1 -1
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.esm.js +1 -1
- package/dist/router.esm.js.map +1 -1
- package/dist/router.umd.js +1 -1
- package/dist/router.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/timetable/timetable.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.0.
|
|
1
|
+
## [1.0.7](https://github.com/aubryio/minotor/compare/v1.0.6...v1.0.7) (2025-03-12)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* include time lower bound when looking for earliest trip ([#13](https://github.com/aubryio/minotor/issues/13)) ([aaabe2e](https://github.com/aubryio/minotor/commit/aaabe2e93795248c4d2038ff82ead15c9b5a24a7))
|
package/dist/cli.mjs
CHANGED
|
@@ -17235,7 +17235,7 @@ class Timetable {
|
|
|
17235
17235
|
for (let tripIndex = 0; tripIndex < route.stopTimes.length / stopsNumber; tripIndex++) {
|
|
17236
17236
|
const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
|
|
17237
17237
|
const stopTime = route.stopTimes[stopTimeIndex];
|
|
17238
|
-
if (stopTime.departure
|
|
17238
|
+
if (stopTime.departure >= after &&
|
|
17239
17239
|
stopTime.pickUpType !== 'NOT_AVAILABLE') {
|
|
17240
17240
|
return tripIndex;
|
|
17241
17241
|
}
|
|
@@ -17249,7 +17249,7 @@ class Timetable {
|
|
|
17249
17249
|
tripIndex >= 0; tripIndex--) {
|
|
17250
17250
|
const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
|
|
17251
17251
|
const stopTime = route.stopTimes[stopTimeIndex];
|
|
17252
|
-
if (stopTime.departure
|
|
17252
|
+
if (stopTime.departure < after) {
|
|
17253
17253
|
break;
|
|
17254
17254
|
}
|
|
17255
17255
|
if (stopTime.pickUpType !== 'NOT_AVAILABLE' &&
|