phirepass-widgets 0.0.67 → 0.0.69
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/dist/cjs/phirepass-sftp-client.cjs.entry.js +1 -1
- package/dist/cjs/phirepass-terminal.cjs.entry.js +1 -1
- package/dist/cjs/{protocol-B06teJpB.js → protocol-BLVQdXGK.js} +60 -32
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/p-kDPemd0e.js +1 -0
- package/dist/components/phirepass-sftp-client.js +1 -1
- package/dist/components/phirepass-terminal.js +4 -4
- package/dist/esm/phirepass-sftp-client.entry.js +1 -1
- package/dist/esm/phirepass-terminal.entry.js +1 -1
- package/dist/esm/{protocol-CH-qUK6p.js → protocol-kDPemd0e.js} +59 -31
- package/dist/phirepass-widgets/{p-d2657a46.entry.js → p-5095e660.entry.js} +5 -5
- package/dist/phirepass-widgets/{p-fe815c76.entry.js → p-91f80e9c.entry.js} +1 -1
- package/dist/phirepass-widgets/p-kDPemd0e.js +1 -0
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/package.json +3 -3
- package/dist/components/p-CH-qUK6p.js +0 -1
- package/dist/phirepass-widgets/p-CH-qUK6p.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-DovZQ7sb.js';
|
|
2
|
-
import { _ as __wbg_init, E as ErrorType, C as Channel, a as ConnectionState, P as ProtocolMessageType } from './protocol-
|
|
2
|
+
import { _ as __wbg_init, E as ErrorType, C as Channel, a as ConnectionState, P as ProtocolMessageType } from './protocol-kDPemd0e.js';
|
|
3
3
|
|
|
4
4
|
const phirepassSftpClientLogoSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIgogICAgc3Ryb2tlPSJyZ2IoNDYsIDE4NCwgMTM4KSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiCiAgICBjbGFzcz0ibHVjaWRlIGx1Y2lkZS10ZXJtaW5hbCB3LTMuNSBoLTMuNSB0ZXh0LXByaW1hcnkiPgogICAgPHBvbHlsaW5lIHBvaW50cz0iNCAxNyAxMCAxMSA0IDUiPjwvcG9seWxpbmU+CiAgICA8bGluZSB4MT0iMTIiIHgyPSIyMCIgeTE9IjE5IiB5Mj0iMTkiPjwvbGluZT4KPC9zdmc+Cg==';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement, h as h$1, H as Host } from './index-DovZQ7sb.js';
|
|
2
|
-
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-
|
|
2
|
+
import { I as InputMode, _ as __wbg_init, C as Channel, a as ConnectionState, P as ProtocolMessageType, E as ErrorType } from './protocol-kDPemd0e.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
@@ -33,9 +33,11 @@ class Channel {
|
|
|
33
33
|
* @param {number} port
|
|
34
34
|
* @param {string | null} [username]
|
|
35
35
|
* @param {string | null} [password]
|
|
36
|
+
* @param {string | null} [visibility]
|
|
37
|
+
* @param {string | null} [scheme]
|
|
36
38
|
* @param {number | null} [msg_id]
|
|
37
39
|
*/
|
|
38
|
-
|
|
40
|
+
create_service(node_id, kind, host, port, username, password, visibility, scheme, msg_id) {
|
|
39
41
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40
42
|
const len0 = WASM_VECTOR_LEN;
|
|
41
43
|
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -46,10 +48,11 @@ class Channel {
|
|
|
46
48
|
var len3 = WASM_VECTOR_LEN;
|
|
47
49
|
var ptr4 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
48
50
|
var len4 = WASM_VECTOR_LEN;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
var ptr5 = isLikeNone(visibility) ? 0 : passStringToWasm0(visibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
52
|
+
var len5 = WASM_VECTOR_LEN;
|
|
53
|
+
var ptr6 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
54
|
+
var len6 = WASM_VECTOR_LEN;
|
|
55
|
+
wasm.channel_create_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);
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
55
58
|
* @param {string} node_id
|
|
@@ -58,11 +61,9 @@ class Channel {
|
|
|
58
61
|
* @param {number} port
|
|
59
62
|
* @param {string | null} [username]
|
|
60
63
|
* @param {string | null} [password]
|
|
61
|
-
* @param {string | null} [visibility]
|
|
62
|
-
* @param {string | null} [scheme]
|
|
63
64
|
* @param {number | null} [msg_id]
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
+
delete_service(node_id, kind, host, port, username, password, msg_id) {
|
|
66
67
|
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
67
68
|
const len0 = WASM_VECTOR_LEN;
|
|
68
69
|
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -73,11 +74,10 @@ class Channel {
|
|
|
73
74
|
var len3 = WASM_VECTOR_LEN;
|
|
74
75
|
var ptr4 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
75
76
|
var len4 = WASM_VECTOR_LEN;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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);
|
|
77
|
+
wasm.channel_delete_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);
|
|
78
|
+
}
|
|
79
|
+
disconnect() {
|
|
80
|
+
wasm.channel_disconnect(this.__wbg_ptr);
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* @returns {boolean}
|
|
@@ -318,6 +318,34 @@ class Channel {
|
|
|
318
318
|
stop_heartbeat() {
|
|
319
319
|
wasm.channel_stop_heartbeat(this.__wbg_ptr);
|
|
320
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* @param {string} node_id
|
|
323
|
+
* @param {string} kind
|
|
324
|
+
* @param {string} host
|
|
325
|
+
* @param {number} port
|
|
326
|
+
* @param {string | null} [username]
|
|
327
|
+
* @param {string | null} [password]
|
|
328
|
+
* @param {string | null} [visibility]
|
|
329
|
+
* @param {string | null} [scheme]
|
|
330
|
+
* @param {number | null} [msg_id]
|
|
331
|
+
*/
|
|
332
|
+
update_service(node_id, kind, host, port, username, password, visibility, scheme, msg_id) {
|
|
333
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
334
|
+
const len0 = WASM_VECTOR_LEN;
|
|
335
|
+
const ptr1 = passStringToWasm0(kind, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
336
|
+
const len1 = WASM_VECTOR_LEN;
|
|
337
|
+
const ptr2 = passStringToWasm0(host, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
338
|
+
const len2 = WASM_VECTOR_LEN;
|
|
339
|
+
var ptr3 = isLikeNone(username) ? 0 : passStringToWasm0(username, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
340
|
+
var len3 = WASM_VECTOR_LEN;
|
|
341
|
+
var ptr4 = isLikeNone(password) ? 0 : passStringToWasm0(password, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
342
|
+
var len4 = WASM_VECTOR_LEN;
|
|
343
|
+
var ptr5 = isLikeNone(visibility) ? 0 : passStringToWasm0(visibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
344
|
+
var len5 = WASM_VECTOR_LEN;
|
|
345
|
+
var ptr6 = isLikeNone(scheme) ? 0 : passStringToWasm0(scheme, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
346
|
+
var len6 = WASM_VECTOR_LEN;
|
|
347
|
+
wasm.channel_update_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);
|
|
348
|
+
}
|
|
321
349
|
}
|
|
322
350
|
if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
|
|
323
351
|
|
|
@@ -397,7 +425,7 @@ function __wbg_get_imports() {
|
|
|
397
425
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
398
426
|
return addHeapObject(ret);
|
|
399
427
|
}, arguments); },
|
|
400
|
-
|
|
428
|
+
__wbg_info_29ff7ce08299fff3: function(arg0, arg1) {
|
|
401
429
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
402
430
|
},
|
|
403
431
|
__wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
|
|
@@ -469,27 +497,27 @@ function __wbg_get_imports() {
|
|
|
469
497
|
__wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
|
|
470
498
|
getObject(arg0).onopen = getObject(arg1);
|
|
471
499
|
},
|
|
472
|
-
|
|
500
|
+
__wbg_warn_08a33546b00b7ae5: function(arg0, arg1) {
|
|
473
501
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
474
502
|
},
|
|
475
503
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
476
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
477
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
504
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
505
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42);
|
|
478
506
|
return addHeapObject(ret);
|
|
479
507
|
},
|
|
480
508
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
481
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
482
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
509
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
510
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_1);
|
|
483
511
|
return addHeapObject(ret);
|
|
484
512
|
},
|
|
485
513
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
486
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
487
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
514
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
515
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_42_2);
|
|
488
516
|
return addHeapObject(ret);
|
|
489
517
|
},
|
|
490
518
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
491
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
492
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
519
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
520
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_45);
|
|
493
521
|
return addHeapObject(ret);
|
|
494
522
|
},
|
|
495
523
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -526,20 +554,20 @@ function __wbg_get_imports() {
|
|
|
526
554
|
};
|
|
527
555
|
}
|
|
528
556
|
|
|
529
|
-
function
|
|
530
|
-
wasm.
|
|
557
|
+
function __wasm_bindgen_func_elem_45(arg0, arg1) {
|
|
558
|
+
wasm.__wasm_bindgen_func_elem_45(arg0, arg1);
|
|
531
559
|
}
|
|
532
560
|
|
|
533
|
-
function
|
|
534
|
-
wasm.
|
|
561
|
+
function __wasm_bindgen_func_elem_42(arg0, arg1, arg2) {
|
|
562
|
+
wasm.__wasm_bindgen_func_elem_42(arg0, arg1, addHeapObject(arg2));
|
|
535
563
|
}
|
|
536
564
|
|
|
537
|
-
function
|
|
538
|
-
wasm.
|
|
565
|
+
function __wasm_bindgen_func_elem_42_1(arg0, arg1, arg2) {
|
|
566
|
+
wasm.__wasm_bindgen_func_elem_42_1(arg0, arg1, addHeapObject(arg2));
|
|
539
567
|
}
|
|
540
568
|
|
|
541
|
-
function
|
|
542
|
-
wasm.
|
|
569
|
+
function __wasm_bindgen_func_elem_42_2(arg0, arg1, arg2) {
|
|
570
|
+
wasm.__wasm_bindgen_func_elem_42_2(arg0, arg1, addHeapObject(arg2));
|
|
543
571
|
}
|
|
544
572
|
|
|
545
573
|
|