phirepass-channel 0.1.265 → 0.1.267
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.d.ts +4 -4
- package/phirepass-channel.js +51 -51
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -86,10 +86,10 @@ export interface InitOutput {
|
|
|
86
86
|
readonly channel_start_heartbeat: (a: number, b: number) => void;
|
|
87
87
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
88
88
|
readonly version: (a: number) => void;
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
89
|
+
readonly __wasm_bindgen_func_elem_42: (a: number, b: number, c: number) => void;
|
|
90
|
+
readonly __wasm_bindgen_func_elem_42_1: (a: number, b: number, c: number) => void;
|
|
91
|
+
readonly __wasm_bindgen_func_elem_42_2: (a: number, b: number, c: number) => void;
|
|
92
|
+
readonly __wasm_bindgen_func_elem_46: (a: number, b: number) => void;
|
|
93
93
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
94
94
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
95
95
|
readonly __wbindgen_export3: (a: number) => void;
|
package/phirepass-channel.js
CHANGED
|
@@ -362,7 +362,7 @@ export function version() {
|
|
|
362
362
|
function __wbg_get_imports() {
|
|
363
363
|
const import0 = {
|
|
364
364
|
__proto__: null,
|
|
365
|
-
|
|
365
|
+
__wbg_Error_fdd633d4bb5dd76a: function(arg0, arg1) {
|
|
366
366
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
367
367
|
return addHeapObject(ret);
|
|
368
368
|
},
|
|
@@ -373,14 +373,14 @@ function __wbg_get_imports() {
|
|
|
373
373
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
374
374
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
375
375
|
},
|
|
376
|
-
|
|
376
|
+
__wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
|
|
377
377
|
const ret = debugString(getObject(arg1));
|
|
378
378
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
379
379
|
const len1 = WASM_VECTOR_LEN;
|
|
380
380
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
381
381
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
382
382
|
},
|
|
383
|
-
|
|
383
|
+
__wbg___wbindgen_string_get_71bb4348194e31f0: function(arg0, arg1) {
|
|
384
384
|
const obj = getObject(arg1);
|
|
385
385
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
386
386
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -388,47 +388,47 @@ function __wbg_get_imports() {
|
|
|
388
388
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
389
389
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
390
390
|
},
|
|
391
|
-
|
|
391
|
+
__wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
|
|
392
392
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
393
393
|
},
|
|
394
|
-
|
|
394
|
+
__wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
|
|
395
395
|
getObject(arg0)._wbg_cb_unref();
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
__wbg_call_0e855b388e315e17: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
398
398
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
399
399
|
return addHeapObject(ret);
|
|
400
400
|
}, arguments); },
|
|
401
|
-
|
|
402
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
401
|
+
__wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
|
|
402
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
403
403
|
return addHeapObject(ret);
|
|
404
404
|
}, arguments); },
|
|
405
|
-
|
|
406
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
405
|
+
__wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
|
|
406
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
407
407
|
return addHeapObject(ret);
|
|
408
408
|
}, arguments); },
|
|
409
409
|
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
410
410
|
const ret = clearInterval(takeObject(arg0));
|
|
411
411
|
return addHeapObject(ret);
|
|
412
412
|
},
|
|
413
|
-
|
|
413
|
+
__wbg_close_26aa343c0d729303: function() { return handleError(function (arg0) {
|
|
414
414
|
getObject(arg0).close();
|
|
415
415
|
}, arguments); },
|
|
416
|
-
|
|
416
|
+
__wbg_data_4a7f1308dbd33a21: function(arg0) {
|
|
417
417
|
const ret = getObject(arg0).data;
|
|
418
418
|
return addHeapObject(ret);
|
|
419
419
|
},
|
|
420
|
-
|
|
420
|
+
__wbg_from_50138b2ca136f50c: function(arg0) {
|
|
421
421
|
const ret = Array.from(getObject(arg0));
|
|
422
422
|
return addHeapObject(ret);
|
|
423
423
|
},
|
|
424
|
-
|
|
424
|
+
__wbg_get_dddb90ff5d27a080: function() { return handleError(function (arg0, arg1) {
|
|
425
425
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
426
426
|
return addHeapObject(ret);
|
|
427
427
|
}, arguments); },
|
|
428
|
-
|
|
428
|
+
__wbg_info_f48869f8cffe0cf9: function(arg0, arg1) {
|
|
429
429
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
430
430
|
},
|
|
431
|
-
|
|
431
|
+
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
432
432
|
let result;
|
|
433
433
|
try {
|
|
434
434
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -438,38 +438,38 @@ function __wbg_get_imports() {
|
|
|
438
438
|
const ret = result;
|
|
439
439
|
return ret;
|
|
440
440
|
},
|
|
441
|
-
|
|
441
|
+
__wbg_length_589238bdcf171f0e: function(arg0) {
|
|
442
442
|
const ret = getObject(arg0).length;
|
|
443
443
|
return ret;
|
|
444
444
|
},
|
|
445
|
-
|
|
446
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
447
|
-
return addHeapObject(ret);
|
|
448
|
-
},
|
|
449
|
-
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
445
|
+
__wbg_new_2e117a478906f062: function() {
|
|
450
446
|
const ret = new Object();
|
|
451
447
|
return addHeapObject(ret);
|
|
452
448
|
},
|
|
453
|
-
|
|
449
|
+
__wbg_new_36e147a8ced3c6e0: function() {
|
|
454
450
|
const ret = new Array();
|
|
455
451
|
return addHeapObject(ret);
|
|
456
452
|
},
|
|
457
|
-
|
|
453
|
+
__wbg_new_81880fb5002cb255: function(arg0) {
|
|
454
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
455
|
+
return addHeapObject(ret);
|
|
456
|
+
},
|
|
457
|
+
__wbg_new_with_str_sequence_dfdb072344bf2999: function() { return handleError(function (arg0, arg1, arg2) {
|
|
458
458
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
459
459
|
return addHeapObject(ret);
|
|
460
460
|
}, arguments); },
|
|
461
|
-
|
|
461
|
+
__wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
|
|
462
462
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
463
463
|
},
|
|
464
|
-
|
|
464
|
+
__wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
|
|
465
465
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
466
466
|
return ret;
|
|
467
467
|
},
|
|
468
|
-
|
|
468
|
+
__wbg_readyState_97951098f8995393: function(arg0) {
|
|
469
469
|
const ret = getObject(arg0).readyState;
|
|
470
470
|
return ret;
|
|
471
471
|
},
|
|
472
|
-
|
|
472
|
+
__wbg_send_982c819b9a1b34a5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
473
473
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
474
474
|
}, arguments); },
|
|
475
475
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
@@ -479,45 +479,45 @@ function __wbg_get_imports() {
|
|
|
479
479
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
480
480
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
481
481
|
},
|
|
482
|
-
|
|
482
|
+
__wbg_set_binaryType_148427b11a8e6551: function(arg0, arg1) {
|
|
483
483
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
484
484
|
},
|
|
485
|
-
|
|
485
|
+
__wbg_set_dc601f4a69da0bc2: function(arg0, arg1, arg2) {
|
|
486
486
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
487
487
|
},
|
|
488
|
-
|
|
488
|
+
__wbg_set_onclose_8134952b2a9ec104: function(arg0, arg1) {
|
|
489
489
|
getObject(arg0).onclose = getObject(arg1);
|
|
490
490
|
},
|
|
491
|
-
|
|
491
|
+
__wbg_set_onerror_3f68563f77d362f1: function(arg0, arg1) {
|
|
492
492
|
getObject(arg0).onerror = getObject(arg1);
|
|
493
493
|
},
|
|
494
|
-
|
|
494
|
+
__wbg_set_onmessage_397a79f643011142: function(arg0, arg1) {
|
|
495
495
|
getObject(arg0).onmessage = getObject(arg1);
|
|
496
496
|
},
|
|
497
|
-
|
|
497
|
+
__wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
|
|
498
498
|
getObject(arg0).onopen = getObject(arg1);
|
|
499
499
|
},
|
|
500
|
-
|
|
500
|
+
__wbg_warn_9622218823ddac02: function(arg0, arg1) {
|
|
501
501
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
502
502
|
},
|
|
503
503
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
504
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
505
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
504
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
505
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
|
|
506
506
|
return addHeapObject(ret);
|
|
507
507
|
},
|
|
508
508
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
509
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
510
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
509
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
510
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_1);
|
|
511
511
|
return addHeapObject(ret);
|
|
512
512
|
},
|
|
513
513
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
514
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
515
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
514
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
515
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_2);
|
|
516
516
|
return addHeapObject(ret);
|
|
517
517
|
},
|
|
518
518
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
519
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
520
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
519
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
520
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_46);
|
|
521
521
|
return addHeapObject(ret);
|
|
522
522
|
},
|
|
523
523
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -554,20 +554,20 @@ function __wbg_get_imports() {
|
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
function
|
|
558
|
-
wasm.
|
|
557
|
+
function __wasm_bindgen_func_elem_46(arg0, arg1) {
|
|
558
|
+
wasm.__wasm_bindgen_func_elem_46(arg0, arg1);
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
function
|
|
562
|
-
wasm.
|
|
561
|
+
function __wasm_bindgen_func_elem_42(arg0, arg1, arg2) {
|
|
562
|
+
wasm.__wasm_bindgen_func_elem_42(arg0, arg1, addHeapObject(arg2));
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
function
|
|
566
|
-
wasm.
|
|
565
|
+
function __wasm_bindgen_func_elem_42_1(arg0, arg1, arg2) {
|
|
566
|
+
wasm.__wasm_bindgen_func_elem_42_1(arg0, arg1, addHeapObject(arg2));
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
function
|
|
570
|
-
wasm.
|
|
569
|
+
function __wasm_bindgen_func_elem_42_2(arg0, arg1, arg2) {
|
|
570
|
+
wasm.__wasm_bindgen_func_elem_42_2(arg0, arg1, addHeapObject(arg2));
|
|
571
571
|
}
|
|
572
572
|
|
|
573
573
|
|
|
Binary file
|