fix: fix xml parsing

Fix xml parsing.

Fixes: #1527
This commit is contained in:
Conicaw 2023-11-16 20:17:58 +04:00
parent 1a9af916a9
commit e35e5016e7
No known key found for this signature in database
GPG Key ID: 15A9B0EA9098ABAB
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import parser from 'fast-xml-parser';
import { XMLParser } from 'fast-xml-parser';
const options = {
attributeNamePrefix: '',
@ -6,6 +6,8 @@ const options = {
arrayMode: true,
};
const parser = new XMLParser();
export default {
parse: (xml) => parser.parse(xml, options),
};