phirepass-channel 0.1.131 → 0.1.133
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 -2
- package/phirepass-channel.js +58 -50
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -70,8 +70,10 @@ export interface InitOutput {
|
|
|
70
70
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
71
71
|
readonly version: (a: number) => void;
|
|
72
72
|
readonly __wasm_bindgen_func_elem_37: (a: number, b: number) => void;
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
73
|
+
readonly __wasm_bindgen_func_elem_40: (a: number, b: number, c: number) => void;
|
|
74
|
+
readonly __wasm_bindgen_func_elem_40_1: (a: number, b: number, c: number) => void;
|
|
75
|
+
readonly __wasm_bindgen_func_elem_40_2: (a: number, b: number, c: number) => void;
|
|
76
|
+
readonly __wasm_bindgen_func_elem_38: (a: number, b: number) => void;
|
|
75
77
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
76
78
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
77
79
|
readonly __wbindgen_export3: (a: number) => void;
|
package/phirepass-channel.js
CHANGED
|
@@ -274,25 +274,25 @@ export function version() {
|
|
|
274
274
|
function __wbg_get_imports() {
|
|
275
275
|
const import0 = {
|
|
276
276
|
__proto__: null,
|
|
277
|
-
|
|
277
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
278
278
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
279
279
|
return addHeapObject(ret);
|
|
280
280
|
},
|
|
281
|
-
|
|
281
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
282
282
|
const ret = String(getObject(arg1));
|
|
283
283
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
284
284
|
const len1 = WASM_VECTOR_LEN;
|
|
285
285
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
286
286
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
287
287
|
},
|
|
288
|
-
|
|
288
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
289
289
|
const ret = debugString(getObject(arg1));
|
|
290
290
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
291
291
|
const len1 = WASM_VECTOR_LEN;
|
|
292
292
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
293
293
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
294
294
|
},
|
|
295
|
-
|
|
295
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
296
296
|
const obj = getObject(arg1);
|
|
297
297
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
298
298
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -300,36 +300,36 @@ function __wbg_get_imports() {
|
|
|
300
300
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
301
301
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
302
302
|
},
|
|
303
|
-
|
|
303
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
304
304
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
305
305
|
},
|
|
306
|
-
|
|
306
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
307
307
|
getObject(arg0)._wbg_cb_unref();
|
|
308
308
|
},
|
|
309
|
-
|
|
310
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
309
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
310
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
311
311
|
return addHeapObject(ret);
|
|
312
312
|
}, arguments); },
|
|
313
|
-
|
|
314
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
313
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
314
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
315
315
|
return addHeapObject(ret);
|
|
316
316
|
}, arguments); },
|
|
317
|
-
|
|
317
|
+
__wbg_clearInterval_16e8cbbce92291d0: function(arg0) {
|
|
318
318
|
const ret = clearInterval(takeObject(arg0));
|
|
319
319
|
return addHeapObject(ret);
|
|
320
320
|
},
|
|
321
|
-
|
|
321
|
+
__wbg_close_af26905c832a88cb: function() { return handleError(function (arg0) {
|
|
322
322
|
getObject(arg0).close();
|
|
323
323
|
}, arguments); },
|
|
324
|
-
|
|
324
|
+
__wbg_data_a3d9ff9cdd801002: function(arg0) {
|
|
325
325
|
const ret = getObject(arg0).data;
|
|
326
326
|
return addHeapObject(ret);
|
|
327
327
|
},
|
|
328
|
-
|
|
328
|
+
__wbg_from_4bdf88943703fd48: function(arg0) {
|
|
329
329
|
const ret = Array.from(getObject(arg0));
|
|
330
330
|
return addHeapObject(ret);
|
|
331
331
|
},
|
|
332
|
-
|
|
332
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
333
333
|
let result;
|
|
334
334
|
try {
|
|
335
335
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -339,82 +339,82 @@ function __wbg_get_imports() {
|
|
|
339
339
|
const ret = result;
|
|
340
340
|
return ret;
|
|
341
341
|
},
|
|
342
|
-
|
|
342
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
343
343
|
const ret = getObject(arg0).length;
|
|
344
344
|
return ret;
|
|
345
345
|
},
|
|
346
|
-
|
|
347
|
-
const ret = new
|
|
346
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
347
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
348
348
|
return addHeapObject(ret);
|
|
349
349
|
},
|
|
350
|
-
|
|
350
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
351
351
|
const ret = new Array();
|
|
352
352
|
return addHeapObject(ret);
|
|
353
353
|
},
|
|
354
|
-
|
|
355
|
-
const ret = new
|
|
354
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
355
|
+
const ret = new Object();
|
|
356
356
|
return addHeapObject(ret);
|
|
357
357
|
},
|
|
358
|
-
|
|
358
|
+
__wbg_new_with_str_299114bdb2430303: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
359
359
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
360
360
|
return addHeapObject(ret);
|
|
361
361
|
}, arguments); },
|
|
362
|
-
|
|
362
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
363
363
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
364
364
|
},
|
|
365
|
-
|
|
365
|
+
__wbg_readyState_1f1e7f1bdf9f4d42: function(arg0) {
|
|
366
366
|
const ret = getObject(arg0).readyState;
|
|
367
367
|
return ret;
|
|
368
368
|
},
|
|
369
|
-
|
|
369
|
+
__wbg_send_d31a693c975dea74: function() { return handleError(function (arg0, arg1, arg2) {
|
|
370
370
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
371
371
|
}, arguments); },
|
|
372
|
-
|
|
372
|
+
__wbg_setInterval_84b64f01452a246e: function() { return handleError(function (arg0, arg1) {
|
|
373
373
|
const ret = setInterval(getObject(arg0), arg1);
|
|
374
374
|
return addHeapObject(ret);
|
|
375
375
|
}, arguments); },
|
|
376
|
-
|
|
376
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
377
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
378
|
+
},
|
|
379
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
377
380
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
378
381
|
},
|
|
379
|
-
|
|
382
|
+
__wbg_set_binaryType_3dcf8281ec100a8f: function(arg0, arg1) {
|
|
380
383
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
381
384
|
},
|
|
382
|
-
|
|
383
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
384
|
-
},
|
|
385
|
-
__wbg_set_onclose_d382f3e2c2b850eb: function(arg0, arg1) {
|
|
385
|
+
__wbg_set_onclose_8da801226bdd7a7b: function(arg0, arg1) {
|
|
386
386
|
getObject(arg0).onclose = getObject(arg1);
|
|
387
387
|
},
|
|
388
|
-
|
|
388
|
+
__wbg_set_onerror_901ca711f94a5bbb: function(arg0, arg1) {
|
|
389
389
|
getObject(arg0).onerror = getObject(arg1);
|
|
390
390
|
},
|
|
391
|
-
|
|
391
|
+
__wbg_set_onmessage_6f80ab771bf151aa: function(arg0, arg1) {
|
|
392
392
|
getObject(arg0).onmessage = getObject(arg1);
|
|
393
393
|
},
|
|
394
|
-
|
|
394
|
+
__wbg_set_onopen_34e3e24cf9337ddd: function(arg0, arg1) {
|
|
395
395
|
getObject(arg0).onopen = getObject(arg1);
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
__wbg_warn_a7379b2af47f00ee: function(arg0, arg1) {
|
|
398
398
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
399
399
|
},
|
|
400
400
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
401
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
402
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37,
|
|
401
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
402
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40);
|
|
403
403
|
return addHeapObject(ret);
|
|
404
404
|
},
|
|
405
405
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
406
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
407
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37,
|
|
406
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
407
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40_1);
|
|
408
408
|
return addHeapObject(ret);
|
|
409
409
|
},
|
|
410
410
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
411
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
412
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37,
|
|
411
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
412
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40_2);
|
|
413
413
|
return addHeapObject(ret);
|
|
414
414
|
},
|
|
415
415
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
416
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx:
|
|
417
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37,
|
|
416
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
417
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_38);
|
|
418
418
|
return addHeapObject(ret);
|
|
419
419
|
},
|
|
420
420
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -451,12 +451,20 @@ function __wbg_get_imports() {
|
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
function
|
|
455
|
-
wasm.
|
|
454
|
+
function __wasm_bindgen_func_elem_38(arg0, arg1) {
|
|
455
|
+
wasm.__wasm_bindgen_func_elem_38(arg0, arg1);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
function __wasm_bindgen_func_elem_40(arg0, arg1, arg2) {
|
|
459
|
+
wasm.__wasm_bindgen_func_elem_40(arg0, arg1, addHeapObject(arg2));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function __wasm_bindgen_func_elem_40_1(arg0, arg1, arg2) {
|
|
463
|
+
wasm.__wasm_bindgen_func_elem_40_1(arg0, arg1, addHeapObject(arg2));
|
|
456
464
|
}
|
|
457
465
|
|
|
458
|
-
function
|
|
459
|
-
wasm.
|
|
466
|
+
function __wasm_bindgen_func_elem_40_2(arg0, arg1, arg2) {
|
|
467
|
+
wasm.__wasm_bindgen_func_elem_40_2(arg0, arg1, addHeapObject(arg2));
|
|
460
468
|
}
|
|
461
469
|
|
|
462
470
|
|
|
@@ -544,7 +552,7 @@ function debugString(val) {
|
|
|
544
552
|
}
|
|
545
553
|
|
|
546
554
|
function dropObject(idx) {
|
|
547
|
-
if (idx <
|
|
555
|
+
if (idx < 1028) return;
|
|
548
556
|
heap[idx] = heap_next;
|
|
549
557
|
heap_next = idx;
|
|
550
558
|
}
|
|
@@ -585,7 +593,7 @@ function handleError(f, args) {
|
|
|
585
593
|
}
|
|
586
594
|
}
|
|
587
595
|
|
|
588
|
-
let heap = new Array(
|
|
596
|
+
let heap = new Array(1024).fill(undefined);
|
|
589
597
|
heap.push(undefined, null, true, false);
|
|
590
598
|
|
|
591
599
|
let heap_next = heap.length;
|
|
Binary file
|