gtfs-to-html 2.12.10 → 2.12.12
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 +19 -15
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gtfs-to-html.js +19 -15
- package/dist/bin/gtfs-to-html.js.map +1 -1
- package/dist/browser/THIRD_PARTY_LICENSES.txt +2 -2
- package/dist/browser/pbf.js +1 -1
- package/dist/index.js +19 -15
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/views/default/js/timetable-alerts.js +2 -2
- package/views/default/js/timetable-map.js +2 -2
package/dist/app/index.js
CHANGED
|
@@ -175,6 +175,7 @@ import toposort from "toposort";
|
|
|
175
175
|
import { dirname, join, resolve } from "path";
|
|
176
176
|
import cssEscape from "css.escape";
|
|
177
177
|
import { createWriteStream } from "fs";
|
|
178
|
+
import { createRequire } from "module";
|
|
178
179
|
import { fileURLToPath } from "url";
|
|
179
180
|
import {
|
|
180
181
|
access,
|
|
@@ -332,17 +333,20 @@ function isGtfsToHtmlError(error) {
|
|
|
332
333
|
|
|
333
334
|
// src/lib/file-utils.ts
|
|
334
335
|
var homeDirectory = homedir();
|
|
336
|
+
var localRequire = createRequire(import.meta.url);
|
|
335
337
|
function getPathToThisModuleFolder() {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
338
|
+
try {
|
|
339
|
+
return dirname(localRequire.resolve("gtfs-to-html/package.json"));
|
|
340
|
+
} catch {
|
|
341
|
+
const moduleDirectory = dirname(fileURLToPath(import.meta.url));
|
|
342
|
+
if (moduleDirectory.endsWith("/dist/bin") || moduleDirectory.endsWith("/dist/app")) {
|
|
343
|
+
return resolve(moduleDirectory, "../../");
|
|
344
|
+
}
|
|
345
|
+
if (moduleDirectory.endsWith("/dist")) {
|
|
346
|
+
return resolve(moduleDirectory, "../");
|
|
347
|
+
}
|
|
348
|
+
return resolve(moduleDirectory, "../../");
|
|
344
349
|
}
|
|
345
|
-
return distFolderPath;
|
|
346
350
|
}
|
|
347
351
|
function getPathToViewsFolder(config2) {
|
|
348
352
|
if (config2.templatePath) {
|
|
@@ -509,7 +513,7 @@ function getAgencyGeoJSON(config2) {
|
|
|
509
513
|
// package.json
|
|
510
514
|
var package_default = {
|
|
511
515
|
name: "gtfs-to-html",
|
|
512
|
-
version: "2.12.
|
|
516
|
+
version: "2.12.12",
|
|
513
517
|
private: false,
|
|
514
518
|
description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
|
|
515
519
|
keywords: [
|
|
@@ -565,14 +569,14 @@ var package_default = {
|
|
|
565
569
|
"css.escape": "^1.5.1",
|
|
566
570
|
"csv-stringify": "^6.7.0",
|
|
567
571
|
express: "^5.2.1",
|
|
568
|
-
gtfs: "^4.18.
|
|
572
|
+
gtfs: "^4.18.7",
|
|
569
573
|
"js-beautify": "^1.15.4",
|
|
570
574
|
"lodash-es": "^4.18.1",
|
|
571
|
-
marked: "^18.0.
|
|
575
|
+
marked: "^18.0.4",
|
|
572
576
|
moment: "^2.30.1",
|
|
573
577
|
"pretty-error": "^4.0.0",
|
|
574
578
|
pug: "^3.0.4",
|
|
575
|
-
puppeteer: "^
|
|
579
|
+
puppeteer: "^25.1.0",
|
|
576
580
|
"sanitize-filename": "^1.6.4",
|
|
577
581
|
"sanitize-html": "^2.17.4",
|
|
578
582
|
sqlstring: "^2.3.3",
|
|
@@ -598,7 +602,7 @@ var package_default = {
|
|
|
598
602
|
husky: "^9.1.7",
|
|
599
603
|
"lint-staged": "^17.0.5",
|
|
600
604
|
"maplibre-gl": "^5.24.0",
|
|
601
|
-
pbf: "^
|
|
605
|
+
pbf: "^5.0.0",
|
|
602
606
|
prettier: "^3.8.3",
|
|
603
607
|
tsup: "^8.5.1",
|
|
604
608
|
typescript: "^6.0.3"
|
|
@@ -606,7 +610,7 @@ var package_default = {
|
|
|
606
610
|
engines: {
|
|
607
611
|
node: ">= 22"
|
|
608
612
|
},
|
|
609
|
-
packageManager: "pnpm@11.
|
|
613
|
+
packageManager: "pnpm@11.4.0",
|
|
610
614
|
"release-it": {
|
|
611
615
|
github: {
|
|
612
616
|
release: true
|