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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minotor",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A lightweight client-side transit routing library.",
5
5
  "keywords": [
6
6
  "minotor",
@@ -251,7 +251,7 @@ export class Timetable {
251
251
  const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
252
252
  const stopTime = route.stopTimes[stopTimeIndex]!;
253
253
  if (
254
- stopTime.departure > after &&
254
+ stopTime.departure >= after &&
255
255
  stopTime.pickUpType !== 'NOT_AVAILABLE'
256
256
  ) {
257
257
  return tripIndex;
@@ -268,7 +268,7 @@ export class Timetable {
268
268
  ) {
269
269
  const stopTimeIndex = tripIndex * stopsNumber + stopIndex;
270
270
  const stopTime = route.stopTimes[stopTimeIndex]!;
271
- if (stopTime.departure <= after) {
271
+ if (stopTime.departure < after) {
272
272
  break;
273
273
  }
274
274
  if (