Skip to content

Commit 1313255

Browse files
committed
Update fastXmlParser to 4
1 parent 6a3e368 commit 1313255

File tree

3 files changed

+7
-26
lines changed

3 files changed

+7
-26
lines changed

backend/import/xml/parser.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const parser = require("fast-xml-parser");
1+
const { XMLParser } = require("fast-xml-parser");
22

33
function parse(content) {
4+
const parser = new XMLParser();
45
const parsedContent = parser.parse(content, {ignoreAttributes: false, attributeNamePrefix: "", textNodeName: "text"});
56
const root = parsedContent.cockatrice_carddatabase;
67
if (!root) {

package-lock.json

+4-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"engine.io-client": "^6.1.1",
6565
"express": "^4.17.3",
6666
"express-fileupload": "^1.3.1",
67-
"fast-xml-parser": "^3.21.1",
67+
"fast-xml-parser": "^4.0.3",
6868
"filepond": "^4.30.3",
6969
"filepond-plugin-file-validate-size": "^2.2.5",
7070
"filepond-plugin-file-validate-type": "^1.2.6",

0 commit comments

Comments
 (0)