gtfs-to-html 2.9.14 → 2.10.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.9.14",
3
+ "version": "2.10.0",
4
4
  "private": false,
5
5
  "description": "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
6
6
  "keywords": [
@@ -52,19 +52,18 @@
52
52
  "archiver": "^7.0.1",
53
53
  "cli-table": "^0.3.11",
54
54
  "csv-stringify": "^6.5.1",
55
- "express": "^4.21.1",
56
- "gtfs": "^4.15.1",
55
+ "express": "^5.0.1",
56
+ "gtfs": "^4.15.3",
57
57
  "gtfs-realtime-pbf-js-module": "^1.0.0",
58
58
  "insane": "^2.6.2",
59
59
  "js-beautify": "^1.15.1",
60
60
  "lodash-es": "^4.17.21",
61
- "marked": "^14.1.2",
61
+ "marked": "^14.1.3",
62
62
  "moment": "^2.30.1",
63
- "morgan": "^1.10.0",
64
63
  "pbf": "^4.0.1",
65
64
  "pretty-error": "^4.0.0",
66
65
  "pug": "^3.0.3",
67
- "puppeteer": "^23.5.3",
66
+ "puppeteer": "^23.6.0",
68
67
  "sanitize-filename": "^1.6.3",
69
68
  "sqlstring": "^2.3.3",
70
69
  "timer-machine": "^1.1.0",
@@ -75,17 +74,17 @@
75
74
  },
