gtfs-to-html 2.10.3 → 2.10.5

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.
@@ -26,7 +26,7 @@ import {
26
26
  import * as _ from "lodash-es";
27
27
  import archiver from "archiver";
28
28
  import beautify from "js-beautify";
29
- import DOMPurify from "dompurify";
29
+ import sanitizeHtml from "sanitize-html";
30
30
  import { renderFile } from "pug";
31
31
  import puppeteer from "puppeteer";
32
32
  import sanitize from "sanitize-filename";
@@ -499,7 +499,7 @@ function formatTripNameForCSV(trip, timetable) {
499
499
  }
500
500
 
501
501
  // package.json
502
- var version = "2.10.3";
502
+ var version = "2.10.5";
503
503
 
504
504
  // src/lib/utils.ts
505
505
  var isTimepoint = (stoptime) => {
@@ -2147,7 +2147,7 @@ async function renderTemplate(templateFileName, templateVars, config) {
2147
2147
  const templatePath = getPathToTemplateFile(templateFileName, config);
2148
2148
  const html = await renderFile(templatePath, {
2149
2149
  _,
2150
- md: (text) => DOMPurify.sanitize(marked.parseInline(text)),
2150
+ md: (text) => sanitizeHtml(marked.parseInline(text)),
2151
2151
  ...template_functions_exports,
2152
2152
  formatRouteColor,
2153
2153
  formatRouteTextColor,