virtual-machine 0.0.15 → 0.0.17
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.
|
@@ -206,11 +206,14 @@ if (!("encodeInto" in cachedTextEncoder)) {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
var WASM_VECTOR_LEN = 0;
|
|
209
|
+
function wasm_bindgen__convert__closures_____invoke__hc0cb64907c7853c7(arg0, arg1) {
|
|
210
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc0cb64907c7853c7(arg0, arg1);
|
|
211
|
+
}
|
|
209
212
|
function wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2) {
|
|
210
213
|
wasm.wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2);
|
|
211
214
|
}
|
|
212
|
-
function
|
|
213
|
-
wasm.
|
|
215
|
+
function wasm_bindgen__convert__closures_____invoke__h5aa3f59cafdb6c9c(arg0, arg1) {
|
|
216
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5aa3f59cafdb6c9c(arg0, arg1);
|
|
214
217
|
}
|
|
215
218
|
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
216
219
|
}, unregister: () => {
|
|
@@ -246,6 +249,7 @@ var WasmVm = class {
|
|
|
246
249
|
}
|
|
247
250
|
/**
|
|
248
251
|
* Get the current network connection status.
|
|
252
|
+
* This checks the actual connection state by seeing if an IP was assigned.
|
|
249
253
|
* @returns {NetworkStatus}
|
|
250
254
|
*/
|
|
251
255
|
network_status() {
|
|
@@ -268,6 +272,7 @@ var WasmVm = class {
|
|
|
268
272
|
}
|
|
269
273
|
/**
|
|
270
274
|
* Connect to a WebTransport relay server.
|
|
275
|
+
* Note: Connection is asynchronous. Check network_status() to monitor connection state.
|
|
271
276
|
* @param {string} url
|
|
272
277
|
* @param {string | null} [cert_hash]
|
|
273
278
|
*/
|
|
@@ -370,12 +375,24 @@ function __wbg_get_imports() {
|
|
|
370
375
|
const ret = arg0 === void 0;
|
|
371
376
|
return ret;
|
|
372
377
|
};
|
|
378
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
379
|
+
const obj = arg1;
|
|
380
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
381
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
382
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
383
|
+
};
|
|
373
384
|
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
374
385
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
375
386
|
};
|
|
376
387
|
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
377
388
|
arg0._wbg_cb_unref();
|
|
378
389
|
};
|
|
390
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() {
|
|
391
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
392
|
+
const ret = arg0.call(arg1, arg2);
|
|
393
|
+
return ret;
|
|
394
|
+
}, arguments);
|
|
395
|
+
};
|
|
379
396
|
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() {
|
|
380
397
|
return handleError(function(arg0, arg1) {
|
|
381
398
|
const ret = arg0.call(arg1);
|
|
@@ -403,6 +420,9 @@ function __wbg_get_imports() {
|
|
|
403
420
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
404
421
|
}
|
|
405
422
|
};
|
|
423
|
+
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
424
|
+
console.error(arg0);
|
|
425
|
+
};
|
|
406
426
|
imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
|
|
407
427
|
const ret = arg0.getReader();
|
|
408
428
|
return ret;
|
|
@@ -423,6 +443,9 @@ function __wbg_get_imports() {
|
|
|
423
443
|
const ret = arg0.length;
|
|
424
444
|
return ret;
|
|
425
445
|
};
|
|
446
|
+
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
447
|
+
console.log(arg0);
|
|
448
|
+
};
|
|
426
449
|
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
427
450
|
const ret = new Object();
|
|
428
451
|
return ret;
|
|
@@ -539,12 +562,16 @@ function __wbg_get_imports() {
|
|
|
539
562
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
540
563
|
return ret;
|
|
541
564
|
};
|
|
542
|
-
imports.wbg.
|
|
565
|
+
imports.wbg.__wbindgen_cast_22b48c66901f03d5 = function(arg0, arg1) {
|
|
543
566
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb099e2ae98169675, wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919);
|
|
544
567
|
return ret;
|
|
545
568
|
};
|
|
546
|
-
imports.wbg.
|
|
547
|
-
const ret =
|
|
569
|
+
imports.wbg.__wbindgen_cast_3dba8e634cba348f = function(arg0, arg1) {
|
|
570
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9470784fcd98e87d, wasm_bindgen__convert__closures_____invoke__h5aa3f59cafdb6c9c);
|
|
571
|
+
return ret;
|
|
572
|
+
};
|
|
573
|
+
imports.wbg.__wbindgen_cast_8184f83d0f362634 = function(arg0, arg1) {
|
|
574
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9470784fcd98e87d, wasm_bindgen__convert__closures_____invoke__hc0cb64907c7853c7);
|
|
548
575
|
return ret;
|
|
549
576
|
};
|
|
550
577
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|