@veripublica/epubveri-wasm 0.10.0 → 0.12.0

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/README.md CHANGED
@@ -26,7 +26,7 @@ import { validate, version } from "@veripublica/epubveri-wasm";
26
26
  const bytes = new Uint8Array(await file.arrayBuffer()); // a File / fetched .epub
27
27
  const report = validate(bytes, undefined); // second arg: profile or undefined
28
28
 
29
- console.log(report.status, report.summary); // "ok" | "problems", { errors, warnings }
29
+ console.log(report.status, report.summary); // "ok" | "problems", { error, warning, … }
30
30
  for (const it of report.items) {
31
31
  console.log(`${it.severity} ${it.code}: ${it.message}`, it.location ?? "");
32
32
  }
@@ -45,7 +45,7 @@ instead (`wasm-pack build . --target web`), which exposes an async `init()` you
45
45
  ```ts
46
46
  interface Report {
47
47
  status: string; // "ok" (valid) | "problems" (error/fatal findings remain)
48
- summary: { fatals?: number; errors: number; warnings: number };
48
+ summary: { fatal?: number; error: number; warning: number; info?: number; usage?: number };
49
49
  items: Item[];
50
50
  }
51
51
  interface Item {
package/epubveri.d.ts CHANGED
@@ -63,12 +63,20 @@ export interface Item {
63
63
 
64
64
  /**
65
65
  * Small aggregate counts, mirroring the envelope\'s per-input `summary`
66
- * (`fatals` omitted when zero, exactly as the CLI envelope emits it).
66
+ * exactly — same singular key names, and `fatal`/`info`/`usage` omitted when
67
+ * zero, as the CLI envelope emits them.
68
+ *
69
+ * **These counts are never filtered**, unlike the CLI\'s, where `-u` decides
70
+ * what the output contains and the counts describe the output. This binding
71
+ * has no such flag: it is a machine interface and always returns everything,
72
+ * so its counts always describe the whole report.
67
73
  */
68
74
  export interface Summary {
69
- fatals: number;
70
- errors: number;
71
- warnings: number;
75
+ fatal: number;
76
+ error: number;
77
+ warning: number;
78
+ info: number;
79
+ usage: number;
72
80
  }
73
81
 
74
82
  /**
package/epubveri_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@veripublica/epubveri-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for epubveri — a pure-Rust, JVM-free EPUB validator that runs in the browser.",
5
- "version": "0.10.0",
5
+ "version": "0.12.0",
6
6
  "license": "AGPL-3.0-only OR LicenseRef-veripublica-Commercial",
7
7
  "repository": {
8
8
  "type": "git",