@trailstash/ultra 3.3.3 → 3.4.0

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.
@@ -41,7 +41,7 @@ export class HelpModal extends HTMLElement {
41
41
  </li>
42
42
  <li>
43
43
  Map powered by
44
- <a target="_blank" href="https://maplibre.org/projects/maplibre-gl-js/"
44
+ <a target="_blank" href="https://github.com/maplibre/maplibre-gl-js/"
45
45
  >MapLibre GL JS</a
46
46
  > <code>${maplibreVersion}</code>
47
47
  </li>
@@ -1,3 +1,4 @@
1
+ import DOMPurify from "dompurify";
1
2
  import { Liquid } from "liquidjs";
2
3
  import { h, t } from "../lib/dom.js";
3
4
  import { normalizeCSS } from "../lib/normalize.js";
@@ -50,7 +51,7 @@ export class MapPopup extends HTMLElement {
50
51
  this.template,
51
52
  this.contextBuilder(f),
52
53
  );
53
- div.appendChild(h("div", {}, html));
54
+ div.appendChild(h("div", {}, DOMPurify.sanitize(html)));
54
55
  }
55
56
  shadow.appendChild(div);
56
57
  }
@@ -169,7 +169,7 @@ export class UltraMap extends HTMLElement {
169
169
  document.title = this.title;
170
170
  }
171
171
  if (this.icon) {
172
- document.querySelector('[rel=icon]').href = this.icon;
172
+ document.querySelector("[rel=icon]").href = this.icon;
173
173
  }
174
174
  if (this.description) {
175
175
  // TODO?
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.3.3",
6
+ "version": "3.4.0",
7
7
  "description": "A web based tool for making MapLibre GL maps with data from sources such as Overpass, GeoJSON, GPX, KML, TCX, etc",
8
8
  "main": "index.js",
9
9
  "scripts": {
@@ -58,6 +58,9 @@
58
58
  "@trailstash/maplibre-component": "^1.0.1",
59
59
  "@turf/bbox": "^7.1.0",
60
60
  "deep-equal": "^2.2.3",
61
+ "dompurify": "^3.1.7",
62
+ "esbuild": "^0.24.0",
63
+ "esbuild-plugin-copy": "^2.1.1",
61
64
  "liquidjs": "^10.17.0",
62
65
  "lodash.pick": "^4.4.0",
63
66
  "lz-string": "^1.5.0",
@@ -66,9 +69,7 @@
66
69
  "normalize.css": "^8.0.1",
67
70
  "osmtogeojson": "^3.0.0-beta.5",
68
71
  "pmtiles": "^3.2.0",
69
- "yaml": "^2.5.1",
70
- "esbuild": "^0.24.0",
71
- "esbuild-plugin-copy": "^2.1.1"
72
+ "yaml": "^2.5.1"
72
73
  },
73
74
  "peerDependencies": {
74
75
  "@maplibre/maplibre-gl-style-spec": "20.x"
package/.kids.ultra.swn DELETED
Binary file
package/cli/.build.js.swo DELETED
Binary file
Binary file
Binary file