@laminapdf/wasm 0.2.0-alpha.2 → 0.2.0-alpha.3

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.
@@ -864,7 +864,8 @@ export class WasmPage {
864
864
  * The page's current 0-based index.
865
865
  *
866
866
  * # Errors
867
- * `unknown-page` when the page is gone; reading errors.
867
+ * `unknown-page` when the page is gone; `disposed` when its document is freed; reading
868
+ * errors.
868
869
  */
869
870
  index(): number;
870
871
  /**
@@ -1075,7 +1076,8 @@ export class WasmSaveJob {
1075
1076
  * `{ state: "done", bytes, report }`.
1076
1077
  *
1077
1078
  * # Errors
1078
- * `cancelled`, `document-changed`, `job-finished`, or the save's own errors.
1079
+ * `cancelled`, `document-changed`, `job-finished`, `disposed` when the document is freed,
1080
+ * or the save's own errors.
1079
1081
  */
1080
1082
  step(budget: number): ({ state: "progress" } & ProgressJs) | { state: "done"; bytes: Uint8Array<ArrayBuffer>; report: SaveReportJs };
1081
1083
  }
@@ -1134,6 +1136,14 @@ export class WasmWarningCursor {
1134
1136
  remaining(): number;
1135
1137
  }
1136
1138
 
1139
+ export function __wbg_reset_state(): void;
1140
+
1141
+ /**
1142
+ * Whether the most recent allocation failed: after a trap, `true` means the module ran out of
1143
+ * memory.
1144
+ */
1145
+ export function allocationFailed(): boolean;
1146
+
1137
1147
  /**
1138
1148
  * Whether this module is the text module (fonts, `text`, `textBox`).
1139
1149
  */
@@ -1156,6 +1166,7 @@ export interface InitOutput {
1156
1166
  readonly __wbg_wasmsavejob_free: (a: number, b: number) => void;
1157
1167
  readonly __wbg_wasmsparsesource_free: (a: number, b: number) => void;
1158
1168
  readonly __wbg_wasmwarningcursor_free: (a: number, b: number) => void;
1169
+ readonly allocationFailed: () => number;
1159
1170
  readonly hasText: () => number;
1160
1171
  readonly version: () => [number, number];
1161
1172
  readonly wasmbuilder_attach: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any) => [number, number];