gtfs-to-html 2.10.14 → 2.10.15

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 CHANGED
@@ -120,7 +120,7 @@ import {
120
120
  getFrequencies,
121
121
  getTimetables,
122
122
  getTimetablePages,
123
- getAgencies,
123
+ getAgencies as getAgencies2,
124
124
  openDb
125
125
  } from "gtfs";
126
126
  import { stringify } from "csv-stringify";
@@ -324,7 +324,7 @@ import { featureCollection, round } from "@turf/helpers";
324
324
  import { clearLine, cursorTo } from "readline";
325
325
  import { noop } from "lodash-es";
326
326
  import * as colors from "yoctocolors";
327
- import { getFeedInfo } from "gtfs";
327
+ import { getAgencies, getFeedInfo } from "gtfs";
328
328
  import Table from "cli-table";
329
329
  function logWarning(config2) {
330
330
  if (config2.logFunction) {
@@ -419,7 +419,7 @@ function getAgencyGeoJSON(config2) {
419
419
  // package.json
420
420
  var package_default = {
421
421
  name: "gtfs-to-html",
422
- version: "2.10.14",
422
+ version: "2.10.15",
423
423
  private: false,
424
424
  description: "Build human readable transit timetables as HTML, PDF or CSV from GTFS",
425
425
  keywords: [
@@ -476,12 +476,12 @@ var package_default = {
476
476
  "gtfs-realtime-pbf-js-module": "^1.0.0",
477
477
  "js-beautify": "^1.15.4",
478
478
  "lodash-es": "^4.17.21",
479
- marked: "^16.0.0",
479
+ marked: "^16.1.1",
480
480
  moment: "^2.30.1",
481
481
  pbf: "^4.0.1",
482
482
  "pretty-error": "^4.0.0",
483
483
  pug: "^3.0.3",
484
- puppeteer: "^24.14.0",
484
+ puppeteer: "^24.15.0",
485
485
  "sanitize-filename": "^1.6.3",
486
486
  "sanitize-html": "^2.17.0",
487
487
  sqlstring: "^2.3.3",
@@ -976,6 +976,11 @@ var getStopOrder = (timetable, config2) => {
976
976
  stopGraph.push([stopId, sortedStopIds[index + 1]]);
977
977
  }
978
978
  }
979
+ if (stopGraph.length === 0 && config2.showOnlyTimepoint === true) {
980
+ timetable.warnings.push(
981
+ `Timetable ${timetable.timetable_id}'s trips have stoptimes with timepoints but \`showOnlyTimepoint\` is true. Try setting \`showOnlyTimepoint\` to false.`
982
+ );
983
+ }
979
984
  const stopIds = toposort(stopGraph);
980
985
  return duplicateStopsForDifferentArrivalDeparture(
981
986
  stopIds,
@@ -1584,7 +1589,7 @@ function getFormattedTimetablePage(timetablePageId, config2) {
1584
1589
  return formattedTimetablePage;
1585
1590
  }
1586
1591
  function generateTimetableHTML(timetablePage, config2) {
1587
- const agencies = getAgencies();
1592
+ const agencies = getAgencies2();
1588
1593
  const templateVars = {
1589
1594
  timetablePage,
1590
1595
  config: config2,
@@ -1593,7 +1598,7 @@ function generateTimetableHTML(timetablePage, config2) {
1593
1598
  return renderTemplate("timetablepage", templateVars, config2);
1594
1599
  }
1595
1600
  function generateOverviewHTML(timetablePages, config2) {
1596
- const agencies = getAgencies();
1601
+ const agencies = getAgencies2();
1597
1602
  if (agencies.length === 0) {
1598
1603
  throw new Error("No agencies found");
1599
1604
  }