fix(universal-xml-plugin): use instead of xmldom
avoids vuln
MODIFY
package-lock.json
package-lock.json
"version": "2.0.4",
"license": "Apache-2.0"
},
- "node_modules/xmldom": {
- "version": "0.6.0",
- "license": "MIT",
- "engines": {
- "node": ">=10.0.0"
- }
- },
"node_modules/xpath": {
"version": "0.0.32",
"license": "MIT",
"license": "Apache-2.0",
"dependencies": {
"@types/xmldom": "0.1.31",
+ "@xmldom/xmldom": "0.8.3",
"fast-xml-parser": "3.21.1",
"source-map-support": "0.5.21",
- "xmldom": "0.6.0",
"xpath": "0.0.32"
},
"engines": {
"version": "file:packages/universal-xml-plugin",
"requires": {
"@types/xmldom": "0.1.31",
+ "@xmldom/xmldom": "0.8.3",
"fast-xml-parser": "3.21.1",
"source-map-support": "0.5.21",
- "xmldom": "0.6.0",
"xpath": "0.0.32"
}
},
"xmlcreate": {
"version": "2.0.4"
},
- "xmldom": {
- "version": "0.6.0"
- },
"xpath": {
"version": "0.0.32"
},

MODIFY
packages/universal-xml-plugin/lib/xpath.js
packages/universal-xml-plugin/lib/xpath.js
import {select as xpathQuery} from 'xpath';
-import {DOMParser} from 'xmldom';
+import {DOMParser} from '@xmldom/xmldom';
export function runQuery(query, xmlStr) {
const dom = new DOMParser().parseFromString(xmlStr);

MODIFY
packages/universal-xml-plugin/package.json
packages/universal-xml-plugin/package.json
},
"dependencies": {
"@types/xmldom": "0.1.31",
+ "@xmldom/xmldom": "0.8.3",
"fast-xml-parser": "3.21.1",
"source-map-support": "0.5.21",
- "xmldom": "0.6.0",
"xpath": "0.0.32"
},
"peerDependencies": {

fix(universal-xml-plugin): use @xmldom/xmldom instead of xmldom
avoids vuln