phirepass-channel 0.1.179 → 0.1.181

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "phirepass-channel",
3
3
  "type": "module",
4
- "version": "0.1.179",
4
+ "version": "0.1.181",
5
5
  "license": "SEE LICENSE IN ../LICENCE",
6
6
  "repository": {
7
7
  "type": "git",
@@ -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 __wasm_bindgen_func_elem_40: (a: number, b: number, c: number) => void;
76
- readonly __wasm_bindgen_func_elem_40_1: (a: number, b: number, c: number) => void;
77
- readonly __wasm_bindgen_func_elem_40_2: (a: number, b: number, c: number) => void;
78
- readonly __wasm_bindgen_func_elem_38: (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 __wbindgen_export4: (a: number, b: number, c: number) => void;
83
+ readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
84
84
  }
85
85
 
86
86
  export type SyncInitInput = BufferSource | WebAssembly.Module;
@@ -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.__wbindgen_export4(deferred1_0, deferred1_1, 1);
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
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
291
+ __wbg_Error_2e59b1b37a9a34c3: 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
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
302
+ __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: 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
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
309
+ __wbg___wbindgen_string_get_914df97fcfa788f2: 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
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
317
+ __wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
318
318
  throw new Error(getStringFromWasm0(arg0, arg1));
319
319
  },
320
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
320
+ __wbg__wbg_cb_unref_3c3b4f651835fbcb: function(arg0) {
321
321
  getObject(arg0)._wbg_cb_unref();
322
322
  },
323
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
324
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
323
+ __wbg_call_7f2987183bb62793: function() { return handleError(function (arg0, arg1) {
324
+ const ret = getObject(arg0).call(getObject(arg1));
325
325
  return addHeapObject(ret);
326
326
  }, arguments); },
