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/bin/gtfs-to-html.js
CHANGED
|
@@ -330,7 +330,7 @@ function formatTripNameForCSV(trip, timetable) {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
// package.json
|
|
333
|
-
var version = "2.9.
|
|
333
|
+
var version = "2.9.8";
|
|
334
334
|
|
|
335
335
|
// src/lib/utils.ts
|
|
336
336
|
var isTimepoint = (stoptime) => {
|
|
@@ -1341,7 +1341,10 @@ function getFormattedTimetablePage(timetablePageId, config) {
|
|
|
1341
1341
|
});
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
const uniqueRoutes = uniqBy(
|
|
1344
|
+
const uniqueRoutes = uniqBy(
|
|
1345
|
+
flatMap2(consolidatedTimetables, (timetable) => timetable.routes),
|
|
1346
|
+
"route_id"
|
|
1347
|
+
);
|
|
1345
1348
|
const formattedTimetablePage = {
|
|
1346
1349
|
...timetablePage,
|
|
1347
1350
|
consolidatedTimetables,
|
|
@@ -1912,7 +1915,7 @@ function zipFolder(outputPath) {
|
|
|
1912
1915
|
output.on("close", resolve2);
|
|
1913
1916
|
archive.on("error", reject);
|
|
1914
1917
|
archive.pipe(output);
|
|
1915
|
-
archive.glob("**/*.{txt,css,js,html}", {
|
|
1918
|
+
archive.glob("**/*.{txt,css,js,png,jpg,jpeg,svg,csv,pdf,html}", {
|
|
1916
1919
|
cwd: outputPath
|
|
1917
1920
|
});
|
|
1918
1921
|
archive.finalize();
|