@iyulab/unhwp 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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iyulab/unhwp",
3
3
  "type": "module",
4
4
  "description": "HWP/HWPX extraction to Markdown, text, and JSON (WebAssembly)",
5
- "version": "0.10.0",
5
+ "version": "0.12.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/unhwp_wasm.d.ts CHANGED
@@ -52,7 +52,11 @@ export class ParseOptions {
52
52
  [Symbol.dispose](): void;
53
53
  lenient(): ParseOptions;
54
54
  constructor();
55
- textOnly(): ParseOptions;
55
+ /**
56
+ * Skip binary resources (images, equations). Named for what it does: the
57
+ * structure and text of the document are produced either way.
58
+ */
59
+ withoutResources(): ParseOptions;
56
60
  }
57
61
 
58
62
  export function parse(data: Uint8Array): HwpDocument;
package/unhwp_wasm_bg.js CHANGED
@@ -236,11 +236,13 @@ export class ParseOptions {
236
236
  return this;
237
237
  }
238
238
  /**
239
+ * Skip binary resources (images, equations). Named for what it does: the
240
+ * structure and text of the document are produced either way.
239
241
  * @returns {ParseOptions}
240
242
  */
241
- textOnly() {
243
+ withoutResources() {
242
244
  const ptr = this.__destroy_into_raw();
243
- const ret = wasm.parseoptions_textOnly(ptr);
245
+ const ret = wasm.parseoptions_withoutResources(ptr);
244
246
  return ParseOptions.__wrap(ret);
245
247
  }
246
248
  }
Binary file