@ox-content/wasm 2.82.0 → 2.83.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.
@@ -42,13 +42,13 @@ export class WasmParserOptions {
42
42
  /**
43
43
  * Enables GFM autolinks in the parser.
44
44
  *
45
- * Default: `false`.
45
+ * Default: unset — follows the `gfm` profile (`false` without it).
46
46
  */
47
47
  set autolinks(value: boolean);
48
48
  /**
49
49
  * Enables footnote references and definitions.
50
50
  *
51
- * Default: `false`.
51
+ * Default: unset — follows the `gfm` profile (`false` without it).
52
52
  */
53
53
  set footnotes(value: boolean);
54
54
  /**
@@ -60,19 +60,19 @@ export class WasmParserOptions {
60
60
  /**
61
61
  * Enables GFM strikethrough spans.
62
62
  *
63
- * Default: `false`.
63
+ * Default: unset — follows the `gfm` profile (`false` without it).
64
64
  */
65
65
  set strikethrough(value: boolean);
66
66
  /**
67
67
  * Enables GFM pipe tables.
68
68
  *
69
- * Default: `false`.
69
+ * Default: unset — follows the `gfm` profile (`false` without it).
70
70
  */
71
71
  set tables(value: boolean);
72
72
  /**
73
73
  * Enables GFM task-list item markers such as `- [x]`.
74
74
  *
75
- * Default: `false`.
75
+ * Default: unset — follows the `gfm` profile (`false` without it).
76
76
  */
77
77
  set taskLists(value: boolean);
78
78
  /**
@@ -119,8 +119,9 @@ export interface InitOutput {
119
119
  readonly wasmparseroptions_set_toc_max_depth: (a: number, b: number) => void;
120
120
  readonly __wbindgen_export: (a: number, b: number) => number;
121
121
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
122
+ readonly __wbindgen_export3: (a: number) => void;
122
123
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
123
- readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
124
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
124
125
  }
125
126
 
126
127
  export type SyncInitInput = BufferSource | WebAssembly.Module;
@@ -65,7 +65,7 @@ export class WasmParserOptions {
65
65
  /**
66
66
  * Enables GFM autolinks in the parser.
67
67
  *
68
- * Default: `false`.
68
+ * Default: unset — follows the `gfm` profile (`false` without it).
69
69
  * @param {boolean} value
70
70
  */
71
71
  set autolinks(value) {
@@ -74,7 +74,7 @@ export class WasmParserOptions {
74
74
  /**
75
75
  * Enables footnote references and definitions.
76
76
  *
77
- * Default: `false`.
77
+ * Default: unset — follows the `gfm` profile (`false` without it).
78
78
  * @param {boolean} value
79
79
  */
80
80
  set footnotes(value) {
@@ -92,7 +92,7 @@ export class WasmParserOptions {
92
92
  /**
93
93
  * Enables GFM strikethrough spans.
94
94
  *
95
- * Default: `false`.
95
+ * Default: unset — follows the `gfm` profile (`false` without it).
96
96
  * @param {boolean} value
97
97
  */
98
98
  set strikethrough(value) {
@@ -101,7 +101,7 @@ export class WasmParserOptions {
101
101
  /**
102
102
  * Enables GFM pipe tables.
103
103
  *
104
- * Default: `false`.
104
+ * Default: unset — follows the `gfm` profile (`false` without it).
105
105
  * @param {boolean} value
106
106
  */
107
107
  set tables(value) {
@@ -110,7 +110,7 @@ export class WasmParserOptions {
110
110
  /**
111
111
  * Enables GFM task-list item markers such as `- [x]`.
112
112
  *
113
- * Default: `false`.
113
+ * Default: unset — follows the `gfm` profile (`false` without it).
114
114
  * @param {boolean} value
115
115
  */
116
116
  set taskLists(value) {
@@ -181,7 +181,7 @@ export function version() {
181
181
  return getStringFromWasm0(r0, r1);
182
182
  } finally {
183
183
  wasm.__wbindgen_add_to_stack_pointer(16);
184
- wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
184
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
185
185
  }
186
186
  }
187
187
  function __wbg_get_imports() {
@@ -218,6 +218,10 @@ function __wbg_get_imports() {
218
218
  const ret = new Object();
219
219
  return addHeapObject(ret);
220
220
  },
221
+ __wbg_push_adb0107829f02d75: function(arg0, arg1) {
222
+ const ret = getObject(arg0).push(getObject(arg1));
223
+ return ret;
224
+ },
221
225
  __wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
222
226
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
223
227
  return addHeapObject(ret);
@@ -225,6 +229,10 @@ function __wbg_get_imports() {
225
229
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
226
230
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
227
231
  },
232
+ __wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
233
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
234
+ return ret;
235
+ }, arguments); },
228
236
  __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
229
237
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
230
238
  },
@@ -309,6 +317,14 @@ function getUint8ArrayMemory0() {
309
317
 
310
318
  function getObject(idx) { return heap[idx]; }
311
319
 
320
+ function handleError(f, args) {
321
+ try {
322
+ return f.apply(this, args);
323
+ } catch (e) {
324
+ wasm.__wbindgen_export3(addHeapObject(e));
325
+ }
326
+ }
327
+
312
328
  let heap = new Array(1024).fill(undefined);
313
329
  heap.push(undefined, null, true, false);
314
330
 
Binary file
@@ -18,5 +18,6 @@ export const wasmparseroptions_set_task_lists: (a: number, b: number) => void;
18
18
  export const wasmparseroptions_set_toc_max_depth: (a: number, b: number) => void;
19
19
  export const __wbindgen_export: (a: number, b: number) => number;
20
20
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
21
+ export const __wbindgen_export3: (a: number) => void;
21
22
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
22
- export const __wbindgen_export3: (a: number, b: number, c: number) => void;
23
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ox-content/wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for Ox Content - Browser-ready Markdown parser",
5
- "version": "2.82.0",
5
+ "version": "2.83.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",