diff --git a/package-lock.json b/package-lock.json index 5d3d2c2..4560aef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,11 +10,11 @@ "license": "BSD-3-Clause", "dependencies": { "@maptiler/client": "^1.8.1", + "@xmldom/xmldom": "^0.8.10", "events": "^3.3.0", "js-base64": "^3.7.4", "maplibre-gl": "^4.5.2", - "uuid": "^9.0.0", - "xmldom": "^0.6.0" + "uuid": "^9.0.0" }, "devDependencies": { "@biomejs/biome": "1.8.3", @@ -1396,6 +1396,14 @@ "integrity": "sha512-ep4mF1IVnX/pYaNwxwOpJHyBtOMKWoKZMbnUyd+z0udqIxLUh7YCCd/JfDna8aUrmnG9SFORyIq2HzEATRrQsg==", "dev": true }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", + "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/@zeit/schemas": { "version": "2.36.0", "resolved": "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.36.0.tgz", @@ -4026,14 +4034,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/package.json b/package.json index 9399e19..433e54e 100644 --- a/package.json +++ b/package.json @@ -55,14 +55,14 @@ "typescript": "^5.1.6", "vite": "^5.3.4", "vite-plugin-dts": "^4.0.0-beta.0", - "vitest": "^0.34.2" + "vitest": "^0.34.2", + "@xmldom/xmldom": "^0.8.10" }, "dependencies": { "@maptiler/client": "^1.8.1", "events": "^3.3.0", "js-base64": "^3.7.4", "maplibre-gl": "^4.5.2", - "uuid": "^9.0.0", - "xmldom": "^0.6.0" + "uuid": "^9.0.0" } } diff --git a/test/converters/xml.test.ts b/test/converters/xml.test.ts index e1a4ea1..b175168 100644 --- a/test/converters/xml.test.ts +++ b/test/converters/xml.test.ts @@ -2,7 +2,7 @@ import fs from "fs"; import { promisify } from "util"; import { test, expect } from "vitest"; import { gpx, kml } from "../../src/converters"; -import { DOMParser, XMLSerializer } from "xmldom"; +import { DOMParser, XMLSerializer } from "@xmldom/xmldom"; const readDir = promisify(fs.readdir); const readFile = promisify(fs.readFile); diff --git a/vite.config-es.ts b/vite.config-es.ts index f0b8035..6437f92 100644 --- a/vite.config-es.ts +++ b/vite.config-es.ts @@ -35,7 +35,6 @@ export default defineConfig({ "events", "js-base64", "geojson-validation", - "xmldom", ], output: { // Provide global variables to use in the UMD build