@ox-content/wasm 2.3.0 → 2.5.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.
@@ -16,7 +16,7 @@ export class WasmParserOptions {
16
16
  }
17
17
  constructor() {
18
18
  const ret = wasm.wasmparseroptions_new();
19
- this.__wbg_ptr = ret >>> 0;
19
+ this.__wbg_ptr = ret;
20
20
  WasmParserOptionsFinalization.register(this, this.__wbg_ptr, this);
21
21
  return this;
22
22
  }
@@ -124,36 +124,36 @@ export function version() {
124
124
  function __wbg_get_imports() {
125
125
  const import0 = {
126
126
  __proto__: null,
127
- __wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
127
+ __wbg_Error_bce6d499ff0a4aff: function(arg0, arg1) {
128
128
  const ret = Error(getStringFromWasm0(arg0, arg1));
129
129
  return addHeapObject(ret);
130
130
  },
131
- __wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
131
+ __wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
132
132
  const ret = typeof(getObject(arg0)) === 'string';
133
133
  return ret;
134
134
  },
135
- __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
135
+ __wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
136
136
  throw new Error(getStringFromWasm0(arg0, arg1));
137
137
  },
138
- __wbg_new_34d45cc8e36aaead: function() {
139
- const ret = new Map();
138
+ __wbg_new_02d162bc6cf02f60: function() {
139
+ const ret = new Object();
140
140
  return addHeapObject(ret);
141
141
  },
142
- __wbg_new_682678e2f47e32bc: function() {
143
- const ret = new Array();
142
+ __wbg_new_070df68d66325372: function() {
143
+ const ret = new Map();
144
144
  return addHeapObject(ret);
145
145
  },
146
- __wbg_new_aa8d0fa9762c29bd: function() {
147
- const ret = new Object();
146
+ __wbg_new_310879b66b6e95e1: function() {
147
+ const ret = new Array();
148
148
  return addHeapObject(ret);
149
149
  },
150
- __wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
151
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
152
- },
153
150
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
154
151
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
155
152
  },
156
- __wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
153
+ __wbg_set_78ea6a19f4818587: function(arg0, arg1, arg2) {
154
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
155
+ },
156
+ __wbg_set_facb7a5914e0fa39: function(arg0, arg1, arg2) {
157
157
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
158
158
  return addHeapObject(ret);
159
159
  },
@@ -193,7 +193,7 @@ function __wbg_get_imports() {
193
193
 
194
194
  const WasmParserOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
195
195
  ? { register: () => {}, unregister: () => {} }
196
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmparseroptions_free(ptr >>> 0, 1));
196
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmparseroptions_free(ptr, 1));
197
197
 
198
198
  function addHeapObject(obj) {
199
199
  if (heap_next === heap.length) heap.push(heap.length + 1);
@@ -225,8 +225,7 @@ function getDataViewMemory0() {
225
225
  }
226
226
 
227
227
  function getStringFromWasm0(ptr, len) {
228
- ptr = ptr >>> 0;
229
- return decodeText(ptr, len);
228
+ return decodeText(ptr >>> 0, len);
230
229
  }
231
230
 
232
231
  let cachedUint8ArrayMemory0 = null;
@@ -320,8 +319,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
320
319
 
321
320
  let WASM_VECTOR_LEN = 0;
322
321
 
323
- let wasmModule, wasm;
322
+ let wasmModule, wasmInstance, wasm;
324
323
  function __wbg_finalize_init(instance, module) {
324
+ wasmInstance = instance;
325
325
  wasm = instance.exports;
326
326
  wasmModule = module;
327
327
  cachedDataViewMemory0 = null;
Binary file
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.3.0",
5
+ "version": "2.5.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",