gtfs-to-html 2.10.9 → 2.10.11
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 +118 -1
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +118 -1
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +118 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -501,9 +501,126 @@ function formatTripNameForCSV(trip, timetable) {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// package.json
|
|
504
|
-
var
|
|
504
|
+
var package_default = {
|
|
505
|
+
name: "gtfs-to-html",
|
|
506
|
+
version: "2.10.11",
|
|
507
|
+
private: false,
|
|
508
|
+
description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
509
|
+
keywords: [
|
|
510
|
+
"transit",
|
|
511
|
+
"gtfs",
|
|
512
|
+
"gtfs-realtime",
|
|
513
|
+
"transportation",
|
|
514
|
+
"timetables"
|
|
515
|
+
],
|
|
516
|
+
homepage: "https://gtfstohtml.com",
|
|
517
|
+
bugs: {
|
|
518
|
+
url: "https://github.com/blinktaginc/gtfs-to-html/issues"
|
|
519
|
+
},
|
|
520
|
+
repository: "git://github.com/blinktaginc/gtfs-to-html",
|
|
521
|
+
license: "MIT",
|
|
522
|
+
author: "Brendan Nee <brendan@blinktag.com>",
|
|
523
|
+
contributors: [
|
|
524
|
+
"Evan Siroky <evan.siroky@yahoo.com>",
|
|
525
|
+
"Nathan Selikoff",
|
|
526
|
+
"Aaron Antrim <aaron@trilliumtransit.com>",
|
|
527
|
+
"Thomas Craig <thomas@trilliumtransit.com>",
|
|
528
|
+
"Holly Kvalheim",
|
|
529
|
+
"Pawajoro",
|
|
530
|
+
"Andrea Mignone",
|
|
531
|
+
"Evo Stamatov"
|
|
532
|
+
],
|
|
533
|
+
type: "module",
|
|
534
|
+
main: "./dist/index.js",
|
|
535
|
+
types: "./dist/index.d.ts",
|
|
536
|
+
files: [
|
|
537
|
+
"dist",
|
|
538
|
+
"docker",
|
|
539
|
+
"examples",
|
|
540
|
+
"views/default",
|
|
541
|
+
"config-sample.json"
|
|
542
|
+
],
|
|
543
|
+
bin: {
|
|
544
|
+
"gtfs-to-html": "dist/bin/gtfs-to-html.js"
|
|
545
|
+
},
|
|
546
|
+
scripts: {
|
|
547
|
+
build: "tsup",
|
|
548
|
+
start: "node ./dist/app",
|
|
549
|
+
prepare: "husky"
|
|
550
|
+
},
|
|
551
|
+
dependencies: {
|
|
552
|
+
"@turf/helpers": "^7.2.0",
|
|
553
|
+
"@turf/simplify": "^7.2.0",
|
|
554
|
+
anchorme: "^3.0.8",
|
|
555
|
+
archiver: "^7.0.1",
|
|
556
|
+
"cli-table": "^0.3.11",
|
|
557
|
+
"csv-stringify": "^6.5.2",
|
|
558
|
+
express: "^5.1.0",
|
|
559
|
+
gtfs: "^4.17.2",
|
|
560
|
+
"gtfs-realtime-pbf-js-module": "^1.0.0",
|
|
561
|
+
"js-beautify": "^1.15.4",
|
|
562
|
+
"lodash-es": "^4.17.21",
|
|
563
|
+
marked: "^15.0.8",
|
|
564
|
+
moment: "^2.30.1",
|
|
565
|
+
pbf: "^4.0.1",
|
|
566
|
+
"pretty-error": "^4.0.0",
|
|
567
|
+
pug: "^3.0.3",
|
|
568
|
+
puppeteer: "^24.6.1",
|
|
569
|
+
"sanitize-filename": "^1.6.3",
|
|
570
|
+
"sanitize-html": "^2.16.0",
|
|
571
|
+
sqlstring: "^2.3.3",
|
|
572
|
+
"timer-machine": "^1.1.0",
|
|
573
|
+
toposort: "^2.0.2",
|
|
574
|
+
untildify: "^5.0.0",
|
|
575
|
+
yargs: "^17.7.2",
|
|
576
|
+
yoctocolors: "^2.1.1"
|
|
577
|
+
},
|
|
578
|
+
devDependencies: {
|
|
579
|
+
"@types/archiver": "^6.0.3",
|
|
580
|
+
"@types/express": "^5.0.1",
|
|
581
|
+
"@types/insane": "^1.0.0",
|
|
582
|
+
"@types/js-beautify": "^1.14.3",
|
|
583
|
+
"@types/lodash-es": "^4.17.12",
|
|
584
|
+
"@types/morgan": "^1.9.9",
|
|
585
|
+
"@types/node": "^22.14.1",
|
|
586
|
+
"@types/pug": "^2.0.10",
|
|
587
|
+
"@types/sanitize-html": "^2.15.0",
|
|
588
|
+
"@types/timer-machine": "^1.1.3",
|
|
589
|
+
"@types/yargs": "^17.0.33",
|
|
590
|
+
husky: "^9.1.7",
|
|
591
|
+
"lint-staged": "^15.5.1",
|
|
592
|
+
prettier: "^3.5.3",
|
|
593
|
+
tsup: "^8.4.0",
|
|
594
|
+
typescript: "^5.8.3"
|
|
595
|
+
},
|
|
596
|
+
engines: {
|
|
597
|
+
node: ">= 20.11.0"
|
|
598
|
+
},
|
|
599
|
+
"release-it": {
|
|
600
|
+
github: {
|
|
601
|
+
release: true
|
|
602
|
+
},
|
|
603
|
+
plugins: {
|
|
604
|
+
"@release-it/keep-a-changelog": {
|
|
605
|
+
filename: "CHANGELOG.md"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
hooks: {
|
|
609
|
+
"after:bump": "npm run build"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
prettier: {
|
|
613
|
+
singleQuote: true
|
|
614
|
+
},
|
|
615
|
+
"lint-staged": {
|
|
616
|
+
"*.js": "prettier --write",
|
|
617
|
+
"*.ts": "prettier --write",
|
|
618
|
+
"*.json": "prettier --write"
|
|
619
|
+
}
|
|
620
|
+
};
|
|
505
621
|
|
|
506
622
|
// src/lib/utils.ts
|
|
623
|
+
var { version } = package_default;
|
|
507
624
|
var isTimepoint = (stoptime) => {
|
|
508
625
|
if (isNullOrEmpty(stoptime.timepoint)) {
|
|
509
626
|
return !isNullOrEmpty(stoptime.arrival_time) && !isNullOrEmpty(stoptime.departure_time);
|