phirepass-widgets 0.0.42 → 0.0.44
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-terminal.cjs.entry.js +4 -2
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +4 -2
- package/dist/components/phirepass-terminal.js +4 -4
- package/dist/esm/phirepass-terminal.entry.js +4 -2
- package/dist/phirepass-widgets/{p-bb70a3bd.entry.js → p-3b52197e.entry.js} +4 -4
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/package.json +1 -1
|
@@ -501,6 +501,7 @@ const PhirepassTerminal = class {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
handle_error(error) {
|
|
504
|
+
console.log('Handling protocol error message:', error);
|
|
504
505
|
switch (error.kind) {
|
|
505
506
|
case ErrorType.Generic:
|
|
506
507
|
case ErrorType.Authentication:
|
|
@@ -510,8 +511,9 @@ const PhirepassTerminal = class {
|
|
|
510
511
|
this.usernameBuffer = "";
|
|
511
512
|
this.passwordBuffer = "";
|
|
512
513
|
break;
|
|
513
|
-
case ErrorType.RequiresUsername:
|
|
514
514
|
case ErrorType.RequiresUsernamePassword:
|
|
515
|
+
console.log('Server requires both username and password. Prompting for username first.');
|
|
516
|
+
case ErrorType.RequiresUsername:
|
|
515
517
|
this.terminal.reset();
|
|
516
518
|
this.inputMode = InputMode.Username;
|
|
517
519
|
this.usernameBuffer = "";
|
|
@@ -692,7 +694,7 @@ const PhirepassTerminal = class {
|
|
|
692
694
|
this.usernameBuffer = "";
|
|
693
695
|
}
|
|
694
696
|
render() {
|
|
695
|
-
return (h$1(Host, { key: '
|
|
697
|
+
return (h$1(Host, { key: '35e5c0bae22383759a360fc3b596c97f5056f8a0' }, h$1("div", { key: '3e0f91502f089cad4bd8fa1dc98e650dae5af358', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
696
698
|
}
|
|
697
699
|
static get watchers() { return {
|
|
698
700
|
"nodeId": [{
|