html-to-markdown-wasm 2.6.1 → 2.6.2

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.
@@ -1,5 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initialize panic hook for better error messages in the browser
5
+ */
6
+ export function init(): void;
3
7
  /**
4
8
  * Convert HTML to Markdown while collecting inline images
5
9
  *
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
43
47
  * ```
44
48
  */
45
49
  export function convert(html: string, options: any): string;
46
- /**
47
- * Initialize panic hook for better error messages in the browser
48
- */
49
- export function init(): void;
50
50
  /**
51
51
  * Result of HTML extraction with inline images
52
52
  */
@@ -231,6 +231,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
231
231
  }
232
232
  return result;
233
233
  }
234
+ /**
235
+ * Initialize panic hook for better error messages in the browser
236
+ */
237
+ export function init() {
238
+ wasm.init();
239
+ }
234
240
 
235
241
  function _assertClass(instance, klass) {
236
242
  if (!(instance instanceof klass)) {
@@ -335,13 +341,6 @@ export function convert(html, options) {
335
341
  }
336
342
  }
337
343
 
338
- /**
339
- * Initialize panic hook for better error messages in the browser
340
- */
341
- export function init() {
342
- wasm.init();
343
- }
344
-
345
344
  const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
346
345
  ? { register: () => {}, unregister: () => {} }
347
346
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
Binary file
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
6
  ],
7
- "version": "2.6.1",
7
+ "version": "2.6.2",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
@@ -1,5 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initialize panic hook for better error messages in the browser
5
+ */
6
+ export function init(): void;
3
7
  /**
4
8
  * Convert HTML to Markdown while collecting inline images
5
9
  *
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
43
47
  * ```
44
48
  */
45
49
  export function convert(html: string, options: any): string;
46
- /**
47
- * Initialize panic hook for better error messages in the browser
48
- */
49
- export function init(): void;
50
50
  /**
51
51
  * Result of HTML extraction with inline images
52
52
  */
@@ -221,6 +221,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
221
221
  }
222
222
  return result;
223
223
  }
224
+ /**
225
+ * Initialize panic hook for better error messages in the browser
226
+ */
227
+ exports.init = function() {
228
+ wasm.init();
229
+ };
224
230
 
225
231
  function _assertClass(instance, klass) {
226
232
  if (!(instance instanceof klass)) {
@@ -325,13 +331,6 @@ exports.convert = function(html, options) {
325
331
  }
326
332
  };
327
333
 
328
- /**
329
- * Initialize panic hook for better error messages in the browser
330
- */
331
- exports.init = function() {
332
- wasm.init();
333
- };
334
-
335
334
  const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
336
335
  ? { register: () => {}, unregister: () => {} }
337
336
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
5
5
  ],
6
- "version": "2.6.1",
6
+ "version": "2.6.2",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,5 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Initialize panic hook for better error messages in the browser
5
+ */
6
+ export function init(): void;
3
7
  /**
4
8
  * Convert HTML to Markdown while collecting inline images
5
9
  *
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
43
47
  * ```
44
48
  */
45
49
  export function convert(html: string, options: any): string;
46
- /**
47
- * Initialize panic hook for better error messages in the browser
48
- */
49
- export function init(): void;
50
50
  /**
51
51
  * Result of HTML extraction with inline images
52
52
  */
@@ -227,6 +227,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
227
227
  }
228
228
  return result;
229
229
  }
230
+ /**
231
+ * Initialize panic hook for better error messages in the browser
232
+ */
233
+ export function init() {
234
+ wasm.init();
235
+ }
230
236
 
231
237
  function _assertClass(instance, klass) {
232
238
  if (!(instance instanceof klass)) {
@@ -331,13 +337,6 @@ export function convert(html, options) {
331
337
  }
332
338
  }
333
339
 
334
- /**
335
- * Initialize panic hook for better error messages in the browser
336
- */
337
- export function init() {
338
- wasm.init();
339
- }
340
-
341
340
  const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
342
341
  ? { register: () => {}, unregister: () => {} }
343
342
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
6
  ],
7
- "version": "2.6.1",
7
+ "version": "2.6.2",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-to-markdown-wasm",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "High-performance HTML to Markdown converter - WebAssembly bindings",
5
5
  "main": "dist/html_to_markdown_wasm.js",
6
6
  "types": "dist/html_to_markdown_wasm.d.ts",
@@ -57,7 +57,7 @@
57
57
  "@types/node": "^24.10.0",
58
58
  "tinybench": "^5.1.0",
59
59
  "tsx": "^4.20.6",
60
- "vitest": "^4.0.7",
60
+ "vitest": "^4.0.8",
61
61
  "wasm-pack": "^0.13.1"
62
62
  },
63
63
  "publishConfig": {