fix(dependencies): Added missing xmlbuilder2 dependency and relevant exports
This commit is contained in:
parent
403f9c5757
commit
c2c50583f0
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-12-30 - 1.1.1 - fix(dependencies)
|
||||||
|
Added missing xmlbuilder2 dependency and relevant exports
|
||||||
|
|
||||||
|
- Added xmlbuilder2 to dependencies in package.json
|
||||||
|
- Export xmlbuilder2 functionality from smartxml.plugins.ts and ts/index.ts
|
||||||
|
|
||||||
## 2024-12-30 - 1.1.0 - feat(core)
|
## 2024-12-30 - 1.1.0 - feat(core)
|
||||||
Upgrade dependencies and enhance XML parsing and building
|
Upgrade dependencies and enhance XML parsing and building
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
"@types/node": "^22.10.2"
|
"@types/node": "^22.10.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fast-xml-parser": "^4.5.1"
|
"fast-xml-parser": "^4.5.1",
|
||||||
|
"xmlbuilder2": "^3.1.1"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
47
pnpm-lock.yaml
generated
47
pnpm-lock.yaml
generated
@ -11,6 +11,9 @@ importers:
|
|||||||
fast-xml-parser:
|
fast-xml-parser:
|
||||||
specifier: ^4.5.1
|
specifier: ^4.5.1
|
||||||
version: 4.5.1
|
version: 4.5.1
|
||||||
|
xmlbuilder2:
|
||||||
|
specifier: ^3.1.1
|
||||||
|
version: 3.1.1
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@git.zone/tsbuild':
|
'@git.zone/tsbuild':
|
||||||
specifier: ^2.2.0
|
specifier: ^2.2.0
|
||||||
@ -628,6 +631,22 @@ packages:
|
|||||||
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
|
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
|
||||||
engines: {node: '>= 8'}
|
engines: {node: '>= 8'}
|
||||||
|
|
||||||
|
'@oozcitak/dom@1.15.10':
|
||||||
|
resolution: {integrity: sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==}
|
||||||
|
engines: {node: '>=8.0'}
|
||||||
|
|
||||||
|
'@oozcitak/infra@1.0.8':
|
||||||
|
resolution: {integrity: sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==}
|
||||||
|
engines: {node: '>=6.0'}
|
||||||
|
|
||||||
|
'@oozcitak/url@1.0.4':
|
||||||
|
resolution: {integrity: sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==}
|
||||||
|
engines: {node: '>=8.0'}
|
||||||
|
|
||||||
|
'@oozcitak/util@8.3.8':
|
||||||
|
resolution: {integrity: sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==}
|
||||||
|
engines: {node: '>=8.0'}
|
||||||
|
|
||||||
'@open-wc/dedupe-mixin@1.4.0':
|
'@open-wc/dedupe-mixin@1.4.0':
|
||||||
resolution: {integrity: sha512-Sj7gKl1TLcDbF7B6KUhtvr+1UCxdhMbNY5KxdU5IfMFWqL8oy1ZeAcCANjoB1TL0AJTcPmcCFsCbHf8X2jGDUA==}
|
resolution: {integrity: sha512-Sj7gKl1TLcDbF7B6KUhtvr+1UCxdhMbNY5KxdU5IfMFWqL8oy1ZeAcCANjoB1TL0AJTcPmcCFsCbHf8X2jGDUA==}
|
||||||
|
|
||||||
@ -4064,6 +4083,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==}
|
resolution: {integrity: sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==}
|
||||||
engines: {node: '>=4.0.0'}
|
engines: {node: '>=4.0.0'}
|
||||||
|
|
||||||
|
xmlbuilder2@3.1.1:
|
||||||
|
resolution: {integrity: sha512-WCSfbfZnQDdLQLiMdGUQpMxxckeQ4oZNMNhLVkcekTu7xhD4tuUDyAPoY8CwXvBYE6LwBHd6QW2WZXlOWr1vCw==}
|
||||||
|
engines: {node: '>=12.0'}
|
||||||
|
|
||||||
xmlbuilder@11.0.1:
|
xmlbuilder@11.0.1:
|
||||||
resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}
|
resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==}
|
||||||
engines: {node: '>=4.0'}
|
engines: {node: '>=4.0'}
|
||||||
@ -5126,6 +5149,23 @@ snapshots:
|
|||||||
'@nodelib/fs.scandir': 2.1.5
|
'@nodelib/fs.scandir': 2.1.5
|
||||||
fastq: 1.18.0
|
fastq: 1.18.0
|
||||||
|
|
||||||
|
'@oozcitak/dom@1.15.10':
|
||||||
|
dependencies:
|
||||||
|
'@oozcitak/infra': 1.0.8
|
||||||
|
'@oozcitak/url': 1.0.4
|
||||||
|
'@oozcitak/util': 8.3.8
|
||||||
|
|
||||||
|
'@oozcitak/infra@1.0.8':
|
||||||
|
dependencies:
|
||||||
|
'@oozcitak/util': 8.3.8
|
||||||
|
|
||||||
|
'@oozcitak/url@1.0.4':
|
||||||
|
dependencies:
|
||||||
|
'@oozcitak/infra': 1.0.8
|
||||||
|
'@oozcitak/util': 8.3.8
|
||||||
|
|
||||||
|
'@oozcitak/util@8.3.8': {}
|
||||||
|
|
||||||
'@open-wc/dedupe-mixin@1.4.0': {}
|
'@open-wc/dedupe-mixin@1.4.0': {}
|
||||||
|
|
||||||
'@open-wc/scoped-elements@3.0.5':
|
'@open-wc/scoped-elements@3.0.5':
|
||||||
@ -9615,6 +9655,13 @@ snapshots:
|
|||||||
sax: 1.4.1
|
sax: 1.4.1
|
||||||
xmlbuilder: 11.0.1
|
xmlbuilder: 11.0.1
|
||||||
|
|
||||||
|
xmlbuilder2@3.1.1:
|
||||||
|
dependencies:
|
||||||
|
'@oozcitak/dom': 1.15.10
|
||||||
|
'@oozcitak/infra': 1.0.8
|
||||||
|
'@oozcitak/util': 8.3.8
|
||||||
|
js-yaml: 3.14.1
|
||||||
|
|
||||||
xmlbuilder@11.0.1: {}
|
xmlbuilder@11.0.1: {}
|
||||||
|
|
||||||
xmlhttprequest-ssl@2.0.0: {}
|
xmlhttprequest-ssl@2.0.0: {}
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartxml',
|
name: '@push.rocks/smartxml',
|
||||||
version: '1.1.0',
|
version: '1.1.1',
|
||||||
description: 'A package for creating and parsing XML formatted files.'
|
description: 'A package for creating and parsing XML formatted files.'
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@ import * as plugins from './smartxml.plugins.js';
|
|||||||
export class SmartXml {
|
export class SmartXml {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
|
public create = plugins.xmlbuilder2.create;
|
||||||
|
|
||||||
public parseXmlToObject<T = any>(xmlStringArg: string): T {
|
public parseXmlToObject<T = any>(xmlStringArg: string): T {
|
||||||
const parser = new plugins.fastXmlParser.XMLParser({
|
const parser = new plugins.fastXmlParser.XMLParser({
|
||||||
preserveOrder: true,
|
preserveOrder: true,
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import * as fastXmlParser from 'fast-xml-parser';
|
import * as fastXmlParser from 'fast-xml-parser';
|
||||||
|
import * as xmlbuilder2 from 'xmlbuilder2';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
fastXmlParser
|
fastXmlParser,
|
||||||
|
xmlbuilder2,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user