gtfs-to-html 2.10.4 → 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.
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  import * as _ from "lodash-es";
29
29
  import archiver from "archiver";
30
30
  import beautify from "js-beautify";
31
- import DOMPurify from "dompurify";
31
+ import sanitizeHtml from "sanitize-html";
32
32
  import { renderFile } from "pug";
33
33
  import puppeteer from "puppeteer";
34
34
  import sanitize from "sanitize-filename";
@@ -501,7 +501,7 @@ function formatTripNameForCSV(trip, timetable) {
501
501
  }
502
502
 
503
503
  // package.json
504
- var version = "2.10.4";
504
+ var version = "2.10.5";
505
505
 
506
506
  // src/lib/utils.ts
507
507
  var isTimepoint = (stoptime) => {
@@ -2124,7 +2124,7 @@ async function renderTemplate(templateFileName, templateVars, config) {
2124
2124
  const templatePath = getPathToTemplateFile(templateFileName, config);
2125
2125
  const html = await renderFile(templatePath, {
2126
2126
  _,
2127
- md: (text) => DOMPurify.sanitize(marked.parseInline(text)),
2127
+ md: (text) => sanitizeHtml(marked.parseInline(text)),
2128
2128
  ...template_functions_exports,
2129
2129
  formatRouteColor,
2130
2130
  formatRouteTextColor,