phirepass-channel 0.1.260 → 0.1.262

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.260",
4
+ "version": "0.1.262",
5
5
  "license": "SEE LICENSE IN ../LICENCE",
6
6
  "repository": {
7
7
  "type": "git",
@@ -8,7 +8,7 @@ export class Channel {
8
8
  connect(): void;
9
9
  disable_service(node_id: string, kind: string, host: string, port: number, username?: string | null, password?: string | null, msg_id?: number | null): void;
10
10
  disconnect(): void;
11
- enable_service(node_id: string, kind: string, host: string, port: number, username?: string | null, password?: string | null, msg_id?: number | null): void;
11
+ enable_service(node_id: string, kind: string, host: string, port: number, username?: string | null, password?: string | null, visibility?: string | null, scheme?: string | null, msg_id?: number | null): void;
12
12
  is_connected(): boolean;
13
13
  is_disconnected(): boolean;
14
14
  constructor(endpoint: string, node_id: string, server_id?: string | null);
@@ -23,7 +23,7 @@ export class Channel {
23
23
  send_sftp_delete(node_id: string, sid: number, path: string, filename: string, msg_id?: number | null): void;
24
24
  /**
25
25
  * Send a pipelining ACK to the agent: acknowledges all chunks with index ≤ ack_up_to
26
- * so the agent's sliding window advances and it can push the next batch.
26
+ * so the agent's sliding window advances, and it can push the next batch.
27
27
  * Call this after processing each received SFTPDownloadChunk (or every N chunks).
28
28
  */
29
29
  send_sftp_download_ack(node_id: string, sid: number, download_id: number, ack_up_to: number): void;
@@ -62,7 +62,7 @@ export interface InitOutput {
62
62
  readonly channel_connect: (a: number) => void;
63
63
  readonly channel_disable_service: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
64
64
  readonly channel_disconnect: (a: number) => void;
65
- readonly channel_enable_service: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
65
+ readonly channel_enable_service: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => void;
66
66
  readonly channel_is_connected: (a: number) => number;
67
67
  readonly channel_is_disconnected: (a: number) => number;
68
68
  readonly channel_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
@@ -86,10 +86,10 @@ export interface InitOutput {
86
86
  readonly channel_start_heartbeat: (a: number, b: number) => void;
87
87
  readonly channel_stop_heartbeat: (a: number) => void;
88
88
  readonly version: (a: number) => void;
89
- readonly __wasm_bindgen_func_elem_42: (a: number, b: number, c: number) => void;
90
- readonly __wasm_bindgen_func_elem_42_1: (a: number, b: number, c: number) => void;
91
- readonly __wasm_bindgen_func_elem_42_2: (a: number, b: number, c: number) => void;
92
- readonly __wasm_bindgen_func_elem_44: (a: number, b: number) => void;
89
+ readonly __wasm_bindgen_func_elem_44: (a: number, b: number, c: number) => void;
90
+ readonly __wasm_bindgen_func_elem_44_1: (a: number, b: number, c: number) => void;
91
+ readonly __wasm_bindgen_func_elem_44_2: (a: number, b: number, c: number) => void;
92
+ readonly __wasm_bindgen_func_elem_42: (a: number, b: number) => void;
93
93
  readonly __wbindgen_export: (a: number, b: number) => number;
94
94
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
95
95
  readonly __wbindgen_export3: (a: number) => void;
@@ -58,9 +58,11 @@ export class Channel {
58
58
  * @param {number} port
59
59
  * @param {string | null} [username]
60
60
  * @param {string | null} [password]
61
+ * @param {string | null} [visibility]
62
+ * @param {string | null} [scheme]
61
63
  * @param {number | null} [msg_id]
62
64
  */
63
- enable_service(node_id, kind, host, port, username, password, msg_id) {
65
+ enable_service(node_id, kind, host, port, username, password, visibility, scheme, msg_id) {
64
66
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
65
67
  const len0 = WASM_VECTOR_LEN;
66
68
  const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -71,7 +73,11 @@ export class Channel {
71
73
  var len3 = WASM_VECTOR_LEN;
72
74
  var ptr4 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
73
75
  var len4 = WASM_VECTOR_LEN;
74
- wasm.channel_enable_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, port, ptr3, len3, ptr4, len4, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
76
+ var ptr5 = isLikeNone(visibility) ? 0 : passStringToWasm0(visibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
77
+ var len5 = WASM_VECTOR_LEN;
78
+ var ptr6 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
79
+ var len6 = WASM_VECTOR_LEN;
80
+ wasm.channel_enable_service(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, port, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
75
81
  }
76
82
  /**
77
83
  * @returns {boolean}
@@ -191,7 +197,7 @@ export class Channel {
191
197
  }
192
198
  /**
193
199
  * Send a pipelining ACK to the agent: acknowledges all chunks with index ≤ ack_up_to
194
- * so the agent's sliding window advances and it can push the next batch.
200
+ * so the agent's sliding window advances, and it can push the next batch.
195
201
  * Call this after processing each received SFTPDownloadChunk (or every N chunks).
196
202
  * @param {string} node_id
197
203
  * @param {number} sid
@@ -419,7 +425,7 @@ function __wbg_get_imports() {
419
425
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
420
426
  return addHeapObject(ret);
421
427
  }, arguments); },
422
- __wbg_info_7e60b0839637b648: function(arg0, arg1) {
428
+ __wbg_info_fd7f5d5c74ef331a: function(arg0, arg1) {
423
429
  console.info(getStringFromWasm0(arg0, arg1));
424
430
  },
425
431
  __wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
@@ -491,27 +497,27 @@ function __wbg_get_imports() {
491
497
  __wbg_set_onopen_db452f4233e99d7d: function(arg0, arg1) {
492
498
  getObject(arg0).onopen = getObject(arg1);
493
499
  },
494
- __wbg_warn_175986b719b7c712: function(arg0, arg1) {
500
+ __wbg_warn_ef4330b733f81e0a: function(arg0, arg1) {
495
501
  console.warn(getStringFromWasm0(arg0, arg1));
496
502
  },
497
503
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
498
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
499
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
504
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
505
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44);
500
506
  return addHeapObject(ret);
501
507
  },
502
508
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
503
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
504
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_1);
509
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
510
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44_1);
505
511
  return addHeapObject(ret);
506
512
  },
507
513
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
508
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
509
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_2);
514
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
515
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44_2);
510
516
  return addHeapObject(ret);
511
517
  },
512
518
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
513
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
514
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44);
519
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
520
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
515
521
  return addHeapObject(ret);
516
522
  },
517
523
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -548,20 +554,20 @@ function __wbg_get_imports() {
548
554
  };
549
555
  }
550
556
 
551
- function __wasm_bindgen_func_elem_44(arg0, arg1) {
552
- wasm.__wasm_bindgen_func_elem_44(arg0, arg1);
557
+ function __wasm_bindgen_func_elem_42(arg0, arg1) {
558
+ wasm.__wasm_bindgen_func_elem_42(arg0, arg1);
553
559
  }
554
560
 
555
- function __wasm_bindgen_func_elem_42(arg0, arg1, arg2) {
556
- wasm.__wasm_bindgen_func_elem_42(arg0, arg1, addHeapObject(arg2));
561
+ function __wasm_bindgen_func_elem_44(arg0, arg1, arg2) {
562
+ wasm.__wasm_bindgen_func_elem_44(arg0, arg1, addHeapObject(arg2));
557
563
  }
558
564
 
559
- function __wasm_bindgen_func_elem_42_1(arg0, arg1, arg2) {
560
- wasm.__wasm_bindgen_func_elem_42_1(arg0, arg1, addHeapObject(arg2));
565
+ function __wasm_bindgen_func_elem_44_1(arg0, arg1, arg2) {
566
+ wasm.__wasm_bindgen_func_elem_44_1(arg0, arg1, addHeapObject(arg2));
561
567
  }
562
568
 
563
- function __wasm_bindgen_func_elem_42_2(arg0, arg1, arg2) {
564
- wasm.__wasm_bindgen_func_elem_42_2(arg0, arg1, addHeapObject(arg2));
569
+ function __wasm_bindgen_func_elem_44_2(arg0, arg1, arg2) {
570
+ wasm.__wasm_bindgen_func_elem_44_2(arg0, arg1, addHeapObject(arg2));
565
571
  }
566
572
 
567
573
 
Binary file