minotor 1.0.3 → 1.0.4

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.3](https://github.com/aubryio/minotor/compare/v1.0.2...v1.0.3) (2025-02-09)
1
+ ## [1.0.4](https://github.com/aubryio/minotor/compare/v1.0.3...v1.0.4) (2025-02-11)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * split parser and router modules for better bundling ([#8](https://github.com/aubryio/minotor/issues/8)) ([6c89814](https://github.com/aubryio/minotor/commit/6c89814a336b3557458cd193b92bc8ffca4a79c1))
6
+ * expose missing data in APIs ([#9](https://github.com/aubryio/minotor/issues/9)) ([9798022](https://github.com/aubryio/minotor/commit/97980228efc0b87d2da221311cb82d188ab424a0))
package/README.md CHANGED
@@ -35,7 +35,7 @@ Transit data (GTFS) parsing runs on Node.js, and the resulting data is serialize
35
35
  #### GTFS Feed parsing (Node.js only)
36
36
 
37
37
  ```
38
- import { GtfsParser, chGtfsProfile } from 'minotor';
38
+ import { GtfsParser, chGtfsProfile } from 'minotor/parser';
39
39
 
40
40
  const parser = new GtfsParser('gtfs-feed.zip', chGtfsProfile);
41
41
  const { timetable, stopsIndex } = await parser.parse(new Date());
package/dist/cli.mjs CHANGED
@@ -19947,9 +19947,6 @@ Query.Builder = class {
19947
19947
 
19948
19948
  class Route {
19949
19949
  constructor(legs) {
19950
- if (legs.length === 0) {
19951
- throw new Error('There must be at least one leg in a route');
19952
- }
19953
19950
  this.legs = legs;
19954
19951
  }
19955
19952
  departureTime() {
@@ -20126,6 +20123,7 @@ class Router {
20126
20123
  from: this.stopsIndex.findStopById(stop),
20127
20124
  to: this.stopsIndex.findStopById(transfer.destination),
20128
20125
  minTransferTime: transfer.minTransferTime,
20126
+ type: transfer.type,
20129
20127
  },
20130
20128
  });
20131
20129
  earliestArrivals.set(transfer.destination, {