phirepass-channel 0.1.280 → 0.1.282

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.280",
4
+ "version": "0.1.282",
5
5
  "license": "SEE LICENSE IN ../LICENCE",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,8 +18,8 @@ export class Channel {
18
18
  on_connection_open(cb?: Function | null): void;
19
19
  on_protocol_message(cb?: Function | null): void;
20
20
  on_protocol_message_type(frame_type: string, cb?: Function | null): void;
21
- open_sftp_tunnel(node_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
22
- open_ssh_tunnel(node_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
21
+ open_sftp_tunnel(node_id: string, service_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
22
+ open_ssh_tunnel(node_id: string, service_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
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
@@ -73,8 +73,8 @@ export interface InitOutput {
73
73
  readonly channel_on_connection_open: (a: number, b: number) => void;
74
74
  readonly channel_on_protocol_message: (a: number, b: number) => void;
75
75
  readonly channel_on_protocol_message_type: (a: number, b: number, c: number, d: number) => void;
76
- readonly channel_open_sftp_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
77
- readonly channel_open_ssh_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
76
+ readonly channel_open_sftp_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
77
+ readonly channel_open_ssh_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
78
78
  readonly channel_send_sftp_delete: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
79
79
  readonly channel_send_sftp_download_ack: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
80
80
  readonly channel_send_sftp_download_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
@@ -91,7 +91,7 @@ export interface InitOutput {
91
91
  readonly __wasm_bindgen_func_elem_42: (a: number, b: number, c: number) => void;
92
92
  readonly __wasm_bindgen_func_elem_42_1: (a: number, b: number, c: number) => void;
93
93
  readonly __wasm_bindgen_func_elem_42_2: (a: number, b: number, c: number) => void;
94
- readonly __wasm_bindgen_func_elem_46: (a: number, b: number) => void;
94
+ readonly __wasm_bindgen_func_elem_44: (a: number, b: number) => void;
95
95
  readonly __wbindgen_export: (a: number, b: number) => number;
96
96
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
97
97
  readonly __wbindgen_export3: (a: number) => void;
@@ -144,33 +144,39 @@ export class Channel {
144
144
  }
145
145
  /**
146
146
  * @param {string} node_id
147
+ * @param {string} service_id
147
148
  * @param {string | null} [username]
148
149
  * @param {string | null} [password]
149
150
  * @param {number | null} [msg_id]
150
151
  */
151
- open_sftp_tunnel(node_id, username, password, msg_id) {
152
+ open_sftp_tunnel(node_id, service_id, username, password, msg_id) {
152
153
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
153
154
  const len0 = WASM_VECTOR_LEN;
154
- var ptr1 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
155
- var len1 = WASM_VECTOR_LEN;
156
- var ptr2 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
155
+ const ptr1 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
156
+ const len1 = WASM_VECTOR_LEN;
157
+ var ptr2 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
157
158
  var len2 = WASM_VECTOR_LEN;
158
- wasm.channel_open_sftp_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
159
+ var ptr3 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
160
+ var len3 = WASM_VECTOR_LEN;
161
+ wasm.channel_open_sftp_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
159
162
  }
160
163
  /**
161
164
  * @param {string} node_id
165
+ * @param {string} service_id
162
166
  * @param {string | null} [username]
163
167
  * @param {string | null} [password]
164
168
  * @param {number | null} [msg_id]
165
169
  */
166
- open_ssh_tunnel(node_id, username, password, msg_id) {
170
+ open_ssh_tunnel(node_id, service_id, username, password, msg_id) {
167
171
  const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
168
172
  const len0 = WASM_VECTOR_LEN;
169
- var ptr1 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
170
- var len1 = WASM_VECTOR_LEN;
171
- var ptr2 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
173
+ const ptr1 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
174
+ const len1 = WASM_VECTOR_LEN;
175
+ var ptr2 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
172
176
  var len2 = WASM_VECTOR_LEN;
173
- wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
177
+ var ptr3 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
178
+ var len3 = WASM_VECTOR_LEN;
179
+ wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
174
180
  }
175
181
  /**
176
182
  * @param {string} node_id
@@ -452,7 +458,7 @@ function __wbg_get_imports() {
452
458
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
453
459
  return addHeapObject(ret);
454
460
  }, arguments); },
455
- __wbg_info_2f2b0f083e705d41: function(arg0, arg1) {
461
+ __wbg_info_a035e9398ce057dc: function(arg0, arg1) {
456
462
  console.info(getStringFromWasm0(arg0, arg1));
457
463
  },
458
464
  __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
@@ -524,7 +530,7 @@ function __wbg_get_imports() {
524
530
  __wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
525
531
  getObject(arg0).onopen = getObject(arg1);
526
532
  },
527
- __wbg_warn_7b140f9c52075c0d: function(arg0, arg1) {
533
+ __wbg_warn_1087e5a6742be100: function(arg0, arg1) {
528
534
  console.warn(getStringFromWasm0(arg0, arg1));
529
535
  },
530
536
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
@@ -543,8 +549,8 @@ function __wbg_get_imports() {
543
549
  return addHeapObject(ret);
544
550
  },
545
551
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
546
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
547
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_46);
552
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
553
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44);
548
554
  return addHeapObject(ret);
549
555
  },
550
556
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -581,8 +587,8 @@ function __wbg_get_imports() {
581
587
  };
582
588
  }
583
589
 
584
- function __wasm_bindgen_func_elem_46(arg0, arg1) {
585
- wasm.__wasm_bindgen_func_elem_46(arg0, arg1);
590
+ function __wasm_bindgen_func_elem_44(arg0, arg1) {
591
+ wasm.__wasm_bindgen_func_elem_44(arg0, arg1);
586
592
  }
587
593
 
588
594
  function __wasm_bindgen_func_elem_42(arg0, arg1, arg2) {
Binary file