@office-open/xml 0.3.4 → 0.3.6

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.d.mts CHANGED
@@ -10,7 +10,10 @@ declare function xml(input: Record<string, any> | Record<string, any>[], options
10
10
  }): string;
11
11
  //#endregion
12
12
  //#region src/parse.d.ts
13
+ declare function unescapeXml(str: string): string;
14
+ declare function nativeTypeValue(value: string): string | number | boolean;
13
15
  declare function xml2js(xmlString: string, options?: Xml2JsOptions): Element;
16
+ declare function parseAttributes(str: string): Record<string, string>;
14
17
  //#endregion
15
18
  //#region src/stringify.d.ts
16
19
  declare function js2xml(js: Element, options?: Js2XmlOptions): string;
@@ -47,4 +50,4 @@ declare function attrs(record: Record<string, string | number | boolean | undefi
47
50
  /** Convert XML string to JSON string — xml-js compatible export */
48
51
  declare function xml2json(xml: string, options?: Xml2JsOptions): string;
49
52
  //#endregion
50
- export { Attributes, DeclarationAttributes, Element, ElementCompact, ElementObject, IgnoreOptions, Js2XmlOptions, Xml2JsOptions, XmlAtom, XmlAttrs, XmlDesc, XmlDescArray, XmlObject, XmlOption, allChildren, attr, attrBool, attrNum, attrs, childCount, childText, children, collectText, colorAttr, escapeAttributeValue, escapeXml, findChild, findDeep, hasChild, js2xml, json2xml, textOf, toElement, xml, xml2js, xml2json };
53
+ export { Attributes, DeclarationAttributes, Element, ElementCompact, ElementObject, IgnoreOptions, Js2XmlOptions, Xml2JsOptions, XmlAtom, XmlAttrs, XmlDesc, XmlDescArray, XmlObject, XmlOption, allChildren, attr, attrBool, attrNum, attrs, childCount, childText, children, collectText, colorAttr, escapeAttributeValue, escapeXml, findChild, findDeep, hasChild, js2xml, json2xml, nativeTypeValue, parseAttributes, textOf, toElement, unescapeXml, xml, xml2js, xml2json };
package/dist/index.mjs CHANGED
@@ -496,4 +496,4 @@ function xml2json(xml, options) {
496
496
  return JSON.stringify(xml2js(xml, options));
497
497
  }
498
498
  //#endregion
499
- export { allChildren, attr, attrBool, attrNum, attrs, childCount, childText, children, collectText, colorAttr, escapeAttributeValue, escapeXml, findChild, findDeep, hasChild, js2xml, json2xml, textOf, toElement, xml, xml2js, xml2json };
499
+ export { allChildren, attr, attrBool, attrNum, attrs, childCount, childText, children, collectText, colorAttr, escapeAttributeValue, escapeXml, findChild, findDeep, hasChild, js2xml, json2xml, nativeTypeValue, parseAttributes, textOf, toElement, unescapeXml, xml, xml2js, xml2json };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-open/xml",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "XML parsing and serialization for Office Open XML. Zero dependencies, drop-in replacement for xml + xml-js.",
5
5
  "keywords": [
6
6
  "office-open",