phirepass-channel 0.1.201 → 0.1.202
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 +49 -50
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -72,10 +72,10 @@ export interface InitOutput {
|
|
|
72
72
|
readonly channel_start_heartbeat: (a: number, b: number) => void;
|
|
73
73
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
74
74
|
readonly version: (a: number) => void;
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
75
|
+
readonly __wasm_bindgen_func_elem_41: (a: number, b: number, c: number) => void;
|
|
76
|
+
readonly __wasm_bindgen_func_elem_41_1: (a: number, b: number, c: number) => void;
|
|
77
|
+
readonly __wasm_bindgen_func_elem_41_2: (a: number, b: number, c: number) => void;
|
|
78
|
+
readonly __wasm_bindgen_func_elem_39: (a: number, b: number) => void;
|
|
79
79
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
80
80
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
81
81
|
readonly __wbindgen_export3: (a: number) => void;
|
package/phirepass-channel.js
CHANGED
|
@@ -285,11 +285,10 @@ export function version() {
|
|
|
285
285
|
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
|
|
289
288
|
function __wbg_get_imports() {
|
|
290
289
|
const import0 = {
|
|
291
290
|
__proto__: null,
|
|
292
|
-
|
|
291
|
+
__wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
|
|
293
292
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
294
293
|
return addHeapObject(ret);
|
|
295
294
|
},
|
|
@@ -300,14 +299,14 @@ function __wbg_get_imports() {
|
|
|
300
299
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
301
300
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
302
301
|
},
|
|
303
|
-
|
|
302
|
+
__wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
|
|
304
303
|
const ret = debugString(getObject(arg1));
|
|
305
304
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
306
305
|
const len1 = WASM_VECTOR_LEN;
|
|
307
306
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
308
307
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
309
308
|
},
|
|
310
|
-
|
|
309
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
311
310
|
const obj = getObject(arg1);
|
|
312
311
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
313
312
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -315,17 +314,17 @@ function __wbg_get_imports() {
|
|
|
315
314
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
316
315
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
317
316
|
},
|
|
318
|
-
|
|
317
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
319
318
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
320
319
|
},
|
|
321
|
-
|
|
320
|
+
__wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
|
|
322
321
|
getObject(arg0)._wbg_cb_unref();
|
|
323
322
|
},
|
|
324
|
-
|
|
323
|
+
__wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
|
|
325
324
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
326
325
|
return addHeapObject(ret);
|
|
327
326
|
}, arguments); },
|
|
328
|
-
|
|
327
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
329
328
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
330
329
|
return addHeapObject(ret);
|
|
331
330
|
}, arguments); },
|
|
@@ -333,21 +332,21 @@ function __wbg_get_imports() {
|
|
|
333
332
|
const ret = clearInterval(takeObject(arg0));
|
|
334
333
|
return addHeapObject(ret);
|
|
335
334
|
},
|
|
336
|
-
|
|
335
|
+
__wbg_close_88106990eea7f544: function() { return handleError(function (arg0) {
|
|
337
336
|
getObject(arg0).close();
|
|
338
337
|
}, arguments); },
|
|
339
|
-
|
|
338
|
+
__wbg_data_bb9dffdd1e99cf2d: function(arg0) {
|
|
340
339
|
const ret = getObject(arg0).data;
|
|
341
340
|
return addHeapObject(ret);
|
|
342
341
|
},
|
|
343
|
-
|
|
342
|
+
__wbg_from_0dbf29f09e7fb200: function(arg0) {
|
|
344
343
|
const ret = Array.from(getObject(arg0));
|
|
345
344
|
return addHeapObject(ret);
|
|
346
345
|
},
|
|
347
|
-
|
|
346
|
+
__wbg_info_20f5d7e22e2e57b7: function(arg0, arg1) {
|
|
348
347
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
349
348
|
},
|
|
350
|
-
|
|
349
|
+
__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
|
|
351
350
|
let result;
|
|
352
351
|
try {
|
|
353
352
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -357,86 +356,86 @@ function __wbg_get_imports() {
|
|
|
357
356
|
const ret = result;
|
|
358
357
|
return ret;
|
|
359
358
|
},
|
|
360
|
-
|
|
359
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
361
360
|
const ret = getObject(arg0).length;
|
|
362
361
|
return ret;
|
|
363
362
|
},
|
|
364
|
-
|
|
365
|
-
const ret = new Object();
|
|
366
|
-
return addHeapObject(ret);
|
|
367
|
-
},
|
|
368
|
-
__wbg_new_a560378ea1240b14: function(arg0) {
|
|
363
|
+
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
369
364
|
const ret = new Uint8Array(getObject(arg0));
|
|
370
365
|
return addHeapObject(ret);
|
|
371
366
|
},
|
|
372
|
-
|
|
367
|
+
__wbg_new_682678e2f47e32bc: function() {
|
|
373
368
|
const ret = new Array();
|
|
374
369
|
return addHeapObject(ret);
|
|
375
370
|
},
|
|
376
|
-
|
|
371
|
+
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
372
|
+
const ret = new Object();
|
|
373
|
+
return addHeapObject(ret);
|
|
374
|
+
},
|
|
375
|
+
__wbg_new_with_str_sequence_6453b755acdcc2e7: function() { return handleError(function (arg0, arg1, arg2) {
|
|
377
376
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
378
377
|
return addHeapObject(ret);
|
|
379
378
|
}, arguments); },
|
|
380
|
-
|
|
379
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
381
380
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
382
381
|
},
|
|
383
|
-
|
|
382
|
+
__wbg_push_471a5b068a5295f6: function(arg0, arg1) {
|
|
384
383
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
385
384
|
return ret;
|
|
386
385
|
},
|
|
387
|
-
|
|
386
|
+
__wbg_readyState_c78e609c7de3b381: function(arg0) {
|
|
388
387
|
const ret = getObject(arg0).readyState;
|
|
389
388
|
return ret;
|
|
390
389
|
},
|
|
391
|
-
|
|
390
|
+
__wbg_send_186c85704c7f2d00: function() { return handleError(function (arg0, arg1, arg2) {
|
|
392
391
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
393
392
|
}, arguments); },
|
|
394
393
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
395
394
|
const ret = setInterval(getObject(arg0), arg1);
|
|
396
395
|
return addHeapObject(ret);
|
|
397
396
|
}, arguments); },
|
|
397
|
+
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
398
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
399
|
+
},
|
|
398
400
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
399
401
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
400
402
|
},
|
|
401
|
-
|
|
402
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
403
|
-
},
|
|
404
|
-
__wbg_set_binaryType_95c0a0f7586a3903: function(arg0, arg1) {
|
|
403
|
+
__wbg_set_binaryType_770e68648ca5e83d: function(arg0, arg1) {
|
|
405
404
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
406
405
|
},
|
|
407
|
-
|
|
406
|
+
__wbg_set_onclose_17fa3bbcc4ba3541: function(arg0, arg1) {
|
|
408
407
|
getObject(arg0).onclose = getObject(arg1);
|
|
409
408
|
},
|
|
410
|
-
|
|
409
|
+
__wbg_set_onerror_da99c4232662a084: function(arg0, arg1) {
|
|
411
410
|
getObject(arg0).onerror = getObject(arg1);
|
|
412
411
|
},
|
|
413
|
-
|
|
412
|
+
__wbg_set_onmessage_c1db358b9c38e3f1: function(arg0, arg1) {
|
|
414
413
|
getObject(arg0).onmessage = getObject(arg1);
|
|
415
414
|
},
|
|
416
|
-
|
|
415
|
+
__wbg_set_onopen_cd47b8fb1d92dee9: function(arg0, arg1) {
|
|
417
416
|
getObject(arg0).onopen = getObject(arg1);
|
|
418
417
|
},
|
|
419
|
-
|
|
418
|
+
__wbg_warn_a9700737bd16dfd4: function(arg0, arg1) {
|
|
420
419
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
421
420
|
},
|
|
422
421
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
423
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
424
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
422
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
423
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
|
|
425
424
|
return addHeapObject(ret);
|
|
426
425
|
},
|
|
427
426
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
428
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
429
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
427
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
428
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_1);
|
|
430
429
|
return addHeapObject(ret);
|
|
431
430
|
},
|
|
432
431
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
433
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
434
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
432
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
433
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_2);
|
|
435
434
|
return addHeapObject(ret);
|
|
436
435
|
},
|
|
437
436
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
438
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
439
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
437
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
438
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39);
|
|
440
439
|
return addHeapObject(ret);
|
|
441
440
|
},
|
|
442
441
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -473,20 +472,20 @@ function __wbg_get_imports() {
|
|
|
473
472
|
};
|
|
474
473
|
}
|
|
475
474
|
|
|
476
|
-
function
|
|
477
|
-
wasm.
|
|
475
|
+
function __wasm_bindgen_func_elem_39(arg0, arg1) {
|
|
476
|
+
wasm.__wasm_bindgen_func_elem_39(arg0, arg1);
|
|
478
477
|
}
|
|
479
478
|
|
|
480
|
-
function
|
|
481
|
-
wasm.
|
|
479
|
+
function __wasm_bindgen_func_elem_41(arg0, arg1, arg2) {
|
|
480
|
+
wasm.__wasm_bindgen_func_elem_41(arg0, arg1, addHeapObject(arg2));
|
|
482
481
|
}
|
|
483
482
|
|
|
484
|
-
function
|
|
485
|
-
wasm.
|
|
483
|
+
function __wasm_bindgen_func_elem_41_1(arg0, arg1, arg2) {
|
|
484
|
+
wasm.__wasm_bindgen_func_elem_41_1(arg0, arg1, addHeapObject(arg2));
|
|
486
485
|
}
|
|
487
486
|
|
|
488
|
-
function
|
|
489
|
-
wasm.
|
|
487
|
+
function __wasm_bindgen_func_elem_41_2(arg0, arg1, arg2) {
|
|
488
|
+
wasm.__wasm_bindgen_func_elem_41_2(arg0, arg1, addHeapObject(arg2));
|
|
490
489
|
}
|
|
491
490
|
|
|
492
491
|
|
|
Binary file
|