phirepass-channel 0.1.287 → 0.1.289
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 +5 -5
- package/phirepass-channel.js +20 -17
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export class Channel {
|
|
|
36
36
|
send_ssh_tunnel_data(node_id: string, sid: number, data: string): void;
|
|
37
37
|
start_heartbeat(interval_as_millis: number): void;
|
|
38
38
|
stop_heartbeat(): void;
|
|
39
|
-
update_service(node_id: string,
|
|
39
|
+
update_service(node_id: string, service_id: string, kind: string, name: string | null | undefined, host: string, port: number, username?: string | null, password?: string | null, visibility?: string | null, scheme?: string | null, msg_id?: number | null): void;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export enum ErrorType {
|
|
@@ -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_55: (a: number, b: number, c: number) => void;
|
|
92
|
+
readonly __wasm_bindgen_func_elem_55_1: (a: number, b: number, c: number) => void;
|
|
93
|
+
readonly __wasm_bindgen_func_elem_55_2: (a: number, b: number, c: number) => void;
|
|
94
|
+
readonly __wasm_bindgen_func_elem_59: (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
|
@@ -319,7 +319,7 @@ export class Channel {
|
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
321
|
* @param {string} node_id
|
|
322
|
-
* @param {string}
|
|
322
|
+
* @param {string} service_id
|
|
323
323
|
* @param {string} kind
|
|
324
324
|
* @param {string | null | undefined} name
|
|
325
325
|
* @param {string} host
|
|
@@ -330,10 +330,10 @@ export class Channel {
|
|
|
330
330
|
* @param {string | null} [scheme]
|
|
331
331
|
* @param {number | null} [msg_id]
|
|
332
332
|
*/
|
|
333
|
-
update_service(node_id,
|
|
333
|
+
update_service(node_id, service_id, kind, name, host, port, username, password, visibility, scheme, msg_id) {
|
|
334
334
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
335
335
|
const len0 = WASM_VECTOR_LEN;
|
|
336
|
-
const ptr1 = passStringToWasm0(
|
|
336
|
+
const ptr1 = passStringToWasm0(service_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
337
337
|
const len1 = WASM_VECTOR_LEN;
|
|
338
338
|
const ptr2 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
339
339
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -454,11 +454,14 @@ function __wbg_get_imports() {
|
|
|
454
454
|
const ret = Array.from(getObject(arg0));
|
|
455
455
|
return addHeapObject(ret);
|
|
456
456
|
},
|
|
457
|
+
__wbg_getRandomValues_ceb34d8ffce7e87f: function() { return handleError(function (arg0, arg1) {
|
|
458
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
459
|
+
}, arguments); },
|
|
457
460
|
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
458
461
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
459
462
|
return addHeapObject(ret);
|
|
460
463
|
}, arguments); },
|
|
461
|
-
|
|
464
|
+
__wbg_info_9701b8549a014e2e: function(arg0, arg1) {
|
|
462
465
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
463
466
|
},
|
|
464
467
|
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
@@ -530,27 +533,27 @@ function __wbg_get_imports() {
|
|
|
530
533
|
__wbg_set_onopen_4f65470ae522a61a: function(arg0, arg1) {
|
|
531
534
|
getObject(arg0).onopen = getObject(arg1);
|
|
532
535
|
},
|
|
533
|
-
|
|
536
|
+
__wbg_warn_7c1fdd3aeedfd608: function(arg0, arg1) {
|
|
534
537
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
535
538
|
},
|
|
536
539
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
537
540
|
// 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,
|
|
541
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_55);
|
|
539
542
|
return addHeapObject(ret);
|
|
540
543
|
},
|
|
541
544
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
542
545
|
// 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,
|
|
546
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_55_1);
|
|
544
547
|
return addHeapObject(ret);
|
|
545
548
|
},
|
|
546
549
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
547
550
|
// 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,
|
|
551
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_55_2);
|
|
549
552
|
return addHeapObject(ret);
|
|
550
553
|
},
|
|
551
554
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
552
555
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
553
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
556
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_59);
|
|
554
557
|
return addHeapObject(ret);
|
|
555
558
|
},
|
|
556
559
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -587,20 +590,20 @@ function __wbg_get_imports() {
|
|
|
587
590
|
};
|
|
588
591
|
}
|
|
589
592
|
|
|
590
|
-
function
|
|
591
|
-
wasm.
|
|
593
|
+
function __wasm_bindgen_func_elem_59(arg0, arg1) {
|
|
594
|
+
wasm.__wasm_bindgen_func_elem_59(arg0, arg1);
|
|
592
595
|
}
|
|
593
596
|
|
|
594
|
-
function
|
|
595
|
-
wasm.
|
|
597
|
+
function __wasm_bindgen_func_elem_55(arg0, arg1, arg2) {
|
|
598
|
+
wasm.__wasm_bindgen_func_elem_55(arg0, arg1, addHeapObject(arg2));
|
|
596
599
|
}
|
|
597
600
|
|
|
598
|
-
function
|
|
599
|
-
wasm.
|
|
601
|
+
function __wasm_bindgen_func_elem_55_1(arg0, arg1, arg2) {
|
|
602
|
+
wasm.__wasm_bindgen_func_elem_55_1(arg0, arg1, addHeapObject(arg2));
|
|
600
603
|
}
|
|
601
604
|
|
|
602
|
-
function
|
|
603
|
-
wasm.
|
|
605
|
+
function __wasm_bindgen_func_elem_55_2(arg0, arg1, arg2) {
|
|
606
|
+
wasm.__wasm_bindgen_func_elem_55_2(arg0, arg1, addHeapObject(arg2));
|
|
604
607
|
}
|
|
605
608
|
|
|
606
609
|
|
|
Binary file
|