phirepass-channel 0.1.281 → 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 +1 -1
- package/phirepass-channel.d.ts +6 -6
- package/phirepass-channel.js +38 -38
- 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,
|
|
22
|
-
open_ssh_tunnel(node_id: string,
|
|
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
|
|
@@ -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_42: (a: number, b: number, c: number) => void;
|
|
92
|
+
readonly __wasm_bindgen_func_elem_42_1: (a: number, b: number, c: number) => void;
|
|
93
|
+
readonly __wasm_bindgen_func_elem_42_2: (a: number, b: number, c: 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;
|
package/phirepass-channel.js
CHANGED
|
@@ -144,39 +144,39 @@ export class Channel {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* @param {string} node_id
|
|
147
|
-
* @param {string | null | undefined} username
|
|
148
|
-
* @param {string | null | undefined} password
|
|
149
|
-
* @param {number | null | undefined} msg_id
|
|
150
147
|
* @param {string} service_id
|
|
148
|
+
* @param {string | null} [username]
|
|
149
|
+
* @param {string | null} [password]
|
|
150
|
+
* @param {number | null} [msg_id]
|
|
151
151
|
*/
|
|
152
|
-
open_sftp_tunnel(node_id, username, password, msg_id
|
|
152
|
+
open_sftp_tunnel(node_id, service_id, username, password, msg_id) {
|
|
153
153
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
154
154
|
const len0 = WASM_VECTOR_LEN;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
var ptr2 = isLikeNone(
|
|
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);
|
|
158
158
|
var len2 = WASM_VECTOR_LEN;
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|
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);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* @param {string} node_id
|
|
165
|
-
* @param {string | null | undefined} username
|
|
166
|
-
* @param {string | null | undefined} password
|
|
167
|
-
* @param {number | null | undefined} msg_id
|
|
168
165
|
* @param {string} service_id
|
|
166
|
+
* @param {string | null} [username]
|
|
167
|
+
* @param {string | null} [password]
|
|
168
|
+
* @param {number | null} [msg_id]
|
|
169
169
|
*/
|
|
170
|
-
open_ssh_tunnel(node_id, username, password, msg_id
|
|
170
|
+
open_ssh_tunnel(node_id, service_id, username, password, msg_id) {
|
|
171
171
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
172
172
|
const len0 = WASM_VECTOR_LEN;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var ptr2 = isLikeNone(
|
|
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);
|
|
176
176
|
var len2 = WASM_VECTOR_LEN;
|
|
177
|
-
|
|
178
|
-
|
|
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
|
|
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);
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* @param {string} node_id
|
|
@@ -458,7 +458,7 @@ function __wbg_get_imports() {
|
|
|
458
458
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
459
459
|
return addHeapObject(ret);
|
|
460
460
|
}, arguments); },
|
|
461
|
-
|
|
461
|
+
__wbg_info_a035e9398ce057dc: function(arg0, arg1) {
|
|
462
462
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
463
463
|
},
|
|
464
464
|
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
@@ -530,27 +530,27 @@ function __wbg_get_imports() {
|
|
|
530
530
|
__wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
|
|
531
531
|
getObject(arg0).onopen = getObject(arg1);
|
|
532
532
|
},
|
|
533
|
-
|
|
533
|
+
__wbg_warn_1087e5a6742be100: function(arg0, arg1) {
|
|
534
534
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
535
535
|
},
|
|
536
536
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
537
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
538
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
537
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
538
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
|
|
539
539
|
return addHeapObject(ret);
|
|
540
540
|
},
|
|
541
541
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
542
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
543
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
542
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
543
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_1);
|
|
544
544
|
return addHeapObject(ret);
|
|
545
545
|
},
|
|
546
546
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
547
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
548
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
547
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
548
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_2);
|
|
549
549
|
return addHeapObject(ret);
|
|
550
550
|
},
|
|
551
551
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
552
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
553
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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);
|
|
554
554
|
return addHeapObject(ret);
|
|
555
555
|
},
|
|
556
556
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -587,20 +587,20 @@ function __wbg_get_imports() {
|
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
function
|
|
591
|
-
wasm.
|
|
590
|
+
function __wasm_bindgen_func_elem_44(arg0, arg1) {
|
|
591
|
+
wasm.__wasm_bindgen_func_elem_44(arg0, arg1);
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
function
|
|
595
|
-
wasm.
|
|
594
|
+
function __wasm_bindgen_func_elem_42(arg0, arg1, arg2) {
|
|
595
|
+
wasm.__wasm_bindgen_func_elem_42(arg0, arg1, addHeapObject(arg2));
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
function
|
|
599
|
-
wasm.
|
|
598
|
+
function __wasm_bindgen_func_elem_42_1(arg0, arg1, arg2) {
|
|
599
|
+
wasm.__wasm_bindgen_func_elem_42_1(arg0, arg1, addHeapObject(arg2));
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
function
|
|
603
|
-
wasm.
|
|
602
|
+
function __wasm_bindgen_func_elem_42_2(arg0, arg1, arg2) {
|
|
603
|
+
wasm.__wasm_bindgen_func_elem_42_2(arg0, arg1, addHeapObject(arg2));
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
|
|
Binary file
|