@office-open/xml 0.14.5 → 0.14.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 +12 -12
- package/dist/index.d.mts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { C as IgnoreOptions, S as ElementCompact, T as StringifyOptions, _ as isNonEmpty, a as attrBool, b as DeclarationAttributes, c as childCount, d as collectText, f as colorAttr, g as hasChild, h as findFirst, i as attr, l as childText, m as findDeep, n as OOXML_XML_DECLARATION, o as attrMeasure, p as findChild, r as allChildren, s as attrNum, t as NonEmptyArray, u as children, v as textOf, w as ParseOptions, x as Element, y as Attributes } from "./utils-qhk6IlD8.mjs";
|
|
2
2
|
//#region src/parse.d.ts
|
|
3
|
-
declare function unescapeXml(str: string): string;
|
|
4
|
-
declare function nativeTypeValue(value: string): string | number | boolean;
|
|
5
|
-
declare function parse(xmlString: string, options?: ParseOptions): Element;
|
|
6
|
-
declare function parseAttributes(str: string): Record<string, string>;
|
|
3
|
+
export declare function unescapeXml(str: string): string;
|
|
4
|
+
export declare function nativeTypeValue(value: string): string | number | boolean;
|
|
5
|
+
export declare function parse(xmlString: string, options?: ParseOptions): Element;
|
|
6
|
+
export declare function parseAttributes(str: string): Record<string, string>;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/stringify.d.ts
|
|
9
|
-
declare function stringify(js: Element, options?: StringifyOptions): string;
|
|
9
|
+
export declare function stringify(js: Element, options?: StringifyOptions): string;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/stringify-element.d.ts
|
|
12
|
-
declare function stringifyElement(el: Element): string;
|
|
12
|
+
export declare function stringifyElement(el: Element): string;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/escape.d.ts
|
|
15
|
-
declare function escapeXml(str: string): string;
|
|
16
|
-
declare function attrs(record: Record<string, string | number | boolean | undefined>): string;
|
|
17
|
-
declare function attrsRaw(record: Record<string, string | number | boolean | undefined>): string;
|
|
18
|
-
declare function selfCloseElement(tag: string, attrStr?: string): string;
|
|
19
|
-
declare function element(name: string, attrRecord?: Readonly<Record<string, string | number | boolean | undefined>>, children?: readonly string[]): string;
|
|
15
|
+
export declare function escapeXml(str: string): string;
|
|
16
|
+
export declare function attrs(record: Record<string, string | number | boolean | undefined>): string;
|
|
17
|
+
export declare function attrsRaw(record: Record<string, string | number | boolean | undefined>): string;
|
|
18
|
+
export declare function selfCloseElement(tag: string, attrStr?: string): string;
|
|
19
|
+
export declare function element(name: string, attrRecord?: Readonly<Record<string, string | number | boolean | undefined>>, children?: readonly string[]): string;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { type Attributes, type DeclarationAttributes, type Element, type ElementCompact, type IgnoreOptions, NonEmptyArray, OOXML_XML_DECLARATION, type ParseOptions, type StringifyOptions, allChildren, attr, attrBool, attrMeasure, attrNum,
|
|
21
|
+
export { type Attributes, type DeclarationAttributes, type Element, type ElementCompact, type IgnoreOptions, NonEmptyArray, OOXML_XML_DECLARATION, type ParseOptions, type StringifyOptions, allChildren, attr, attrBool, attrMeasure, attrNum, childCount, childText, children, collectText, colorAttr, findChild, findDeep, findFirst, hasChild, isNonEmpty, textOf };
|
|
22
22
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/parse.ts","../src/stringify.ts","../src/stringify-element.ts","../src/escape.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/parse.ts","../src/stringify.ts","../src/stringify-element.ts","../src/escape.ts"],"mappings":";;wBAgBgB,YAAY;wBAgBZ,gBAAgB;wBA4ChB,MAAM,mBAAmB,UAAU,eAAe;wBA0XlD,gBAAgB,cAAc;;;wBC/b9B,UAAU,IAAI,SAAS,UAAU;;;wBCIjC,iBAAiB,IAAI;;;wBCPrB,UAAU;wBA6BV,MAAM,QAAQ;wBAsBd,SAAS,QAAQ;wBAejB,iBAAiB,aAAa;wBAoB9B,QACd,cACA,aAAa,SAAS,wDACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-open/xml",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.6",
|
|
4
4
|
"description": "Zero-dependency XML parsing and serialization for Office Open XML — drop-in replacement for xml and xml-js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"drop-in",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/xml": "1.0.11",
|
|
50
|
-
"txml": "6.0.
|
|
50
|
+
"txml": "6.0.3",
|
|
51
51
|
"xml": "1.0.1",
|
|
52
52
|
"xml-js": "1.6.11"
|
|
53
53
|
},
|