gtfs-to-html 2.12.0 → 2.12.1

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/index.js CHANGED
@@ -494,7 +494,7 @@ function formatTripNameForCSV(trip, timetable) {
494
494
  // package.json
495
495
  var package_default = {
496
496
  name: "gtfs-to-html",
497
- version: "2.12.0",
497
+ version: "2.12.1",
498
498
  private: false,
499
499
  description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
500
500
  keywords: [
@@ -542,8 +542,8 @@ var package_default = {
542
542
  },
543
543
  dependencies: {
544
544
  "@maplibre/maplibre-gl-geocoder": "^1.9.1",
545
- "@turf/helpers": "^7.2.0",
546
- "@turf/simplify": "^7.2.0",
545
+ "@turf/helpers": "^7.3.0",
546
+ "@turf/simplify": "^7.3.0",
547
547
  anchorme: "^3.0.8",
548
548
  archiver: "^7.0.1",
549
549
  "cli-table": "^0.3.11",
@@ -554,13 +554,13 @@ var package_default = {
554
554
  "gtfs-realtime-pbf-js-module": "^1.0.0",
555
555
  "js-beautify": "^1.15.4",
556
556
  "lodash-es": "^4.17.21",
557
- "maplibre-gl": "^5.12.0",
557
+ "maplibre-gl": "^5.13.0",
558
558
  marked: "^17.0.0",
559
559
  moment: "^2.30.1",
560
560
  pbf: "^4.0.1",
561
561
  "pretty-error": "^4.0.0",
562
562
  pug: "^3.0.3",
563
- puppeteer: "^24.29.1",
563
+ puppeteer: "^24.30.0",
564
564
  "sanitize-filename": "^1.6.3",
565
565
  "sanitize-html": "^2.17.0",
566
566
  sqlstring: "^2.3.3",
@@ -581,11 +581,11 @@ var package_default = {
581
581
  "@types/sanitize-html": "^2.16.0",
582
582
  "@types/sqlstring": "^2.3.2",
583
583
  "@types/toposort": "^2.0.7",
584
- "@types/yargs": "^17.0.34",
584
+ "@types/yargs": "^17.0.35",
585
585
  husky: "^9.1.7",
586
- "lint-staged": "^16.2.6",
586
+ "lint-staged": "^16.2.7",
587
587
  prettier: "^3.6.2",
588
- tsup: "^8.5.0",
588
+ tsup: "^8.5.1",
589
589
  typescript: "^5.9.3"
590
590
  },
591
591
  engines: {
@@ -2259,10 +2259,10 @@ function formatTimetableLabel(timetable) {
2259
2259
  return timetableLabel;
2260
2260
  }
2261
2261
  var formatRouteName = (route) => {
2262
- if (route.route_long_name) {
2263
- return `Route ${route.route_long_name}`;
2262
+ if (route.route_long_name === null || route.route_long_name === "") {
2263
+ return `Route ${route.route_short_name}`;
2264
2264
  }
2265
- return route.route_short_name ?? "Unknown";
2265
+ return route.route_long_name ?? "Unknown";
2266
2266
  };
2267
2267
  var formatRouteNameForFilename = (route) => {
2268
2268
  if (route.route_short_name) {