phirepass-channel 0.1.280 → 0.1.281
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 +8 -8
- package/phirepass-channel.js +34 -28
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -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
|
|
22
|
-
open_ssh_tunnel(node_id: string, username
|
|
21
|
+
open_sftp_tunnel(node_id: string, username: string | null | undefined, password: string | null | undefined, msg_id: number | null | undefined, service_id: string): void;
|
|
22
|
+
open_ssh_tunnel(node_id: string, username: string | null | undefined, password: string | null | undefined, msg_id: number | null | undefined, service_id: string): 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;
|
|
@@ -88,10 +88,10 @@ export interface InitOutput {
|
|
|
88
88
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
89
89
|
readonly channel_update_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, r: number, s: number, t: number, u: number) => void;
|
|
90
90
|
readonly version: (a: number) => void;
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
94
|
-
readonly
|
|
91
|
+
readonly __wasm_bindgen_func_elem_44: (a: number, b: number, c: number) => void;
|
|
92
|
+
readonly __wasm_bindgen_func_elem_44_1: (a: number, b: number, c: number) => void;
|
|
93
|
+
readonly __wasm_bindgen_func_elem_44_2: (a: number, b: number, c: number) => void;
|
|
94
|
+
readonly __wasm_bindgen_func_elem_42: (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;
|
package/phirepass-channel.js
CHANGED
|
@@ -144,33 +144,39 @@ export class Channel {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* @param {string} node_id
|
|
147
|
-
* @param {string | null}
|
|
148
|
-
* @param {string | null}
|
|
149
|
-
* @param {number | null}
|
|
147
|
+
* @param {string | null | undefined} username
|
|
148
|
+
* @param {string | null | undefined} password
|
|
149
|
+
* @param {number | null | undefined} msg_id
|
|
150
|
+
* @param {string} service_id
|
|
150
151
|
*/
|
|
151
|
-
open_sftp_tunnel(node_id, username, password, msg_id) {
|
|
152
|
+
open_sftp_tunnel(node_id, username, password, msg_id, service_id) {
|
|
152
153
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
153
154
|
const len0 = WASM_VECTOR_LEN;
|
|
154
155
|
var ptr1 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
155
156
|
var len1 = WASM_VECTOR_LEN;
|
|
156
157
|
var ptr2 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
157
158
|
var len2 = WASM_VECTOR_LEN;
|
|
158
|
-
|
|
159
|
+
const ptr3 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
160
|
+
const len3 = WASM_VECTOR_LEN;
|
|
161
|
+
wasm.channel_open_sftp_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0, ptr3, len3);
|
|
159
162
|
}
|
|
160
163
|
/**
|
|
161
164
|
* @param {string} node_id
|
|
162
|
-
* @param {string | null}
|
|
163
|
-
* @param {string | null}
|
|
164
|
-
* @param {number | null}
|
|
165
|
+
* @param {string | null | undefined} username
|
|
166
|
+
* @param {string | null | undefined} password
|
|
167
|
+
* @param {number | null | undefined} msg_id
|
|
168
|
+
* @param {string} service_id
|
|
165
169
|
*/
|
|
166
|
-
open_ssh_tunnel(node_id, username, password, msg_id) {
|
|
170
|
+
open_ssh_tunnel(node_id, username, password, msg_id, service_id) {
|
|
167
171
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
168
172
|
const len0 = WASM_VECTOR_LEN;
|
|
169
173
|
var ptr1 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
170
174
|
var len1 = WASM_VECTOR_LEN;
|
|
171
175
|
var ptr2 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
172
176
|
var len2 = WASM_VECTOR_LEN;
|
|
173
|
-
|
|
177
|
+
const ptr3 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
178
|
+
const len3 = WASM_VECTOR_LEN;
|
|
179
|
+
wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0, ptr3, len3);
|
|
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
|
-
|
|
461
|
+
__wbg_info_44b30285408a1889: function(arg0, arg1) {
|
|
456
462
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
457
463
|
},
|
|
458
464
|
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
@@ -524,27 +530,27 @@ function __wbg_get_imports() {
|
|
|
524
530
|
__wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
|
|
525
531
|
getObject(arg0).onopen = getObject(arg1);
|
|
526
532
|
},
|
|
527
|
-
|
|
533
|
+
__wbg_warn_9f049c9dbec481ea: function(arg0, arg1) {
|
|
528
534
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
529
535
|
},
|
|
530
536
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
531
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
532
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
537
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
538
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44);
|
|
533
539
|
return addHeapObject(ret);
|
|
534
540
|
},
|
|
535
541
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
536
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
537
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
542
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
543
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44_1);
|
|
538
544
|
return addHeapObject(ret);
|
|
539
545
|
},
|
|
540
546
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
541
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
542
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
547
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
548
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_44_2);
|
|
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:
|
|
547
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
552
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
553
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
|
|
548
554
|
return addHeapObject(ret);
|
|
549
555
|
},
|
|
550
556
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -581,20 +587,20 @@ function __wbg_get_imports() {
|
|
|
581
587
|
};
|
|
582
588
|
}
|
|
583
589
|
|
|
584
|
-
function
|
|
585
|
-
wasm.
|
|
590
|
+
function __wasm_bindgen_func_elem_42(arg0, arg1) {
|
|
591
|
+
wasm.__wasm_bindgen_func_elem_42(arg0, arg1);
|
|
586
592
|
}
|
|
587
593
|
|
|
588
|
-
function
|
|
589
|
-
wasm.
|
|
594
|
+
function __wasm_bindgen_func_elem_44(arg0, arg1, arg2) {
|
|
595
|
+
wasm.__wasm_bindgen_func_elem_44(arg0, arg1, addHeapObject(arg2));
|
|
590
596
|
}
|
|
591
597
|
|
|
592
|
-
function
|
|
593
|
-
wasm.
|
|
598
|
+
function __wasm_bindgen_func_elem_44_1(arg0, arg1, arg2) {
|
|
599
|
+
wasm.__wasm_bindgen_func_elem_44_1(arg0, arg1, addHeapObject(arg2));
|
|
594
600
|
}
|
|
595
601
|
|
|
596
|
-
function
|
|
597
|
-
wasm.
|
|
602
|
+
function __wasm_bindgen_func_elem_44_2(arg0, arg1, arg2) {
|
|
603
|
+
wasm.__wasm_bindgen_func_elem_44_2(arg0, arg1, addHeapObject(arg2));
|
|
598
604
|
}
|
|
599
605
|
|
|
600
606
|
|
|
Binary file
|