76
75
  "devDependencies": {
77
76
  "@types/archiver": "^6.0.2",
78
- "@types/express": "^4.17.21",
77
+ "@types/express": "^5.0.0",
79
78
  "@types/insane": "^1.0.0",
80
79
  "@types/js-beautify": "^1.14.3",
81
80
  "@types/lodash-es": "^4.17.12",
82
81
  "@types/morgan": "^1.9.9",
83
- "@types/node": "^20.16.11",
82
+ "@types/node": "^20.16.13",
84
83
  "@types/pug": "^2.0.10",
85
- "@types/puppeteer": "^5.4.7",
86
- "@types/sanitize-filename": "^1.1.28",
84
+ "@types/puppeteer": "^7.0.4",
85
+ "@types/sanitize-filename": "^1.6.3",
87
86
  "@types/timer-machine": "^1.1.3",
88
- "@types/untildify": "^3.0.0",
87
+ "@types/untildify": "^4.0.0",
89
88
  "@types/yargs": "^17.0.33",
90
89
  "husky": "^9.1.6",
91
90
  "lint-staged": "^15.2.10",
@@ -166,21 +166,23 @@ a:hover {
166
166
  width: 100%;
167
167
  }
168
168
 
169
- .overview-map .mapboxgl-popup-content .popup-title {
169
+ .overview-map .maplibregl-popup-content .popup-title {
170
170
  margin: 0 20px 5px 0;
171
171
  font-size: 16px;
172
172
  font-weight: bold;
173
173
  }
174
174
 
175
- .overview-map .mapboxgl-popup-content .popup-label {
176
- margin-right: 0.25rem;
175
+ .overview-map .maplibregl-popup-content .popup-label {
176
+ border-bottom: 1px solid #e0e0e0;
177
+ padding-top: 0.5rem;
177
178
  }
178
179
 
179
- .overview-map .mapboxgl-popup-content .route-list {
180
- margin-bottom: 0.5rem;
180
+ .overview-map .maplibregl-popup-content .route-list {
181
+ margin-bottom: 1rem;
182
+ margin-top: 0.25rem;
181
183
  }
182
184
 
183
- .overview-map .mapboxgl-popup-content .map-route-item {
185
+ .overview-map .maplibregl-popup-content .map-route-item {
184
186
  display: flex;
185
187
  align-items: center;
186
188
  font-size: 0.75rem;
@@ -189,14 +191,14 @@ a:hover {
189
191
  gap: 0.5rem;
190
192
  }
191
193
 
192
- .overview-map .mapboxgl-popup-content .map-route-item:hover {
194
+ .overview-map .maplibregl-popup-content .map-route-item:hover {
193
195
  text-decoration: none;
194
196
  }
195
197
 
196
- .overview-map .mapboxgl-popup-content a.map-route-item .underline-hover:hover {
198
+ .overview-map .maplibregl-popup-content a.map-route-item .underline-hover:hover {
197
199
  text-decoration: underline;
198
200
  }
199
201
 
200
- .overview-map .mapboxgl-popup-content .mapboxgl-popup-close-button {
202
+ .overview-map .maplibregl-popup-content .maplibregl-popup-close-button {
201
203
  padding: 0 5px;
202
204
  }
@@ -453,22 +453,24 @@ a:hover {
453
453
  }
454
454
  }
455
455
 
456
- .timetable-page .map .mapboxgl-popup-content .popup-title {
456
+ .timetable-page .map .maplibregl-popup-content .popup-title {
457
457
  margin: 0 20px 5px 0;
458
458
  font-size: 1rem;
459
459
  font-weight: 700;
460
460
  line-height: 1;
461
461
  }
462
462
 
463
- .timetable-page .map .mapboxgl-popup-content .popup-label {
464
- margin-right: 0.25rem;
463
+ .timetable-page .map .maplibregl-popup-content .popup-label {
464
+ border-bottom: 1px solid #e0e0e0;
465
+ padding-top: 0.5rem;
465
466
  }
466
467
 
467
- .timetable-page .map .mapboxgl-popup-content .route-list {
468
+ .timetable-page .map .maplibregl-popup-content .route-list {
468
469
  margin-bottom: 1rem;
470
+ margin-top: 0.25rem;
469
471
  }
470
472
 
471
- .timetable-page .map .mapboxgl-popup-content .map-route-item {
473
+ .timetable-page .map .maplibregl-popup-content .map-route-item {
472
474
  display: flex;
473
475
  align-items: center;
474
476
  font-size: 0.75rem;
@@ -477,23 +479,23 @@ a:hover {
477
479
  gap: 0.5rem;
478
480
  }
479
481
 
480
- .timetable-page .map .mapboxgl-popup-content .map-route-item:hover {
482
+ .timetable-page .map .maplibregl-popup-content .map-route-item:hover {
481
483
  text-decoration: none;
482
484
  }
483
485
 
484
486
  .timetable-page
485
487
  .map
486
- .mapboxgl-popup-content
488
+ .maplibregl-popup-content
487
489
  a.map-route-item
488
490
  .underline-hover:hover {
489
491
  text-decoration: underline;
490
492
  }
491
493
 
492
- .timetable-page .map .mapboxgl-popup-content .mapboxgl-popup-close-button {
494
+ .timetable-page .map .maplibregl-popup-content .maplibregl-popup-close-button {
493
495
  padding: 0 5px;
494
496
  }
495
497
 
496
- .timetable-page .map .mapboxgl-popup-content .upcoming-stops {
498
+ .timetable-page .map .maplibregl-popup-content .upcoming-stops {
497
499
  display: grid;
498
500
  grid-template-columns: auto 1fr;
499
501
  gap: 0.5rem;
@@ -503,7 +505,7 @@ a:hover {
503
505
 
504
506
  .timetable-page
505
507
  .map
506
- .mapboxgl-popup-content
508
+ .maplibregl-popup-content
507
509
  .upcoming-stops div:nth-child(1) {
508
510
  font-weight: bold;
509
511
  border-bottom: 1px solid #dddddd;
@@ -513,7 +515,7 @@ a:hover {
513
515
 
514
516
  .timetable-page
515
517
  .map
516
- .mapboxgl-popup-content
518
+ .maplibregl-popup-content
517
519
  .upcoming-stops div:nth-child(2) {
518
520
  font-weight: bold;
519
521
  border-bottom: 1px solid #dddddd;
@@ -523,20 +525,20 @@ a:hover {
523
525
 
524
526
  .timetable-page
525
527
  .map
526
- .mapboxgl-popup-content
528
+ .maplibregl-popup-content
527
529
  .upcoming-stops
528
530
  div:nth-child(2n-1) {
529
531
  text-align: right;
530
532
  font-weight: bold;
531
533
  }
532
534
 
533
- .timetable-page .map .mapboxgl-popup-content .vehicle-updated {
535
+ .timetable-page .map .maplibregl-popup-content .vehicle-updated {
534
536
  padding-top: 5px;
535
537
  font-size: 10px;
536
538
  text-align: right;
537
539
  }
538
540
 
539
- .timetable-page .map .vehicle-popup .mapboxgl-popup-content {
541
+ .timetable-page .map .vehicle-popup .maplibregl-popup-content {
540
542
  padding-bottom: 5px;
541
543
  }
542
544
 
@@ -548,7 +550,7 @@ a:hover {
548
550
  padding: 10px;
549
551
  position: absolute;
550
552
  left: 10px;
551
- bottom: 35px;
553
+ bottom: 10px;
552
554
  z-index: 1;
553
555
  }
554
556
 
@@ -97,12 +97,13 @@
97
97
  }
98
98
 
99
99
  return {
100
+ gtfsRealtimeUrls,
101
+ mapStyleUrl: config.mapStyleUrl,
100
102
  pageData: {
101
103
  routeIds: _.uniq(_.flatMap(timetablePage.consolidatedTimetables, timetable => timetable.routes.map(route => route.route_id))),
102
104
  tripIds: _.uniq(_.flatMap(timetablePage.consolidatedTimetables, timetable => timetable.orderedTrips.map(trip => trip.trip_id))),
103
105
  stopIds: Object.keys(stopData),
104
106
  geojsons,
105
- gtfsRealtimeUrls,
106
107
  },
107
108
  routeData,
108
109
  stopData,