phirepass-channel 0.1.303 → 0.1.304
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/package.json +1 -1
- package/phirepass-channel.js +39 -35
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.js
CHANGED
|
@@ -423,7 +423,7 @@ export function version() {
|
|
|
423
423
|
function __wbg_get_imports() {
|
|
424
424
|
const import0 = {
|
|
425
425
|
__proto__: null,
|
|
426
|
-
|
|
426
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
427
427
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
428
428
|
return addHeapObject(ret);
|
|
429
429
|
},
|
|
@@ -434,14 +434,14 @@ function __wbg_get_imports() {
|
|
|
434
434
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
435
435
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
436
436
|
},
|
|
437
|
-
|
|
437
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
438
438
|
const ret = debugString(getObject(arg1));
|
|
439
439
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
440
440
|
const len1 = WASM_VECTOR_LEN;
|
|
441
441
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
442
442
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
443
443
|
},
|
|
444
|
-
|
|
444
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
445
445
|
const obj = getObject(arg1);
|
|
446
446
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
447
447
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -449,50 +449,50 @@ function __wbg_get_imports() {
|
|
|
449
449
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
450
450
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
451
451
|
},
|
|
452
|
-
|
|
452
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
453
453
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
454
454
|
},
|
|
455
|
-
|
|
455
|
+
__wbg__wbg_cb_unref_be22cc64ae6946a0: function(arg0) {
|
|
456
456
|
getObject(arg0)._wbg_cb_unref();
|
|
457
457
|
},
|
|
458
|
-
|
|
459
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
458
|
+
__wbg_call_0f2a9af232c18fd2: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
459
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
460
460
|
return addHeapObject(ret);
|
|
461
461
|
}, arguments); },
|
|
462
|
-
|
|
463
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
462
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
463
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
464
464
|
return addHeapObject(ret);
|
|
465
465
|
}, arguments); },
|
|
466
|
-
|
|
467
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)
|
|
466
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
467
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
468
468
|
return addHeapObject(ret);
|
|
469
469
|
}, arguments); },
|
|
470
470
|
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
471
471
|
const ret = clearInterval(takeObject(arg0));
|
|
472
472
|
return addHeapObject(ret);
|
|
473
473
|
},
|
|
474
|
-
|
|
474
|
+
__wbg_close_b857478a8d4c1a16: function() { return handleError(function (arg0) {
|
|
475
475
|
getObject(arg0).close();
|
|
476
476
|
}, arguments); },
|
|
477
|
-
|
|
477
|
+
__wbg_data_57d8ce4eb5f0a433: function(arg0) {
|
|
478
478
|
const ret = getObject(arg0).data;
|
|
479
479
|
return addHeapObject(ret);
|
|
480
480
|
},
|
|
481
|
-
|
|
481
|
+
__wbg_from_74f3d90e0ff11240: function(arg0) {
|
|
482
482
|
const ret = Array.from(getObject(arg0));
|
|
483
483
|
return addHeapObject(ret);
|
|
484
484
|
},
|
|
485
|
-
|
|
485
|
+
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
486
486
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
487
487
|
}, arguments); },
|
|
488
|
-
|
|
488
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
489
489
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
490
490
|
return addHeapObject(ret);
|
|
491
491
|
}, arguments); },
|
|
492
|
-
|
|
492
|
+
__wbg_info_83580785fabc7495: function(arg0, arg1) {
|
|
493
493
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
496
496
|
let result;
|
|
497
497
|
try {
|
|
498
498
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -502,38 +502,38 @@ function __wbg_get_imports() {
|
|
|
502
502
|
const ret = result;
|
|
503
503
|
return ret;
|
|
504
504
|
},
|
|
505
|
-
|
|
505
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
506
506
|
const ret = getObject(arg0).length;
|
|
507
507
|
return ret;
|
|
508
508
|
},
|
|
509
|
-
|
|
509
|
+
__wbg_new_116be93542d39019: function() {
|
|
510
510
|
const ret = new Array();
|
|
511
511
|
return addHeapObject(ret);
|
|
512
512
|
},
|
|
513
|
-
|
|
513
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
514
514
|
const ret = new Uint8Array(getObject(arg0));
|
|
515
515
|
return addHeapObject(ret);
|
|
516
516
|
},
|
|
517
|
-
|
|
517
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
518
518
|
const ret = new Object();
|
|
519
519
|
return addHeapObject(ret);
|
|
520
520
|
},
|
|
521
|
-
|
|
521
|
+
__wbg_new_with_str_sequence_d8aa2988e9c191ed: function() { return handleError(function (arg0, arg1, arg2) {
|
|
522
522
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
523
523
|
return addHeapObject(ret);
|
|
524
524
|
}, arguments); },
|
|
525
|
-
|
|
525
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
526
526
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
527
527
|
},
|
|
528
|
-
|
|
528
|
+
__wbg_push_adb0107829f02d75: function(arg0, arg1) {
|
|
529
529
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
530
530
|
return ret;
|
|
531
531
|
},
|
|
532
|
-
|
|
532
|
+
__wbg_readyState_fe79161592fd15ce: function(arg0) {
|
|
533
533
|
const ret = getObject(arg0).readyState;
|
|
534
534
|
return ret;
|
|
535
535
|
},
|
|
536
|
-
|
|
536
|
+
__wbg_send_76be66dda8ee844c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
537
537
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
538
538
|
}, arguments); },
|
|
539
539
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
@@ -543,25 +543,25 @@ function __wbg_get_imports() {
|
|
|
543
543
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
544
544
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
545
545
|
},
|
|
546
|
-
|
|
546
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
547
547
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
548
548
|
},
|
|
549
|
-
|
|
549
|
+
__wbg_set_binaryType_b701908a03166a9f: function(arg0, arg1) {
|
|
550
550
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
551
551
|
},
|
|
552
|
-
|
|
552
|
+
__wbg_set_onclose_cb71fea4ad9056fc: function(arg0, arg1) {
|
|
553
553
|
getObject(arg0).onclose = getObject(arg1);
|
|
554
554
|
},
|
|
555
|
-
|
|
555
|
+
__wbg_set_onerror_f1491b13f0fea022: function(arg0, arg1) {
|
|
556
556
|
getObject(arg0).onerror = getObject(arg1);
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
__wbg_set_onmessage_065a797dafa9c437: function(arg0, arg1) {
|
|
559
559
|
getObject(arg0).onmessage = getObject(arg1);
|
|
560
560
|
},
|
|
561
|
-
|
|
561
|
+
__wbg_set_onopen_b28699f3431204cf: function(arg0, arg1) {
|
|
562
562
|
getObject(arg0).onopen = getObject(arg1);
|
|
563
563
|
},
|
|
564
|
-
|
|
564
|
+
__wbg_warn_adae3609184a01f8: function(arg0, arg1) {
|
|
565
565
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
566
566
|
},
|
|
567
567
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
@@ -887,11 +887,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
887
887
|
|
|
888
888
|
async function __wbg_load(module, imports) {
|
|
889
889
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
890
|
+
if (!module.ok) {
|
|
891
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
892
|
+
}
|
|
893
|
+
|
|
890
894
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
891
895
|
try {
|
|
892
896
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
893
897
|
} catch (e) {
|
|
894
|
-
const validResponse =
|
|
898
|
+
const validResponse = expectedResponseType(module.type);
|
|
895
899
|
|
|
896
900
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
897
901
|
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
|