leptris 0.1.52 → 0.1.54

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/leptris.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leptris",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "XML for JavaScript at libleptris speed (WebAssembly, no fallback)",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.d.ts CHANGED
@@ -20,6 +20,9 @@ export function load(xml: string): Promise<number>;
20
20
  /** Serialize a document to XML (the engine's canonical emit). */
21
21
  export function xml(id: number): Promise<string>;
22
22
 
23
+ /** Serialize synchronously after awaiting init(). */
24
+ export function xmlSync(id: number): string;
25
+
23
26
  /** Evaluate an XPath; nodesets yield the first node's string
24
27
  * value, atomics yield their string form. */
25
28
  export function xpath(id: number, expr: string): Promise<string | null>;
package/src/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // evaluation. Documents live in the wasm registry addressed by an
5
5
  // integer id; load/close bracket their lifetime.
6
6
 
7
- export const VERSION = "1.9.419";
7
+ export const VERSION = "1.9.420";
8
8
 
9
9
  export class XmlError extends Error {
10
10
  constructor(message, line, column) {