@ztimson/utils 0.28.17 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +40 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +40 -6
- package/dist/index.mjs.map +1 -1
- package/dist/xml.d.ts +5 -0
- package/package.json +1 -1
package/dist/xml.d.ts
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* @param {string} xml - The XML string to parse
|
|
4
4
|
* @returns {Object} An object with `tag`, `attributes`, and `children` properties
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Parses an XML string into a structured JavaScript object (fast-xml-parser format).
|
|
8
|
+
* @param {string} xml - The XML string to parse
|
|
9
|
+
* @returns {Object} An object with tag names as keys and text content or nested objects as values
|
|
10
|
+
*/
|
|
6
11
|
export declare function fromXml(xml: string): any;
|
|
7
12
|
/**
|
|
8
13
|
* Converts a JavaScript object into an XML string.
|