minotor 1.0.2 → 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/.prettierignore +1 -0
- package/CHANGELOG.md +2 -2
- package/README.md +1 -1
- package/dist/cli/minotor.d.ts +1 -1
- package/dist/cli/utils.d.ts +1 -1
- package/dist/cli.mjs +1 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/{bundle.cjs.js → parser.cjs.js} +11 -433
- package/dist/parser.cjs.js.map +1 -0
- package/dist/parser.d.ts +3 -0
- package/dist/{bundle.esm.js → parser.esm.js} +12 -426
- package/dist/parser.esm.js.map +1 -0
- package/dist/router.cjs.js +2 -0
- package/dist/router.cjs.js.map +1 -0
- package/dist/{umdIndex.d.ts → router.d.ts} +2 -2
- package/dist/router.esm.js +2 -0
- package/dist/router.esm.js.map +1 -0
- package/dist/{bundle.umd.js → router.umd.js} +2 -2
- package/dist/{bundle.umd.js.map → router.umd.js.map} +1 -1
- package/dist/routing/result.d.ts +2 -2
- package/dist/routing/route.d.ts +2 -1
- package/dist/routing/router.d.ts +1 -1
- package/package.json +13 -8
- package/rollup.config.js +22 -11
- package/src/cli/minotor.ts +1 -1
- package/src/cli/repl.ts +1 -1
- package/src/cli/utils.ts +1 -1
- package/src/parser.ts +4 -0
- package/src/{umdIndex.ts → router.ts} +11 -5
- package/src/routing/result.ts +2 -2
- package/src/routing/route.ts +2 -4
- package/src/routing/router.ts +3 -2
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.esm.js.map +0 -1
- package/dist/index.d.ts +0 -12
- package/src/index.ts +0 -34
package/.prettierignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
proto/
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.0.
|
|
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
|
-
* expose
|
|
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/minotor.d.ts
CHANGED
package/dist/cli/utils.d.ts
CHANGED
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, {
|