gtfs-to-html 2.10.4 → 2.10.6

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
@@ -135,7 +135,7 @@ import { fileURLToPath } from "node:url";
135
135
  import * as _ from "lodash-es";
136
136
  import archiver from "archiver";
137
137
  import beautify from "js-beautify";
138
- import DOMPurify from "dompurify";
138
+ import sanitizeHtml from "sanitize-html";
139
139
  import { renderFile } from "pug";
140
140
  import puppeteer from "puppeteer";
141
141
  import sanitize from "sanitize-filename";
@@ -291,7 +291,7 @@ async function renderTemplate(templateFileName, templateVars, config2) {
291
291
  const templatePath = getPathToTemplateFile(templateFileName, config2);
292
292
  const html = await renderFile(templatePath, {
293
293
  _,
294
- md: (text) => DOMPurify.sanitize(marked.parseInline(text)),
294
+ md: (text) => sanitizeHtml(marked.parseInline(text)),
295
295
  ...template_functions_exports,
296
296
  formatRouteColor,
297
297
  formatRouteTextColor,
@@ -407,7 +407,7 @@ function getAgencyGeoJSON(config2) {
407
407
  }
408
408
 
409
409
  // package.json
410
- var version = "2.10.4";
410
+ var version = "2.10.6";
411
411
 
412
412
  // src/lib/utils.ts
413
413
  var isTimepoint = (stoptime) => {
@@ -1573,7 +1573,7 @@ function formatStopTime(stoptime, timetable, config2) {
1573
1573
  timetable.interpolatedStopSymbolUsed = true;
1574
1574
  }
1575
1575
  }
1576
- if (stoptime.timepoint === null && stoptime.departure_time === null) {
1576
+ if (stoptime.timepoint === null && stoptime.departure_time === null && stoptime.stop_sequence === null) {
1577
1577
  stoptime.skipped = true;
1578
1578
  stoptime.classes.push("skipped");
1579
1579
  if (timetable.noServiceSymbol !== null) {