gtfs-to-html 2.11.3 → 2.11.4
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 +13 -11
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +14 -12
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
- package/views/default/js/system-map.js +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -497,7 +497,7 @@ function formatTripNameForCSV(trip, timetable) {
|
|
|
497
497
|
// package.json
|
|
498
498
|
var package_default = {
|
|
499
499
|
name: "gtfs-to-html",
|
|
500
|
-
version: "2.11.
|
|
500
|
+
version: "2.11.4",
|
|
501
501
|
private: false,
|
|
502
502
|
description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
503
503
|
keywords: [
|
|
@@ -522,7 +522,8 @@ var package_default = {
|
|
|
522
522
|
"Holly Kvalheim",
|
|
523
523
|
"Pawajoro",
|
|
524
524
|
"Andrea Mignone",
|
|
525
|
-
"Evo Stamatov"
|
|
525
|
+
"Evo Stamatov",
|
|
526
|
+
"Sebastian Knopf"
|
|
526
527
|
],
|
|
527
528
|
type: "module",
|
|
528
529
|
main: "./dist/index.js",
|
|
@@ -550,16 +551,16 @@ var package_default = {
|
|
|
550
551
|
"cli-table": "^0.3.11",
|
|
551
552
|
"csv-stringify": "^6.6.0",
|
|
552
553
|
express: "^5.1.0",
|
|
553
|
-
gtfs: "^4.18.
|
|
554
|
+
gtfs: "^4.18.1",
|
|
554
555
|
"gtfs-realtime-pbf-js-module": "^1.0.0",
|
|
555
556
|
"js-beautify": "^1.15.4",
|
|
556
557
|
"lodash-es": "^4.17.21",
|
|
557
|
-
marked: "^16.
|
|
558
|
+
marked: "^16.4.1",
|
|
558
559
|
moment: "^2.30.1",
|
|
559
560
|
pbf: "^4.0.1",
|
|
560
561
|
"pretty-error": "^4.0.0",
|
|
561
562
|
pug: "^3.0.3",
|
|
562
|
-
puppeteer: "^24.
|
|
563
|
+
puppeteer: "^24.26.1",
|
|
563
564
|
"sanitize-filename": "^1.6.3",
|
|
564
565
|
"sanitize-html": "^2.17.0",
|
|
565
566
|
sqlstring: "^2.3.3",
|
|
@@ -568,9 +569,9 @@ var package_default = {
|
|
|
568
569
|
yoctocolors: "^2.1.2"
|
|
569
570
|
},
|
|
570
571
|
devDependencies: {
|
|
571
|
-
"@types/archiver": "^
|
|
572
|
+
"@types/archiver": "^7.0.0",
|
|
572
573
|
"@types/cli-table": "^0.3.4",
|
|
573
|
-
"@types/express": "^5.0.
|
|
574
|
+
"@types/express": "^5.0.4",
|
|
574
575
|
"@types/insane": "^1.0.0",
|
|
575
576
|
"@types/js-beautify": "^1.14.3",
|
|
576
577
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -580,9 +581,9 @@ var package_default = {
|
|
|
580
581
|
"@types/sanitize-html": "^2.16.0",
|
|
581
582
|
"@types/sqlstring": "^2.3.2",
|
|
582
583
|
"@types/toposort": "^2.0.7",
|
|
583
|
-
"@types/yargs": "^17.0.
|
|
584
|
+
"@types/yargs": "^17.0.34",
|
|
584
585
|
husky: "^9.1.7",
|
|
585
|
-
"lint-staged": "^16.2.
|
|
586
|
+
"lint-staged": "^16.2.6",
|
|
586
587
|
prettier: "^3.6.2",
|
|
587
588
|
tsup: "^8.5.0",
|
|
588
589
|
typescript: "^5.9.3"
|
|
@@ -731,7 +732,7 @@ var getCalendarDatesForTimetable = (timetable, config) => {
|
|
|
731
732
|
const excludedDates = /* @__PURE__ */ new Set();
|
|
732
733
|
const includedDates = /* @__PURE__ */ new Set();
|
|
733
734
|
for (const calendarDate of calendarDates) {
|
|
734
|
-
if (moment2(calendarDate.date, "YYYYMMDD").isBetween(start, end)) {
|
|
735
|
+
if (moment2(calendarDate.date, "YYYYMMDD").isBetween(start, end, "day", "[]")) {
|
|
735
736
|
if (calendarDate.exception_type === 1) {
|
|
736
737
|
includedDates.add(formatDate(calendarDate, config.dateFormat));
|
|
737
738
|
} else if (calendarDate.exception_type === 2) {
|
|
@@ -1755,6 +1756,7 @@ function setDefaultConfig(initialConfig) {
|
|
|
1755
1756
|
noHead: false,
|
|
1756
1757
|
noPickupSymbol: "**",
|
|
1757
1758
|
noPickupText: "No pickup available",
|
|
1759
|
+
noRegularServiceDaysText: "No regular service days",
|
|
1758
1760
|
noServiceSymbol: "-",
|
|
1759
1761
|
noServiceText: "No service at this stop",
|
|
1760
1762
|
outputFormat: "html",
|
|
@@ -2053,7 +2055,7 @@ function formatDays(calendar, config) {
|
|
|
2053
2055
|
}
|
|
2054
2056
|
}
|
|
2055
2057
|
if (dayString.length === 0) {
|
|
2056
|
-
dayString =
|
|
2058
|
+
dayString = config.noRegularServiceDaysText;
|
|
2057
2059
|
}
|
|
2058
2060
|
return dayString;
|
|
2059
2061
|
}
|
|
@@ -2513,7 +2515,7 @@ var gtfsToHtml = async (initialConfig) => {
|
|
|
2513
2515
|
timetablePageId,
|
|
2514
2516
|
config
|
|
2515
2517
|
);
|
|
2516
|
-
for (const timetable of timetablePage.
|
|
2518
|
+
for (const timetable of timetablePage.consolidatedTimetables) {
|
|
2517
2519
|
if (timetable.warnings) {
|
|
2518
2520
|
for (const warning of timetable.warnings) {
|
|
2519
2521
|
stats.warnings.push(warning);
|