phirepass-channel 0.1.178 → 0.1.180
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 +6 -6
- package/phirepass-channel.js +49 -49
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -71,16 +71,16 @@ export interface InitOutput {
|
|
|
71
71
|
readonly channel_start_heartbeat: (a: number, b: number) => void;
|
|
72
72
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
73
73
|
readonly version: (a: number) => void;
|
|
74
|
-
readonly __wasm_bindgen_func_elem_37: (a: number, b: number) => void;
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly __wasm_bindgen_func_elem_42: (a: number, b: number) => void;
|
|
74
|
+
readonly __wasm_bindgen_func_elem_37: (a: number, b: number, c: number) => void;
|
|
75
|
+
readonly __wasm_bindgen_func_elem_37_1: (a: number, b: number, c: number) => void;
|
|
76
|
+
readonly __wasm_bindgen_func_elem_37_2: (a: number, b: number, c: number) => void;
|
|
77
|
+
readonly __wasm_bindgen_func_elem_41: (a: number, b: number) => void;
|
|
79
78
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
80
79
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
81
80
|
readonly __wbindgen_export3: (a: number) => void;
|
|
81
|
+
readonly __wbindgen_export4: (a: number, b: number) => void;
|
|
82
82
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
83
|
-
readonly
|
|
83
|
+
readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/phirepass-channel.js
CHANGED
|
@@ -281,14 +281,14 @@ export function version() {
|
|
|
281
281
|
return getStringFromWasm0(r0, r1);
|
|
282
282
|
} finally {
|
|
283
283
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
284
|
-
wasm.
|
|
284
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
function __wbg_get_imports() {
|
|
289
289
|
const import0 = {
|
|
290
290
|
__proto__: null,
|
|
291
|
-
|
|
291
|
+
__wbg_Error_55538483de6e3abe: function(arg0, arg1) {
|
|
292
292
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
293
293
|
return addHeapObject(ret);
|
|
294
294
|
},
|
|
@@ -299,14 +299,14 @@ function __wbg_get_imports() {
|
|
|
299
299
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
300
300
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
301
301
|
},
|
|
302
|
-
|
|
302
|
+
__wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
|
|
303
303
|
const ret = debugString(getObject(arg1));
|
|
304
304
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
305
305
|
const len1 = WASM_VECTOR_LEN;
|
|
306
306
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
307
307
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
308
308
|
},
|
|
309
|
-
|
|
309
|
+
__wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
|
|
310
310
|
const obj = getObject(arg1);
|
|
311
311
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
312
312
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -314,36 +314,36 @@ function __wbg_get_imports() {
|
|
|
314
314
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
315
315
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
316
316
|
},
|
|
317
|
-
|
|
317
|
+
__wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
|
|
318
318
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
__wbg__wbg_cb_unref_fbe69bb076c16bad: function(arg0) {
|
|
321
321
|
getObject(arg0)._wbg_cb_unref();
|
|
322
322
|
},
|
|
323
|
-
|
|
324
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
323
|
+
__wbg_call_6ae20895a60069a2: function() { return handleError(function (arg0, arg1) {
|
|
324
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
325
325
|
return addHeapObject(ret);
|
|
326
326
|
}, arguments); },
|
|
327
|
-
|
|
328
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
327
|
+
__wbg_call_8f5d7bb070283508: function() { return handleError(function (arg0, arg1, arg2) {
|
|
328
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
329
329
|
return addHeapObject(ret);
|
|
330
330
|
}, arguments); },
|
|
331
331
|
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
332
332
|
const ret = clearInterval(takeObject(arg0));
|
|
333
333
|
return addHeapObject(ret);
|
|
334
334
|
},
|
|
335
|
-
|
|
335
|
+
__wbg_close_1bf0654059764e94: function() { return handleError(function (arg0) {
|
|
336
336
|
getObject(arg0).close();
|
|
337
337
|
}, arguments); },
|
|
338
|
-
|
|
338
|
+
__wbg_data_7de671a92a650aba: function(arg0) {
|
|
339
339
|
const ret = getObject(arg0).data;
|
|
340
340
|
return addHeapObject(ret);
|
|
341
341
|
},
|
|
342
|
-
|
|
342
|
+
__wbg_from_45cebbf5e49a6ac6: function(arg0) {
|
|
343
343
|
const ret = Array.from(getObject(arg0));
|
|
344
344
|
return addHeapObject(ret);
|
|
345
345
|
},
|
|
346
|
-
|
|
346
|
+
__wbg_instanceof_ArrayBuffer_8d855993947fc3a2: function(arg0) {
|
|
347
347
|
let result;
|
|
348
348
|
try {
|
|
349
349
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -353,82 +353,82 @@ function __wbg_get_imports() {
|
|
|
353
353
|
const ret = result;
|
|
354
354
|
return ret;
|
|
355
355
|
},
|
|
356
|
-
|
|
356
|
+
__wbg_length_e6e1633fbea6cfa9: function(arg0) {
|
|
357
357
|
const ret = getObject(arg0).length;
|
|
358
358
|
return ret;
|
|
359
359
|
},
|
|
360
|
-
|
|
360
|
+
__wbg_new_1d96678aaacca32e: function(arg0) {
|
|
361
361
|
const ret = new Uint8Array(getObject(arg0));
|
|
362
362
|
return addHeapObject(ret);
|
|
363
363
|
},
|
|
364
|
-
|
|
364
|
+
__wbg_new_4370be21fa2b2f80: function() {
|
|
365
365
|
const ret = new Array();
|
|
366
366
|
return addHeapObject(ret);
|
|
367
367
|
},
|
|
368
|
-
|
|
368
|
+
__wbg_new_48e1d86cfd30c8e7: function() {
|
|
369
369
|
const ret = new Object();
|
|
370
370
|
return addHeapObject(ret);
|
|
371
371
|
},
|
|
372
|
-
|
|
372
|
+
__wbg_new_with_str_53b505a6bb7f12f6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
373
373
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
374
374
|
return addHeapObject(ret);
|
|
375
375
|
}, arguments); },
|
|
376
|
-
|
|
376
|
+
__wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
|
|
377
377
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
378
378
|
},
|
|
379
|
-
|
|
379
|
+
__wbg_readyState_a08d25cc57214030: function(arg0) {
|
|
380
380
|
const ret = getObject(arg0).readyState;
|
|
381
381
|
return ret;
|
|
382
382
|
},
|
|
383
|
-
|
|
383
|
+
__wbg_send_da543a379e952bc6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
384
384
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
385
385
|
}, arguments); },
|
|
386
386
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
387
387
|
const ret = setInterval(getObject(arg0), arg1);
|
|
388
388
|
return addHeapObject(ret);
|
|
389
389
|
}, arguments); },
|
|
390
|
-
|
|
390
|
+
__wbg_set_4702dfa37c77f492: function(arg0, arg1, arg2) {
|
|
391
391
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
392
392
|
},
|
|
393
393
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
394
394
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
395
395
|
},
|
|
396
|
-
|
|
396
|
+
__wbg_set_binaryType_0675f0e51c055ca8: function(arg0, arg1) {
|
|
397
397
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
398
398
|
},
|
|
399
|
-
|
|
399
|
+
__wbg_set_onclose_f791ef701be808a0: function(arg0, arg1) {
|
|
400
400
|
getObject(arg0).onclose = getObject(arg1);
|
|
401
401
|
},
|
|
402
|
-
|
|
402
|
+
__wbg_set_onerror_e23002e9224d353b: function(arg0, arg1) {
|
|
403
403
|
getObject(arg0).onerror = getObject(arg1);
|
|
404
404
|
},
|
|
405
|
-
|
|
405
|
+
__wbg_set_onmessage_d2fe701a9ce80846: function(arg0, arg1) {
|
|
406
406
|
getObject(arg0).onmessage = getObject(arg1);
|
|
407
407
|
},
|
|
408
|
-
|
|
408
|
+
__wbg_set_onopen_0556381d0db30cbb: function(arg0, arg1) {
|
|
409
409
|
getObject(arg0).onopen = getObject(arg1);
|
|
410
410
|
},
|
|
411
|
-
|
|
411
|
+
__wbg_warn_7e545c047609d0b6: function(arg0, arg1) {
|
|
412
412
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
413
413
|
},
|
|
414
414
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
415
|
-
// Cast intrinsic for `Closure(Closure {
|
|
416
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
415
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
416
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37);
|
|
417
417
|
return addHeapObject(ret);
|
|
418
418
|
},
|
|
419
419
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
420
|
-
// Cast intrinsic for `Closure(Closure {
|
|
421
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
420
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
421
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_1);
|
|
422
422
|
return addHeapObject(ret);
|
|
423
423
|
},
|
|
424
424
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
425
|
-
// Cast intrinsic for `Closure(Closure {
|
|
426
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
425
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
426
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_37_2);
|
|
427
427
|
return addHeapObject(ret);
|
|
428
428
|
},
|
|
429
429
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
430
|
-
// Cast intrinsic for `Closure(Closure {
|
|
431
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
430
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
431
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
|
|
432
432
|
return addHeapObject(ret);
|
|
433
433
|
},
|
|
434
434
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -465,20 +465,20 @@ function __wbg_get_imports() {
|
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
function
|
|
469
|
-
wasm.
|
|
468
|
+
function __wasm_bindgen_func_elem_41(arg0, arg1) {
|
|
469
|
+
wasm.__wasm_bindgen_func_elem_41(arg0, arg1);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
function
|
|
473
|
-
wasm.
|
|
472
|
+
function __wasm_bindgen_func_elem_37(arg0, arg1, arg2) {
|
|
473
|
+
wasm.__wasm_bindgen_func_elem_37(arg0, arg1, addHeapObject(arg2));
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
function
|
|
477
|
-
wasm.
|
|
476
|
+
function __wasm_bindgen_func_elem_37_1(arg0, arg1, arg2) {
|
|
477
|
+
wasm.__wasm_bindgen_func_elem_37_1(arg0, arg1, addHeapObject(arg2));
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
function
|
|
481
|
-
wasm.
|
|
480
|
+
function __wasm_bindgen_func_elem_37_2(arg0, arg1, arg2) {
|
|
481
|
+
wasm.__wasm_bindgen_func_elem_37_2(arg0, arg1, addHeapObject(arg2));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
|
|
@@ -498,7 +498,7 @@ function addHeapObject(obj) {
|
|
|
498
498
|
|
|
499
499
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
500
500
|
? { register: () => {}, unregister: () => {} }
|
|
501
|
-
: new FinalizationRegistry(state =>
|
|
501
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_export4(state.a, state.b));
|
|
502
502
|
|
|
503
503
|
function debugString(val) {
|
|
504
504
|
// primitive types
|
|
@@ -616,8 +616,8 @@ function isLikeNone(x) {
|
|
|
616
616
|
return x === undefined || x === null;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
function makeMutClosure(arg0, arg1,
|
|
620
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
619
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
620
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
621
621
|
const real = (...args) => {
|
|
622
622
|
|
|
623
623
|
// First up with a closure we increment the internal reference
|
|
@@ -635,7 +635,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
635
635
|
};
|
|
636
636
|
real._wbg_cb_unref = () => {
|
|
637
637
|
if (--state.cnt === 0) {
|
|
638
|
-
|
|
638
|
+
wasm.__wbindgen_export4(state.a, state.b);
|
|
639
639
|
state.a = 0;
|
|
640
640
|
CLOSURE_DTORS.unregister(state);
|
|
641
641
|
}
|
|
Binary file
|