diff --git a/package-lock.json b/package-lock.json index 9525bc0..00dbfd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,13 +25,13 @@ "@babel/cli": "^7.18.9", "@babel/preset-env": "^7.18.9", "@babel/register": "^7.18.9", + "@xmldom/xmldom": "^0.8.2", "babel-plugin-istanbul": "^6.1.1", "jsdoc": "^3.6.10", "nyc": "^15.0.0", "source-map-support": "^0.5.21", "tape": "^5.5.3", "tape-promise": "^4.0.0", - "xmldom": "^0.6.0", "xpath.js": "^1.1.0" }, "engines": { @@ -2275,6 +2275,15 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", "dev": true }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.2.tgz", + "integrity": "sha512-+R0juSseERyoPvnBQ/cZih6bpF7IpCXlWbHRoCRzYzqpz6gWHOgf8o4MOEf6KBVuOyqU+gCNLkCWVIJAro8XyQ==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -5294,15 +5303,6 @@ "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", "dev": true }, - "node_modules/xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/xpath.js": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz", @@ -6936,6 +6936,12 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", "dev": true }, + "@xmldom/xmldom": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.2.tgz", + "integrity": "sha512-+R0juSseERyoPvnBQ/cZih6bpF7IpCXlWbHRoCRzYzqpz6gWHOgf8o4MOEf6KBVuOyqU+gCNLkCWVIJAro8XyQ==", + "dev": true + }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -9228,12 +9234,6 @@ "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", "dev": true }, - "xmldom": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", - "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", - "dev": true - }, "xpath.js": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xpath.js/-/xpath.js-1.1.0.tgz", diff --git a/package.json b/package.json index 8c9c733..5231c5b 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "source-map-support": "^0.5.21", "tape": "^5.5.3", "tape-promise": "^4.0.0", - "xmldom": "^0.6.0", + "@xmldom/xmldom": "^0.8.2", "xpath.js": "^1.1.0" }, "nyc": { diff --git a/tests/cell.test.js b/tests/cell.test.js index 6da00e4..11d5dbd 100644 --- a/tests/cell.test.js +++ b/tests/cell.test.js @@ -1,5 +1,5 @@ const test = require('tape'); -const DOMParser = require('xmldom').DOMParser; +const DOMParser = require('@xmldom/xmldom').DOMParser; const xl = require('../source/index'); test('Cell coverage', (t) => { diff --git a/tests/dataValidations.test.js b/tests/dataValidations.test.js index 30791cb..3d33ba7 100644 --- a/tests/dataValidations.test.js +++ b/tests/dataValidations.test.js @@ -1,6 +1,6 @@ const test = require('tape'); const xl = require('../source/index'); -const DOMParser = require('xmldom').DOMParser; +const DOMParser = require('@xmldom/xmldom').DOMParser; const DataValidation = require('../source/lib/worksheet/classes/dataValidation.js'); test('DataValidation Tests', (t) => { diff --git a/tests/worksheet.test.js b/tests/worksheet.test.js index 8b297f8..ded5f74 100644 --- a/tests/worksheet.test.js +++ b/tests/worksheet.test.js @@ -2,7 +2,7 @@ const tape = require('tape'); const _tape = require('tape-promise').default; const test = _tape(tape); const xl = require('../source/index'); -const DOMParser = require('xmldom').DOMParser; +const DOMParser = require('@xmldom/xmldom').DOMParser; test('Generate multiple sheets', (t) => { let wb = new xl.Workbook();