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