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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [1.0.6](https://github.com/aubryio/minotor/compare/v1.0.5...v1.0.6) (2025-02-26)
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
- * allow queries without destination ([#12](https://github.com/aubryio/minotor/issues/12)) ([cc38433](https://github.com/aubryio/minotor/commit/cc384335c9ef717aaf7dee47bcd7c2bc578bd4ef))
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 > after &&
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 <= after) {
17252
+ if (stopTime.departure < after) {
17253
17253
  break;
17254
17254
  }
17255
17255
  if (stopTime.pickUpType !== 'NOT_AVAILABLE' &&