@ox-content/wasm 2.80.0 → 2.82.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.
@@ -187,15 +187,15 @@ export function version() {
187
187
  function __wbg_get_imports() {
188
188
  const import0 = {
189
189
  __proto__: null,
190
- __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
190
+ __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
191
191
  const ret = Error(getStringFromWasm0(arg0, arg1));
192
192
  return addHeapObject(ret);
193
193
  },
194
- __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
194
+ __wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
195
195
  const ret = typeof(getObject(arg0)) === 'string';
196
196
  return ret;
197
197
  },
198
- __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
198
+ __wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
199
199
  const obj = getObject(arg1);
200
200
  const ret = typeof(obj) === 'string' ? obj : undefined;
201
201
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -203,29 +203,29 @@ function __wbg_get_imports() {
203
203
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
204
204
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
205
205
  },
206
- __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
206
+ __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
207
207
  throw new Error(getStringFromWasm0(arg0, arg1));
208
208
  },
209
- __wbg_new_32b398fb48b6d94a: function() {
209
+ __wbg_new_116be93542d39019: function() {
210
210
  const ret = new Array();
211
211
  return addHeapObject(ret);
212
212
  },
213
- __wbg_new_7796ffc7ed656783: function() {
213
+ __wbg_new_cdf041679ded4c5f: function() {
214
214
  const ret = new Map();
215
215
  return addHeapObject(ret);
216
216
  },
217
- __wbg_new_da52cf8fe3429cb2: function() {
217
+ __wbg_new_ebe3e0f6837f0879: function() {
218
218
  const ret = new Object();
219
219
  return addHeapObject(ret);
220
220
  },
221
- __wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
221
+ __wbg_set_014226dfeca53178: function(arg0, arg1, arg2) {
222
222
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
223
223
  return addHeapObject(ret);
224
224
  },
225
225
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
226
226
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
227
227
  },
228
- __wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
228
+ __wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
229
229
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
230
230
  },
231
231
  __wbindgen_cast_0000000000000001: function(arg0) {
@@ -412,11 +412,15 @@ function __wbg_finalize_init(instance, module) {
412
412
 
413
413
  async function __wbg_load(module, imports) {
414
414
  if (typeof Response === 'function' && module instanceof Response) {
415
+ if (!module.ok) {
416
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
417
+ }
418
+
415
419
  if (typeof WebAssembly.instantiateStreaming === 'function') {
416
420
  try {
417
421
  return await WebAssembly.instantiateStreaming(module, imports);
418
422
  } catch (e) {
419
- const validResponse = module.ok && expectedResponseType(module.type);
423
+ const validResponse = expectedResponseType(module.type);
420
424
 
421
425
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
422
426
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
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.80.0",
5
+ "version": "2.82.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",