Skip to content

Commit

Permalink
Switch xmldom -> @xmldom/xmldom
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Dec 27, 2024
1 parent 8d3ea1d commit 3f2965e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
13 changes: 11 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@turf/bbox-polygon": "^6.4.0",
"@turf/helpers": "^6.4.0",
"@turf/line-offset": "^6.5.0",
"@xmldom/xmldom": "^0.9.6",
"blob-stream": "^0.1.3",
"blob-to-buffer": "^1.2.9",
"immer": "^9.0.2",
Expand Down Expand Up @@ -55,7 +56,6 @@
"tailwindcss": "^3.4.17",
"vite": "^6.0.5",
"vite-plugin-node-polyfills": "^0.22.0",
"worker-loader": "^3.0.8",
"xmldom": "^0.6.0"
"worker-loader": "^3.0.8"
}
}
2 changes: 1 addition & 1 deletion src/test-utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFileSync } from "fs";
import { parsePPen } from "./services/ppen";
import { DOMImplementation } from "xmldom";
import { DOMImplementation } from "@xmldom/xmldom";

export function parsePpenFile(path) {
const ppenStr = readFileSync(path, "utf-8");
Expand Down
2 changes: 1 addition & 1 deletion src/tile.worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readMap } from "./services/map";
import OcadTiler from "ocad-tiler";
import { svgToUrl } from "./services/svg-to-bitmap";
import { XMLSerializer, DOMImplementation } from "xmldom";
import { XMLSerializer, DOMImplementation } from "@xmldom/xmldom";

const domImplementation = new DOMImplementation();

Expand Down

0 comments on commit 3f2965e

Please sign in to comment.