gtfs-to-html 2.11.0 → 2.11.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/app/index.js +3 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +21 -6
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
rm
|
|
25
25
|
} from "fs/promises";
|
|
26
26
|
import { homedir } from "os";
|
|
27
|
+
import { findPackageJSON } from "module";
|
|
27
28
|
import * as _ from "lodash-es";
|
|
28
29
|
import { uniqBy as uniqBy2 } from "lodash-es";
|
|
29
30
|
import archiver from "archiver";
|
|
@@ -493,7 +494,7 @@ function formatTripNameForCSV(trip, timetable) {
|
|
|
493
494
|
// package.json
|
|
494
495
|
var package_default = {
|
|
495
496
|
name: "gtfs-to-html",
|
|
496
|
-
version: "2.11.
|
|
497
|
+
version: "2.11.1",
|
|
497
498
|
private: false,
|
|
498
499
|
description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
499
500
|
keywords: [
|
|
@@ -583,7 +584,7 @@ var package_default = {
|
|
|
583
584
|
typescript: "^5.9.2"
|
|
584
585
|
},
|
|
585
586
|
engines: {
|
|
586
|
-
node: ">=
|
|
587
|
+
node: ">= 22"
|
|
587
588
|
},
|
|
588
589
|
"release-it": {
|
|
589
590
|
github: {
|
|
@@ -2315,18 +2316,32 @@ async function copyStaticAssets(config, outputPath) {
|
|
|
2315
2316
|
}
|
|
2316
2317
|
if (config.hasGtfsRealtimeVehiclePositions || config.hasGtfsRealtimeTripUpdates || config.hasGtfsRealtimeAlerts) {
|
|
2317
2318
|
await copyFile(
|
|
2318
|
-
|
|
2319
|
+
join(
|
|
2320
|
+
dirname(findPackageJSON("pbf", import.meta.url)),
|
|
2321
|
+
"dist/pbf.js"
|
|
2322
|
+
),
|
|
2319
2323
|
join(outputPath, "js/pbf.js")
|
|
2320
2324
|
);
|
|
2321
2325
|
await copyFile(
|
|
2322
|
-
|
|
2326
|
+
join(
|
|
2327
|
+
dirname(
|
|
2328
|
+
findPackageJSON(
|
|
2329
|
+
"gtfs-realtime-pbf-js-module",
|
|
2330
|
+
import.meta.url
|
|
2331
|
+
)
|
|
2332
|
+
),
|
|
2333
|
+
"gtfs-realtime.browser.proto.js"
|
|
2334
|
+
),
|
|
2323
2335
|
join(outputPath, "js/gtfs-realtime.browser.proto.js")
|
|
2324
2336
|
);
|
|
2325
2337
|
}
|
|
2326
2338
|
if (config.hasGtfsRealtimeAlerts) {
|
|
2327
2339
|
await copyFile(
|
|
2328
|
-
|
|
2329
|
-
|
|
2340
|
+
join(
|
|
2341
|
+
dirname(findPackageJSON("anchorme", import.meta.url)),
|
|
2342
|
+
"dist/browser/anchorme.min.js"
|
|
2343
|
+
),
|
|
2344
|
+
join(outputPath, "js/anchorme.min.js")
|
|
2330
2345
|
);
|
|
2331
2346
|
}
|
|
2332
2347
|
}
|