gtfs-to-html 2.10.16 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtfs-to-html",
3
- "version": "2.10.16",
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.17.7",
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.1.2",
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.16.2",
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.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/timer-machine": "^1.1.3",
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.5",
87
+ "lint-staged": "^16.1.6",
89
88
  "prettier": "^3.6.2",
90
89
  "tsup": "^8.5.0",
91
90
  "typescript": "^5.9.2"
@@ -195,6 +195,11 @@ function addGeocoder(map, bounds) {
195
195
  },
196
196
  {
197
197
  maplibregl,
198
+ proximity: {
199
+ latitude: bounds.getCenter()[0],
200
+ longitude: bounds.getCenter()[1],
201
+ },
202
+ showResultsWhileTyping: true,
198
203
  zoom: 12,
199
204
  },
200
205
  ),
@@ -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
- a.timetable-page-link(href=`${timetablePage.relativePath}` data-route-ids=`${timetablePage.route_ids ? timetablePage.route_ids.join(',') : ''}`)
13
- - const timetableRouteList = _.uniqBy(_.flatMap(timetablePage.consolidatedTimetables, timetable => timetable.routes), 'route_id')
14
- each route in timetableRouteList
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
@@ -6,11 +6,11 @@ block extraHeader
6
6
  if config.showMap
7
7
  script(src="https://unpkg.com/jquery@3.7.1/dist/jquery.min.js" crossorigin="anonymous")
8
8
  script(src="https://unpkg.com/lodash@4.17.21/lodash.min.js" crossorigin="anonymous")
9
- script(src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js")
10
- script(src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.min.js")
9
+ script(src="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.js")
10
+ script(src="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.9.0/dist/maplibre-gl-geocoder.js")
11
11
  script(src=`${config.assetPath}js/system-map.js`)
12
12
 
13
- link(href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet")
14
- link(href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.5.0/dist/maplibre-gl-geocoder.css" rel="stylesheet")
13
+ link(href="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.css" rel="stylesheet")
14
+ link(href="https://unpkg.com/@maplibre/maplibre-gl-geocoder@1.9.0/dist/maplibre-gl-geocoder.css" rel="stylesheet")
15
15
 
16
16
  link(rel="stylesheet" href=`${config.assetPath}css/overview_styles.css`)
@@ -13,8 +13,8 @@ block extraHeader
13
13
  script(src=`${config.assetPath}js/gtfs-realtime.browser.proto.js`)
14
14
 
15
15
  if config.showMap
16
- link(href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet")
17
- script(src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js")
16
+ link(href="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.css" rel="stylesheet")
17
+ script(src="https://unpkg.com/maplibre-gl@^5.7.0/dist/maplibre-gl.js")
18
18
  script(src=`${config.assetPath}js/timetable-map.js`)
19
19
 
20
20
  if config.hasGtfsRealtimeAlerts