327
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
328
- const ret = getObject(arg0).call(getObject(arg1));
327
+ __wbg_call_d578befcc3145dee: 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
- __wbg_close_af26905c832a88cb: function() { return handleError(function (arg0) {
335
+ __wbg_close_f181fdc02ee236e6: function() { return handleError(function (arg0) {
336
336
  getObject(arg0).close();
337
337
  }, arguments); },
338
- __wbg_data_a3d9ff9cdd801002: function(arg0) {
338
+ __wbg_data_60b50110c5bd9349: function(arg0) {
339
339
  const ret = getObject(arg0).data;
340
340
  return addHeapObject(ret);
341
341
  },
342
- __wbg_from_4bdf88943703fd48: function(arg0) {
342
+ __wbg_from_741da0f916ab74aa: function(arg0) {
343
343
  const ret = Array.from(getObject(arg0));
344
344
  return addHeapObject(ret);
345
345
  },
346
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
346
+ __wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a: 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
- __wbg_length_ea16607d7b61445b: function(arg0) {
356
+ __wbg_length_0c32cb8543c8e4c8: function(arg0) {
357
357
  const ret = getObject(arg0).length;
358
358
  return ret;
359
359
  },
360
- __wbg_new_5f486cdf45a04d78: function(arg0) {
361
- const ret = new Uint8Array(getObject(arg0));
360
+ __wbg_new_4f9fafbb3909af72: function() {
361
+ const ret = new Object();
362
362
  return addHeapObject(ret);
363
363
  },
364
- __wbg_new_a70fbab9066b301f: function() {
365
- const ret = new Array();
364
+ __wbg_new_a560378ea1240b14: function(arg0) {
365
+ const ret = new Uint8Array(getObject(arg0));
366
366
  return addHeapObject(ret);
367
367
  },
368
- __wbg_new_ab79df5bd7c26067: function() {
369
- const ret = new Object();
368
+ __wbg_new_f3c9df4f38f3f798: function() {
369
+ const ret = new Array();
370
370
  return addHeapObject(ret);
371
371
  },
372
- __wbg_new_with_str_299114bdb2430303: function() { return handleError(function (arg0, arg1, arg2, arg3) {
372
+ __wbg_new_with_str_7cf464e6e0f54ec2: 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
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
376
+ __wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
377
377
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
378
378
  },
379
- __wbg_readyState_1f1e7f1bdf9f4d42: function(arg0) {
379
+ __wbg_readyState_631d9f7c37e595d7: function(arg0) {
380
380
  const ret = getObject(arg0).readyState;
381
381
  return ret;
382
382
  },
383
- __wbg_send_d31a693c975dea74: function() { return handleError(function (arg0, arg1, arg2) {
383
+ __wbg_send_64dd480ad0d86a31: 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
- __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
391
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
392
- },
393
390
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
394
391
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
395
392
  },
396
- __wbg_set_binaryType_3dcf8281ec100a8f: function(arg0, arg1) {
393
+ __wbg_set_6c60b2e8ad0e9383: function(arg0, arg1, arg2) {
394
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
395
+ },
396
+ __wbg_set_binaryType_95c0a0f7586a3903: function(arg0, arg1) {
397
397
  getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
398
398
  },
399
- __wbg_set_onclose_8da801226bdd7a7b: function(arg0, arg1) {
399
+ __wbg_set_onclose_47cce56c686db4fb: function(arg0, arg1) {
400
400
  getObject(arg0).onclose = getObject(arg1);
401
401
  },
402
- __wbg_set_onerror_901ca711f94a5bbb: function(arg0, arg1) {
402
+ __wbg_set_onerror_3db8bc3e52b2b10b: function(arg0, arg1) {
403
403
  getObject(arg0).onerror = getObject(arg1);
404
404
  },
405
- __wbg_set_onmessage_6f80ab771bf151aa: function(arg0, arg1) {
405
+ __wbg_set_onmessage_45bd33b110c54f5b: function(arg0, arg1) {
406
406
  getObject(arg0).onmessage = getObject(arg1);
407
407
  },
408
- __wbg_set_onopen_34e3e24cf9337ddd: function(arg0, arg1) {
408
+ __wbg_set_onopen_7ffeb01f8a628209: function(arg0, arg1) {
409
409
  getObject(arg0).onopen = getObject(arg1);
410
410
  },
411
- __wbg_warn_2e8ef54e07335c86: function(arg0, arg1) {
411
+ __wbg_warn_9952e6d840701d43: 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 { dtor_idx: 1, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
416
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40);
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 { dtor_idx: 1, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
421
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40_1);
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 { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
426
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_40_2);
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 { dtor_idx: 1, function: Function { arguments: [], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
431
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_37, __wasm_bindgen_func_elem_38);
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 __wasm_bindgen_func_elem_38(arg0, arg1) {
469
- wasm.__wasm_bindgen_func_elem_38(arg0, arg1);
468
+ function __wasm_bindgen_func_elem_41(arg0, arg1) {
469
+ wasm.__wasm_bindgen_func_elem_41(arg0, arg1);
470
470
  }
471
471
 
472
- function __wasm_bindgen_func_elem_40(arg0, arg1, arg2) {
473
- wasm.__wasm_bindgen_func_elem_40(arg0, arg1, addHeapObject(arg2));
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 __wasm_bindgen_func_elem_40_1(arg0, arg1, arg2) {
477
- wasm.__wasm_bindgen_func_elem_40_1(arg0, arg1, addHeapObject(arg2));
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 __wasm_bindgen_func_elem_40_2(arg0, arg1, arg2) {
481
- wasm.__wasm_bindgen_func_elem_40_2(arg0, arg1, addHeapObject(arg2));
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 => state.dtor(state.a, state.b));
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, dtor, f) {
620
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
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
- state.dtor(state.a, state.b);
638
+ wasm.__wbindgen_export4(state.a, state.b);
639
639
  state.a = 0;
640
640
  CLOSURE_DTORS.unregister(state);
641
641
  }
Binary file