gtfs-to-html 2.11.3 → 2.11.5

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 CHANGED
@@ -430,7 +430,7 @@ function getAgencyGeoJSON(config2) {
430
430
  // package.json
431
431
  var package_default = {
432
432
  name: "gtfs-to-html",
433
- version: "2.11.3",
433
+ version: "2.11.5",
434
434
  private: false,
435
435
  description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
436
436
  keywords: [
@@ -455,7 +455,8 @@ var package_default = {
455
455
  "Holly Kvalheim",
456
456
  "Pawajoro",
457
457
  "Andrea Mignone",
458
- "Evo Stamatov"
458
+ "Evo Stamatov",
459
+ "Sebastian Knopf"
459
460
  ],
460
461
  type: "module",
461
462
  main: "./dist/index.js",
@@ -483,16 +484,16 @@ var package_default = {
483
484
  "cli-table": "^0.3.11",
484
485
  "csv-stringify": "^6.6.0",
485
486
  express: "^5.1.0",
486
- gtfs: "^4.18.0",
487
+ gtfs: "^4.18.1",
487
488
  "gtfs-realtime-pbf-js-module": "^1.0.0",
488
489
  "js-beautify": "^1.15.4",
489
490
  "lodash-es": "^4.17.21",
490
- marked: "^16.3.0",
491
+ marked: "^16.4.1",
491
492
  moment: "^2.30.1",
492
493
  pbf: "^4.0.1",
493
494
  "pretty-error": "^4.0.0",
494
495
  pug: "^3.0.3",
495
- puppeteer: "^24.23.0",
496
+ puppeteer: "^24.29.0",
496
497
  "sanitize-filename": "^1.6.3",
497
498
  "sanitize-html": "^2.17.0",
498
499
  sqlstring: "^2.3.3",
@@ -501,9 +502,9 @@ var package_default = {
501
502
  yoctocolors: "^2.1.2"
502
503
  },
503
504
  devDependencies: {
504
- "@types/archiver": "^6.0.3",
505
+ "@types/archiver": "^7.0.0",
505
506
  "@types/cli-table": "^0.3.4",
506
- "@types/express": "^5.0.3",
507
+ "@types/express": "^5.0.5",
507
508
  "@types/insane": "^1.0.0",
508
509
  "@types/js-beautify": "^1.14.3",
509
510
  "@types/lodash-es": "^4.17.12",
@@ -513,9 +514,9 @@ var package_default = {
513
514
  "@types/sanitize-html": "^2.16.0",
514
515
  "@types/sqlstring": "^2.3.2",
515
516
  "@types/toposort": "^2.0.7",
516
- "@types/yargs": "^17.0.33",
517
+ "@types/yargs": "^17.0.34",
517
518
  husky: "^9.1.7",
518
- "lint-staged": "^16.2.3",
519
+ "lint-staged": "^16.2.6",
519
520
  prettier: "^3.6.2",
520
521
  tsup: "^8.5.0",
521
522
  typescript: "^5.9.3"
@@ -664,7 +665,7 @@ var getCalendarDatesForTimetable = (timetable, config2) => {
664
665
  const excludedDates = /* @__PURE__ */ new Set();
665
666
  const includedDates = /* @__PURE__ */ new Set();
666
667
  for (const calendarDate of calendarDates) {
667
- if (moment2(calendarDate.date, "YYYYMMDD").isBetween(start, end)) {
668
+ if (moment2(calendarDate.date, "YYYYMMDD").isBetween(start, end, "day", "[]")) {
668
669
  if (calendarDate.exception_type === 1) {
669
670
  includedDates.add(formatDate(calendarDate, config2.dateFormat));
670
671
  } else if (calendarDate.exception_type === 2) {
@@ -1688,6 +1689,7 @@ function setDefaultConfig(initialConfig) {
1688
1689
  noHead: false,
1689
1690
  noPickupSymbol: "**",
1690
1691
  noPickupText: "No pickup available",
1692
+ noRegularServiceDaysText: "No regular service days",
1691
1693
  noServiceSymbol: "-",
1692
1694
  noServiceText: "No service at this stop",
1693
1695
  outputFormat: "html",
@@ -1932,7 +1934,7 @@ function formatDays(calendar, config2) {
1932
1934
  }
1933
1935
  }
1934
1936
  if (dayString.length === 0) {
1935
- dayString = "No regular service days";
1937
+ dayString = config2.noRegularServiceDaysText;
1936
1938
  }
1937
1939
  return dayString;
1938
1940
  }