fix(dependencies): Added missing xmlbuilder2 dependency and relevant exports

This commit is contained in:
2024-12-30 21:05:18 +01:00
parent 403f9c5757
commit c2c50583f0
6 changed files with 61 additions and 3 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartxml',
version: '1.1.0',
version: '1.1.1',
description: 'A package for creating and parsing XML formatted files.'
}

View File

@@ -3,6 +3,8 @@ import * as plugins from './smartxml.plugins.js';
export class SmartXml {
constructor() {}
public create = plugins.xmlbuilder2.create;
public parseXmlToObject<T = any>(xmlStringArg: string): T {
const parser = new plugins.fastXmlParser.XMLParser({
preserveOrder: true,

View File

@@ -1,5 +1,7 @@
import * as fastXmlParser from 'fast-xml-parser';
import * as xmlbuilder2 from 'xmlbuilder2';
export {
fastXmlParser
fastXmlParser,
xmlbuilder2,
};