@ox-content/wasm 2.81.0 → 2.82.1
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/ox_content_wasm.js +14 -10
- package/ox_content_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/ox_content_wasm.js
CHANGED
|
@@ -187,15 +187,15 @@ export function version() {
|
|
|
187
187
|
function __wbg_get_imports() {
|
|
188
188
|
const import0 = {
|
|
189
189
|
__proto__: null,
|
|
190
|
-
|
|
190
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
191
191
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
192
192
|
return addHeapObject(ret);
|
|
193
193
|
},
|
|
194
|
-
|
|
194
|
+
__wbg___wbindgen_is_string_e6f02f0ea5f20a32: function(arg0) {
|
|
195
195
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
196
196
|
return ret;
|
|
197
197
|
},
|
|
198
|
-
|
|
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
|
-
|
|
206
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
207
207
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
208
208
|
},
|
|
209
|
-
|
|
209
|
+
__wbg_new_116be93542d39019: function() {
|
|
210
210
|
const ret = new Array();
|
|
211
211
|
return addHeapObject(ret);
|
|
212
212
|
},
|
|
213
|
-
|
|
213
|
+
__wbg_new_cdf041679ded4c5f: function() {
|
|
214
214
|
const ret = new Map();
|
|
215
215
|
return addHeapObject(ret);
|
|
216
216
|
},
|
|
217
|
-
|
|
217
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
218
218
|
const ret = new Object();
|
|
219
219
|
return addHeapObject(ret);
|
|
220
220
|
},
|
|
221
|
-
|
|
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
|
-
|
|
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 =
|
|
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);
|
package/ox_content_wasm_bg.wasm
CHANGED
|
Binary file
|