gtfs-to-html 2.9.7 → 2.9.8
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/config-sample.json +3 -46
- package/dist/app/index.js +5 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +6 -3
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -333,7 +333,7 @@ function formatTripNameForCSV(trip, timetable) {
|
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
// package.json
|
|
336
|
-
var version = "2.9.
|
|
336
|
+
var version = "2.9.8";
|
|
337
337
|
|
|
338
338
|
// src/lib/utils.ts
|
|
339
339
|
var isTimepoint = (stoptime) => {
|
|
@@ -1344,7 +1344,10 @@ function getFormattedTimetablePage(timetablePageId, config) {
|
|
|
1344
1344
|
});
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
const uniqueRoutes = uniqBy(
|
|
1347
|
+
const uniqueRoutes = uniqBy(
|
|
1348
|
+
flatMap2(consolidatedTimetables, (timetable) => timetable.routes),
|
|
1349
|
+
"route_id"
|
|
1350
|
+
);
|
|
1348
1351
|
const formattedTimetablePage = {
|
|
1349
1352
|
...timetablePage,
|
|
1350
1353
|
consolidatedTimetables,
|
|
@@ -1890,7 +1893,7 @@ function zipFolder(outputPath) {
|
|
|
1890
1893
|
output.on("close", resolve2);
|
|
1891
1894
|
archive.on("error", reject);
|
|
1892
1895
|
archive.pipe(output);
|
|
1893
|
-
archive.glob("**/*.{txt,css,js,html}", {
|
|
1896
|
+
archive.glob("**/*.{txt,css,js,png,jpg,jpeg,svg,csv,pdf,html}", {
|
|
1894
1897
|
cwd: outputPath
|
|
1895
1898
|
});
|
|
1896
1899
|
archive.finalize();
|