phirepass-widgets 0.0.101 → 0.0.103
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/loader.cjs.js +1 -1
- package/dist/cjs/phirepass-rdp.cjs.entry.js +1 -1
- package/dist/cjs/phirepass-sftp-client.cjs.entry.js +547 -81
- package/dist/cjs/phirepass-terminal.cjs.entry.js +2 -2
- package/dist/cjs/phirepass-widgets.cjs.js +1 -1
- package/dist/cjs/{protocol-B45sQiET.js → protocol-9IbZ-NTW.js} +155 -59
- package/dist/collection/common/protocol.js +1 -0
- package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.css +342 -2
- package/dist/collection/components/phirepass-sftp-client/phirepass-sftp-client.js +568 -80
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +1 -1
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/p-D4vz9Xu4.js +1 -0
- package/dist/components/phirepass-rdp.js +1 -1
- package/dist/components/phirepass-sftp-client.js +1 -1
- package/dist/components/phirepass-terminal.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/phirepass-rdp.entry.js +1 -1
- package/dist/esm/phirepass-sftp-client.entry.js +547 -81
- package/dist/esm/phirepass-terminal.entry.js +2 -2
- package/dist/esm/phirepass-widgets.js +1 -1
- package/dist/esm/{protocol-DFhjP92A.js → protocol-D4vz9Xu4.js} +154 -58
- package/dist/phirepass-widgets/{p-de23b6db.entry.js → p-471340b8.entry.js} +1 -1
- package/dist/phirepass-widgets/p-D4vz9Xu4.js +1 -0
- package/dist/phirepass-widgets/p-ca67e389.entry.js +1 -0
- package/dist/phirepass-widgets/{p-c4a31b26.entry.js → p-dc4051cc.entry.js} +2 -2
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/dist/types/common/protocol.d.ts +22 -2
- package/dist/types/components/phirepass-sftp-client/phirepass-sftp-client.d.ts +85 -4
- package/package.json +2 -2
- package/dist/components/p-DFhjP92A.js +0 -1
- package/dist/phirepass-widgets/p-0e9afedb.entry.js +0 -1
- package/dist/phirepass-widgets/p-DFhjP92A.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-CbZdPuPQ.js');
|
|
4
|
-
var protocol = require('./protocol-
|
|
4
|
+
var protocol = require('./protocol-9IbZ-NTW.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
@@ -695,7 +695,7 @@ const PhirepassTerminal = class {
|
|
|
695
695
|
this.usernameBuffer = "";
|
|
696
696
|
}
|
|
697
697
|
render() {
|
|
698
|
-
return (index.h(index.Host, { key: '
|
|
698
|
+
return (index.h(index.Host, { key: '6f1e695bbce4fc68bce5de1b871fe2fc440c0d9b' }, index.h("div", { key: '574d4494690232071c35da7d080e0ac0fdb88d24', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
699
699
|
}
|
|
700
700
|
static get watchers() { return {
|
|
701
701
|
"nodeId": [{
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["phirepass-rdp.cjs",[[769,"phirepass-rdp",{"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"username":[1],"password":[1],"destination":[1],"scale":[1],"dynamicResize":[4,"dynamic-resize"],"captureKeyboard":[4,"capture-keyboard"],"clipboard":[4],"serverId":[1,"server-id"],"credentialsPrompt":[32],"statusMessage":[32],"toggleFullscreen":[64],"keyboardLockSupported":[64],"focusDesktop":[64],"sendCtrlAltDel":[64],"sendMetaKey":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-sftp-client.cjs",[[513,"phirepass-sftp-client",{"name":[1],"description":[1],"hideHeader":[4,"hide-header"],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"],"max":[32],"show_login_screen":[32],"show_login_screen_username":[32],"show_error":[32],"error_message":[32],"show_login_screen_password":[32],"show_navigation":[32],"breadcrumbs":[32],"current_dir":[32],"listing":[32],"show_content":[32],"show_loader":[32],"version":[32],"status":[32],"selected_item":[32],"show_upload_modal":[32],"upload_progress":[32],"upload_file_name":[32],"upload_speed":[32],"upload_finished":[32],"show_download_modal":[32],"download_progress":[32],"download_file_name":[32],"download_speed":[32],"download_finished":[32],"show_delete_modal":[32],"delete_file_name":[32],"delete_loading":[32],"delete_is_dir":[32],"delete_recursive":[32],"delete_error":[32],"prompt_kind":[32],"prompt_value":[32],"prompt_error":[32],"prompt_busy":[32],"chmod_target":[32],"chmod_mode":[32],"chmod_error":[32],"chmod_busy":[32],"show_editor":[32],"editor_name":[32],"editor_text":[32],"editor_saved_text":[32],"editor_busy":[32],"editor_error":[32],"editor_confirm_discard":[32],"editor_loaded":[32],"filter":[32],"sort_key":[32],"sort_asc":[32],"maximize":[64],"minimize":[64]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]],["phirepass-terminal.cjs",[[513,"phirepass-terminal",{"terminalOptions":[16],"serverHost":[1,"server-host"],"serverPort":[2,"server-port"],"allowInsecure":[4,"allow-insecure"],"heartbeatInterval":[2,"heartbeat-interval"],"nodeId":[1,"node-id"],"serviceId":[1,"service-id"],"token":[1],"serverId":[1,"server-id"]},null,{"nodeId":[{"onNodeIdChange":0}],"serverId":[{"onServerIdChange":0}]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -205,6 +205,21 @@ class Channel {
|
|
|
205
205
|
var len3 = WASM_VECTOR_LEN;
|
|
206
206
|
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);
|
|
207
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Set permission bits. The agent masks these to `0o7777`.
|
|
210
|
+
* @param {string} node_id
|
|
211
|
+
* @param {number} sid
|
|
212
|
+
* @param {string} path
|
|
213
|
+
* @param {number} permissions
|
|
214
|
+
* @param {number | null} [msg_id]
|
|
215
|
+
*/
|
|
216
|
+
send_sftp_chmod(node_id, sid, path, permissions, msg_id) {
|
|
217
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
218
|
+
const len0 = WASM_VECTOR_LEN;
|
|
219
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
220
|
+
const len1 = WASM_VECTOR_LEN;
|
|
221
|
+
wasm.channel_send_sftp_chmod(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, permissions, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
222
|
+
}
|
|
208
223
|
/**
|
|
209
224
|
* @param {string} node_id
|
|
210
225
|
* @param {number} sid
|
|
@@ -276,6 +291,69 @@ class Channel {
|
|
|
276
291
|
const len1 = WASM_VECTOR_LEN;
|
|
277
292
|
wasm.channel_send_sftp_list_data(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
278
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Create one directory. Parents must exist already, as with `mkdir`.
|
|
296
|
+
* @param {string} node_id
|
|
297
|
+
* @param {number} sid
|
|
298
|
+
* @param {string} path
|
|
299
|
+
* @param {number | null} [msg_id]
|
|
300
|
+
*/
|
|
301
|
+
send_sftp_mkdir(node_id, sid, path, msg_id) {
|
|
302
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
303
|
+
const len0 = WASM_VECTOR_LEN;
|
|
304
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
305
|
+
const len1 = WASM_VECTOR_LEN;
|
|
306
|
+
wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Read a whole file for the in-page editor. Answered with an
|
|
310
|
+
* `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
|
|
311
|
+
* above the agent's editor size limit.
|
|
312
|
+
* @param {string} node_id
|
|
313
|
+
* @param {number} sid
|
|
314
|
+
* @param {string} path
|
|
315
|
+
* @param {number | null} [msg_id]
|
|
316
|
+
*/
|
|
317
|
+
send_sftp_read_file(node_id, sid, path, msg_id) {
|
|
318
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
319
|
+
const len0 = WASM_VECTOR_LEN;
|
|
320
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
321
|
+
const len1 = WASM_VECTOR_LEN;
|
|
322
|
+
wasm.channel_send_sftp_read_file(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Remove a file, a symlink, or a directory. Without `recursive` the remote
|
|
326
|
+
* refuses a directory that still has anything in it.
|
|
327
|
+
* @param {string} node_id
|
|
328
|
+
* @param {number} sid
|
|
329
|
+
* @param {string} path
|
|
330
|
+
* @param {boolean} recursive
|
|
331
|
+
* @param {number | null} [msg_id]
|
|
332
|
+
*/
|
|
333
|
+
send_sftp_remove(node_id, sid, path, recursive, msg_id) {
|
|
334
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
335
|
+
const len0 = WASM_VECTOR_LEN;
|
|
336
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
337
|
+
const len1 = WASM_VECTOR_LEN;
|
|
338
|
+
wasm.channel_send_sftp_remove(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, recursive, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Rename or move. `to` is a full path, so one call covers both.
|
|
342
|
+
* @param {string} node_id
|
|
343
|
+
* @param {number} sid
|
|
344
|
+
* @param {string} from
|
|
345
|
+
* @param {string} to
|
|
346
|
+
* @param {number | null} [msg_id]
|
|
347
|
+
*/
|
|
348
|
+
send_sftp_rename(node_id, sid, from, to, msg_id) {
|
|
349
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
350
|
+
const len0 = WASM_VECTOR_LEN;
|
|
351
|
+
const ptr1 = passStringToWasm0(from, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
352
|
+
const len1 = WASM_VECTOR_LEN;
|
|
353
|
+
const ptr2 = passStringToWasm0(to, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
354
|
+
const len2 = WASM_VECTOR_LEN;
|
|
355
|
+
wasm.channel_send_sftp_rename(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
356
|
+
}
|
|
279
357
|
/**
|
|
280
358
|
* @param {string} node_id
|
|
281
359
|
* @param {number} sid
|
|
@@ -310,6 +388,23 @@ class Channel {
|
|
|
310
388
|
const len2 = WASM_VECTOR_LEN;
|
|
311
389
|
wasm.channel_send_sftp_upload_start(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, ptr2, len2, total_chunks, total_size, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
312
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Write a whole file back, truncating whatever was there.
|
|
393
|
+
* @param {string} node_id
|
|
394
|
+
* @param {number} sid
|
|
395
|
+
* @param {string} path
|
|
396
|
+
* @param {Uint8Array} contents
|
|
397
|
+
* @param {number | null} [msg_id]
|
|
398
|
+
*/
|
|
399
|
+
send_sftp_write_file(node_id, sid, path, contents, msg_id) {
|
|
400
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
401
|
+
const len0 = WASM_VECTOR_LEN;
|
|
402
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
403
|
+
const len1 = WASM_VECTOR_LEN;
|
|
404
|
+
const ptr2 = passArray8ToWasm0(contents, wasm.__wbindgen_export);
|
|
405
|
+
const len2 = WASM_VECTOR_LEN;
|
|
406
|
+
wasm.channel_send_sftp_write_file(this.__wbg_ptr, ptr0, len0, sid, ptr1, len1, ptr2, len2, isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
407
|
+
}
|
|
313
408
|
/**
|
|
314
409
|
* @param {string} node_id
|
|
315
410
|
* @param {number} sid
|
|
@@ -391,7 +486,7 @@ const ErrorType = Object.freeze({
|
|
|
391
486
|
function __wbg_get_imports() {
|
|
392
487
|
const import0 = {
|
|
393
488
|
__proto__: null,
|
|
394
|
-
|
|
489
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
395
490
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
396
491
|
return addHeapObject(ret);
|
|
397
492
|
},
|
|
@@ -402,14 +497,14 @@ function __wbg_get_imports() {
|
|
|
402
497
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
403
498
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
404
499
|
},
|
|
405
|
-
|
|
500
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
406
501
|
const ret = debugString(getObject(arg1));
|
|
407
502
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
408
503
|
const len1 = WASM_VECTOR_LEN;
|
|
409
504
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
410
505
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
411
506
|
},
|
|
412
|
-
|
|
507
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
413
508
|
const obj = getObject(arg1);
|
|
414
509
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
415
510
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -417,50 +512,50 @@ function __wbg_get_imports() {
|
|
|
417
512
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
418
513
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
419
514
|
},
|
|
420
|
-
|
|
515
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
421
516
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
422
517
|
},
|
|
423
|
-
|
|
518
|
+
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
424
519
|
getObject(arg0)._wbg_cb_unref();
|
|
425
520
|
},
|
|
426
|
-
|
|
427
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
428
|
-
return addHeapObject(ret);
|
|
429
|
-
}, arguments); },
|
|
430
|
-
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
521
|
+
__wbg_call_269c5566fbede3eb: function() { return handleError(function (arg0, arg1) {
|
|
431
522
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
432
523
|
return addHeapObject(ret);
|
|
433
524
|
}, arguments); },
|
|
434
|
-
|
|
525
|
+
__wbg_call_6bcf8d3e20937e46: function() { return handleError(function (arg0, arg1, arg2) {
|
|
435
526
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
436
527
|
return addHeapObject(ret);
|
|
437
528
|
}, arguments); },
|
|
529
|
+
__wbg_call_7bbd9cceba9949ad: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
530
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
531
|
+
return addHeapObject(ret);
|
|
532
|
+
}, arguments); },
|
|
438
533
|
__wbg_clearInterval_26ba580547547579: function(arg0) {
|
|
439
534
|
const ret = clearInterval(takeObject(arg0));
|
|
440
535
|
return addHeapObject(ret);
|
|
441
536
|
},
|
|
442
|
-
|
|
537
|
+
__wbg_close_a009f540ff811039: function() { return handleError(function (arg0) {
|
|
443
538
|
getObject(arg0).close();
|
|
444
539
|
}, arguments); },
|
|
445
|
-
|
|
540
|
+
__wbg_data_aa7ba49b34c0d883: function(arg0) {
|
|
446
541
|
const ret = getObject(arg0).data;
|
|
447
542
|
return addHeapObject(ret);
|
|
448
543
|
},
|
|
449
|
-
|
|
544
|
+
__wbg_from_a39669ce566077da: function(arg0) {
|
|
450
545
|
const ret = Array.from(getObject(arg0));
|
|
451
546
|
return addHeapObject(ret);
|
|
452
547
|
},
|
|
453
548
|
__wbg_getRandomValues_a608c4436c19407a: function() { return handleError(function (arg0, arg1) {
|
|
454
549
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
455
550
|
}, arguments); },
|
|
456
|
-
|
|
551
|
+
__wbg_get_989d0a1309644f2b: function() { return handleError(function (arg0, arg1) {
|
|
457
552
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
458
553
|
return addHeapObject(ret);
|
|
459
554
|
}, arguments); },
|
|
460
|
-
|
|
555
|
+
__wbg_info_1ec3bd19a05d875f: function(arg0, arg1) {
|
|
461
556
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
462
557
|
},
|
|
463
|
-
|
|
558
|
+
__wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
|
|
464
559
|
let result;
|
|
465
560
|
try {
|
|
466
561
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -470,104 +565,104 @@ function __wbg_get_imports() {
|
|
|
470
565
|
const ret = result;
|
|
471
566
|
return ret;
|
|
472
567
|
},
|
|
473
|
-
|
|
568
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
474
569
|
const ret = getObject(arg0).length;
|
|
475
570
|
return ret;
|
|
476
571
|
},
|
|
477
|
-
|
|
478
|
-
const ret = new Array();
|
|
479
|
-
return addHeapObject(ret);
|
|
480
|
-
},
|
|
481
|
-
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
572
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
482
573
|
const ret = new Uint8Array(getObject(arg0));
|
|
483
574
|
return addHeapObject(ret);
|
|
484
575
|
},
|
|
485
|
-
|
|
576
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
486
577
|
const ret = new Object();
|
|
487
578
|
return addHeapObject(ret);
|
|
488
579
|
},
|
|
489
|
-
|
|
580
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
581
|
+
const ret = new Array();
|
|
582
|
+
return addHeapObject(ret);
|
|
583
|
+
},
|
|
584
|
+
__wbg_new_with_str_sequence_9ab4875494df9d99: function() { return handleError(function (arg0, arg1, arg2) {
|
|
490
585
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
491
586
|
return addHeapObject(ret);
|
|
492
587
|
}, arguments); },
|
|
493
|
-
|
|
588
|
+
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
494
589
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
495
590
|
},
|
|
496
|
-
|
|
591
|
+
__wbg_push_bfdf956ba476f65b: function(arg0, arg1) {
|
|
497
592
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
498
593
|
return ret;
|
|
499
594
|
},
|
|
500
|
-
|
|
595
|
+
__wbg_readyState_83df235b27cf257f: function(arg0) {
|
|
501
596
|
const ret = getObject(arg0).readyState;
|
|
502
597
|
return ret;
|
|
503
598
|
},
|
|
504
|
-
|
|
599
|
+
__wbg_send_af811d92e7aea5c4: function() { return handleError(function (arg0, arg1, arg2) {
|
|
505
600
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
506
601
|
}, arguments); },
|
|
507
602
|
__wbg_setInterval_cbf1c35c6a692d37: function() { return handleError(function (arg0, arg1) {
|
|
508
603
|
const ret = setInterval(getObject(arg0), arg1);
|
|
509
604
|
return addHeapObject(ret);
|
|
510
605
|
}, arguments); },
|
|
606
|
+
__wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
|
|
607
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
608
|
+
},
|
|
511
609
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
512
610
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
513
611
|
},
|
|
514
|
-
|
|
515
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
516
|
-
},
|
|
517
|
-
__wbg_set_binaryType_b701908a03166a9f: function(arg0, arg1) {
|
|
612
|
+
__wbg_set_binaryType_f88804219cea0f9e: function(arg0, arg1) {
|
|
518
613
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
519
614
|
},
|
|
520
|
-
|
|
615
|
+
__wbg_set_onclose_97aab74a1c2662f7: function(arg0, arg1) {
|
|
521
616
|
getObject(arg0).onclose = getObject(arg1);
|
|
522
617
|
},
|
|
523
|
-
|
|
618
|
+
__wbg_set_onerror_88cb2134dca3aba2: function(arg0, arg1) {
|
|
524
619
|
getObject(arg0).onerror = getObject(arg1);
|
|
525
620
|
},
|
|
526
|
-
|
|
621
|
+
__wbg_set_onmessage_0f0d391465909a45: function(arg0, arg1) {
|
|
527
622
|
getObject(arg0).onmessage = getObject(arg1);
|
|
528
623
|
},
|
|
529
|
-
|
|
624
|
+
__wbg_set_onopen_e91e64af99b7966d: function(arg0, arg1) {
|
|
530
625
|
getObject(arg0).onopen = getObject(arg1);
|
|
531
626
|
},
|
|
532
|
-
|
|
627
|
+
__wbg_warn_496b1176d7c30f44: function(arg0, arg1) {
|
|
533
628
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
534
629
|
},
|
|
535
|
-
|
|
630
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
536
631
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
537
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
632
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_60);
|
|
538
633
|
return addHeapObject(ret);
|
|
539
634
|
},
|
|
540
|
-
|
|
635
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
541
636
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
542
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
637
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_60_37);
|
|
543
638
|
return addHeapObject(ret);
|
|
544
639
|
},
|
|
545
|
-
|
|
640
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
546
641
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
547
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
642
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_60_38);
|
|
548
643
|
return addHeapObject(ret);
|
|
549
644
|
},
|
|
550
|
-
|
|
645
|
+
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
551
646
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 5, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
552
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
647
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_64);
|
|
553
648
|
return addHeapObject(ret);
|
|
554
649
|
},
|
|
555
|
-
|
|
650
|
+
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
556
651
|
// Cast intrinsic for `F64 -> Externref`.
|
|
557
652
|
const ret = arg0;
|
|
558
653
|
return addHeapObject(ret);
|
|
559
654
|
},
|
|
560
|
-
|
|
655
|
+
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
561
656
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
562
657
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
563
658
|
return addHeapObject(ret);
|
|
564
659
|
},
|
|
565
|
-
|
|
660
|
+
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
566
661
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
567
662
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
568
663
|
return addHeapObject(ret);
|
|
569
664
|
},
|
|
570
|
-
|
|
665
|
+
__wbindgen_generic_0000000000000008: function(arg0) {
|
|
571
666
|
// Cast intrinsic for `U64 -> Externref`.
|
|
572
667
|
const ret = BigInt.asUintN(64, arg0);
|
|
573
668
|
return addHeapObject(ret);
|
|
@@ -586,20 +681,20 @@ function __wbg_get_imports() {
|
|
|
586
681
|
};
|
|
587
682
|
}
|
|
588
683
|
|
|
589
|
-
function
|
|
590
|
-
wasm.
|
|
684
|
+
function __wasm_bindgen_func_elem_64(arg0, arg1) {
|
|
685
|
+
wasm.__wasm_bindgen_func_elem_64(arg0, arg1);
|
|
591
686
|
}
|
|
592
687
|
|
|
593
|
-
function
|
|
594
|
-
wasm.
|
|
688
|
+
function __wasm_bindgen_func_elem_60(arg0, arg1, arg2) {
|
|
689
|
+
wasm.__wasm_bindgen_func_elem_60(arg0, arg1, addHeapObject(arg2));
|
|
595
690
|
}
|
|
596
691
|
|
|
597
|
-
function
|
|
598
|
-
wasm.
|
|
692
|
+
function __wasm_bindgen_func_elem_60_37(arg0, arg1, arg2) {
|
|
693
|
+
wasm.__wasm_bindgen_func_elem_60_37(arg0, arg1, addHeapObject(arg2));
|
|
599
694
|
}
|
|
600
695
|
|
|
601
|
-
function
|
|
602
|
-
wasm.
|
|
696
|
+
function __wasm_bindgen_func_elem_60_38(arg0, arg1, arg2) {
|
|
697
|
+
wasm.__wasm_bindgen_func_elem_60_38(arg0, arg1, addHeapObject(arg2));
|
|
603
698
|
}
|
|
604
699
|
|
|
605
700
|
|
|
@@ -903,7 +998,7 @@ async function __wbg_init(module_or_path) {
|
|
|
903
998
|
}
|
|
904
999
|
|
|
905
1000
|
if (module_or_path === undefined) {
|
|
906
|
-
module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-
|
|
1001
|
+
module_or_path = new URL('phirepass-channel_bg.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('protocol-9IbZ-NTW.js', document.baseURI).href)));
|
|
907
1002
|
}
|
|
908
1003
|
const imports = __wbg_get_imports();
|
|
909
1004
|
|
|
@@ -929,6 +1024,7 @@ exports.ProtocolMessageType = void 0;
|
|
|
929
1024
|
ProtocolMessageType["SFTPDownloadChunk"] = "SFTPDownloadChunk";
|
|
930
1025
|
ProtocolMessageType["SFTPUploadStartResponse"] = "SFTPUploadStartResponse";
|
|
931
1026
|
ProtocolMessageType["SFTPUploadChunkAck"] = "SFTPUploadChunkAck";
|
|
1027
|
+
ProtocolMessageType["SFTPOpResult"] = "SFTPOpResult";
|
|
932
1028
|
})(exports.ProtocolMessageType || (exports.ProtocolMessageType = {}));
|
|
933
1029
|
exports.InputMode = void 0;
|
|
934
1030
|
(function (InputMode) {
|
|
@@ -12,6 +12,7 @@ export var ProtocolMessageType;
|
|
|
12
12
|
ProtocolMessageType["SFTPDownloadChunk"] = "SFTPDownloadChunk";
|
|
13
13
|
ProtocolMessageType["SFTPUploadStartResponse"] = "SFTPUploadStartResponse";
|
|
14
14
|
ProtocolMessageType["SFTPUploadChunkAck"] = "SFTPUploadChunkAck";
|
|
15
|
+
ProtocolMessageType["SFTPOpResult"] = "SFTPOpResult";
|
|
15
16
|
})(ProtocolMessageType || (ProtocolMessageType = {}));
|
|
16
17
|
export var InputMode;
|
|
17
18
|
(function (InputMode) {
|