phirepass-channel 0.1.206 → 0.1.208

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.206",
4
+ "version": "0.1.208",
5
5
  "license": "SEE LICENSE IN ../LICENCE",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,6 +34,7 @@ export enum ErrorType {
34
34
  Authentication = 10,
35
35
  RequiresUsername = 100,
36
36
  RequiresPassword = 110,
37
+ RequiresUsernamePassword = 120,
37
38
  }
38
39
 
39
40
  export enum Protocol {
@@ -72,10 +73,10 @@ export interface InitOutput {
72
73
  readonly channel_start_heartbeat: (a: number, b: number) => void;
73
74
  readonly channel_stop_heartbeat: (a: number) => void;
74
75
  readonly version: (a: number) => void;
75
- readonly __wasm_bindgen_func_elem_39: (a: number, b: number, c: number) => void;
76
- readonly __wasm_bindgen_func_elem_39_1: (a: number, b: number, c: number) => void;
77
- readonly __wasm_bindgen_func_elem_39_2: (a: number, b: number, c: number) => void;
78
- readonly __wasm_bindgen_func_elem_42: (a: number, b: number) => void;
76
+ readonly __wasm_bindgen_func_elem_41: (a: number, b: number, c: number) => void;
77
+ readonly __wasm_bindgen_func_elem_41_1: (a: number, b: number, c: number) => void;
78
+ readonly __wasm_bindgen_func_elem_41_2: (a: number, b: number, c: number) => void;
79
+ readonly __wasm_bindgen_func_elem_39: (a: number, b: number) => void;
79
80
  readonly __wbindgen_export: (a: number, b: number) => number;
80
81
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
81
82
  readonly __wbindgen_export3: (a: number) => void;
@@ -249,13 +249,14 @@ export class Channel {
249
249
  if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
250
250
 
251
251
  /**
252
- * @enum {0 | 10 | 100 | 110}
252
+ * @enum {0 | 10 | 100 | 110 | 120}
253
253
  */
254
254
  export const ErrorType = Object.freeze({
255
255
  Generic: 0, "0": "Generic",
256
256
  Authentication: 10, "10": "Authentication",
257
257
  RequiresUsername: 100, "100": "RequiresUsername",
258
258
  RequiresPassword: 110, "110": "RequiresPassword",
259
+ RequiresUsernamePassword: 120, "120": "RequiresUsernamePassword",
259
260
  });
260
261
 
261
262
  /**
@@ -343,7 +344,7 @@ function __wbg_get_imports() {
343
344
  const ret = Array.from(getObject(arg0));
344
345
  return addHeapObject(ret);
345
346
  },
346
- __wbg_info_69af23413e7ab9b3: function(arg0, arg1) {
347
+ __wbg_info_28c8c91558eab232: function(arg0, arg1) {
347
348
  console.info(getStringFromWasm0(arg0, arg1));
348
349
  },
349
350
  __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
@@ -415,27 +416,27 @@ function __wbg_get_imports() {
415
416
  __wbg_set_onopen_cd47b8fb1d92dee9: function(arg0, arg1) {
416
417
  getObject(arg0).onopen = getObject(arg1);
417
418
  },
418
- __wbg_warn_d79b0f6c312608eb: function(arg0, arg1) {
419
+ __wbg_warn_7b0e6adca8922a5f: function(arg0, arg1) {
419
420
  console.warn(getStringFromWasm0(arg0, arg1));
420
421
  },
421
422
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
422
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
423
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39);
423
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
424
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
424
425
  return addHeapObject(ret);
425
426
  },
426
427
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
427
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
428
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39_1);
428
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
429
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_1);
429
430
  return addHeapObject(ret);
430
431
  },
431
432
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
432
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
433
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39_2);
433
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
434
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_2);
434
435
  return addHeapObject(ret);
435
436
  },
436
437
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
437
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
438
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
438
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
439
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39);
439
440
  return addHeapObject(ret);
440
441
  },
441
442
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -472,20 +473,20 @@ function __wbg_get_imports() {
472
473
  };
473
474
  }
474
475
 
475
- function __wasm_bindgen_func_elem_42(arg0, arg1) {
476
- wasm.__wasm_bindgen_func_elem_42(arg0, arg1);
476
+ function __wasm_bindgen_func_elem_39(arg0, arg1) {
477
+ wasm.__wasm_bindgen_func_elem_39(arg0, arg1);
477
478
  }
478
479
 
479
- function __wasm_bindgen_func_elem_39(arg0, arg1, arg2) {
480
- wasm.__wasm_bindgen_func_elem_39(arg0, arg1, addHeapObject(arg2));
480
+ function __wasm_bindgen_func_elem_41(arg0, arg1, arg2) {
481
+ wasm.__wasm_bindgen_func_elem_41(arg0, arg1, addHeapObject(arg2));
481
482
  }
482
483
 
483
- function __wasm_bindgen_func_elem_39_1(arg0, arg1, arg2) {
484
- wasm.__wasm_bindgen_func_elem_39_1(arg0, arg1, addHeapObject(arg2));
484
+ function __wasm_bindgen_func_elem_41_1(arg0, arg1, arg2) {
485
+ wasm.__wasm_bindgen_func_elem_41_1(arg0, arg1, addHeapObject(arg2));
485
486
  }
486
487
 
487
- function __wasm_bindgen_func_elem_39_2(arg0, arg1, arg2) {
488
- wasm.__wasm_bindgen_func_elem_39_2(arg0, arg1, addHeapObject(arg2));
488
+ function __wasm_bindgen_func_elem_41_2(arg0, arg1, arg2) {
489
+ wasm.__wasm_bindgen_func_elem_41_2(arg0, arg1, addHeapObject(arg2));
489
490
  }
490
491
 
491
492
 
Binary file