gtfs-to-html 2.10.17 → 2.11.0
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/dist/app/index.js +365 -200
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +379 -206
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +379 -206
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
- package/views/default/overview.pug +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gtfs-to-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
6
6
|
"keywords": [
|
|
@@ -53,24 +53,22 @@
|
|
|
53
53
|
"cli-table": "^0.3.11",
|
|
54
54
|
"csv-stringify": "^6.6.0",
|
|
55
55
|
"express": "^5.1.0",
|
|
56
|
-
"gtfs": "^4.
|
|
56
|
+
"gtfs": "^4.18.0",
|
|
57
57
|
"gtfs-realtime-pbf-js-module": "^1.0.0",
|
|
58
58
|
"js-beautify": "^1.15.4",
|
|
59
59
|
"lodash-es": "^4.17.21",
|
|
60
|
-
"marked": "^16.
|
|
60
|
+
"marked": "^16.3.0",
|
|
61
61
|
"moment": "^2.30.1",
|
|
62
62
|
"pbf": "^4.0.1",
|
|
63
63
|
"pretty-error": "^4.0.0",
|
|
64
64
|
"pug": "^3.0.3",
|
|
65
|
-
"puppeteer": "^24.
|
|
65
|
+
"puppeteer": "^24.21.0",
|
|
66
66
|
"sanitize-filename": "^1.6.3",
|
|
67
67
|
"sanitize-html": "^2.17.0",
|
|
68
68
|
"sqlstring": "^2.3.3",
|
|
69
|
-
"timer-machine": "^1.1.0",
|
|
70
69
|
"toposort": "^2.0.2",
|
|
71
|
-
"untildify": "^5.0.0",
|
|
72
70
|
"yargs": "^18.0.0",
|
|
73
|
-
"yoctocolors": "^2.1.
|
|
71
|
+
"yoctocolors": "^2.1.2"
|
|
74
72
|
},
|
|
75
73
|
"devDependencies": {
|
|
76
74
|
"@types/archiver": "^6.0.3",
|
|
@@ -82,10 +80,11 @@
|
|
|
82
80
|
"@types/node": "^22",
|
|
83
81
|
"@types/pug": "^2.0.10",
|
|
84
82
|
"@types/sanitize-html": "^2.16.0",
|
|
85
|
-
"@types/
|
|
83
|
+
"@types/sqlstring": "^2.3.2",
|
|
84
|
+
"@types/toposort": "^2.0.7",
|
|
86
85
|
"@types/yargs": "^17.0.33",
|
|
87
86
|
"husky": "^9.1.7",
|
|
88
|
-
"lint-staged": "^16.1.
|
|
87
|
+
"lint-staged": "^16.1.6",
|
|
89
88
|
"prettier": "^3.6.2",
|
|
90
89
|
"tsup": "^8.5.0",
|
|
91
90
|
"typescript": "^5.9.2"
|
|
@@ -9,9 +9,9 @@ include formatting_functions.pug
|
|
|
9
9
|
h1= `${formatListForDisplay(agencies.map((agency) => agency.agency_name))} Routes`
|
|
10
10
|
each timetablePage in sortTimetablePages(timetablePageGroup.timetablePages)
|
|
11
11
|
if config.allowEmptyTimetables || timetablePage.consolidatedTimetables.length > 0
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
each route in
|
|
12
|
+
- const timetableRoutes = _.uniqBy(_.flatMap(timetablePage.consolidatedTimetables, timetable => timetable.routes), 'route_id')
|
|
13
|
+
a.timetable-page-link(href=`${timetablePage.relativePath}` data-route-ids=`${timetableRoutes.map((route) => route.route_id).join(',')}`)
|
|
14
|
+
each route in timetableRoutes
|
|
15
15
|
.route-color-swatch-large(style=`background-color: ${formatRouteColor(route)}; color: ${formatRouteTextColor(route)};`)= route.route_short_name || ''
|
|
16
16
|
div
|
|
17
17
|
.timetable-page-label= timetablePage.timetable_page_label
|