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
|
@@ -503,6 +503,7 @@ const PhirepassTerminal = class {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
handle_error(error) {
|
|
506
|
+
console.log('Handling protocol error message:', error);
|
|
506
507
|
switch (error.kind) {
|
|
507
508
|
case protocol.ErrorType.Generic:
|
|
508
509
|
case protocol.ErrorType.Authentication:
|
|
@@ -512,8 +513,9 @@ const PhirepassTerminal = class {
|
|
|
512
513
|
this.usernameBuffer = "";
|
|
513
514
|
this.passwordBuffer = "";
|
|
514
515
|
break;
|
|
515
|
-
case protocol.ErrorType.RequiresUsername:
|
|
516
516
|
case protocol.ErrorType.RequiresUsernamePassword:
|
|
517
|
+
console.log('Server requires both username and password. Prompting for username first.');
|
|
518
|
+
case protocol.ErrorType.RequiresUsername:
|
|
517
519
|
this.terminal.reset();
|
|
518
520
|
this.inputMode = protocol.InputMode.Username;
|
|
519
521
|
this.usernameBuffer = "";
|
|
@@ -694,7 +696,7 @@ const PhirepassTerminal = class {
|
|
|
694
696
|
this.usernameBuffer = "";
|
|
695
697
|
}
|
|
696
698
|
render() {
|
|
697
|
-
return (index.h(index.Host, { key: '
|
|
699
|
+
return (index.h(index.Host, { key: '35e5c0bae22383759a360fc3b596c97f5056f8a0' }, index.h("div", { key: '3e0f91502f089cad4bd8fa1dc98e650dae5af358', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
698
700
|
}
|
|
699
701
|
static get watchers() { return {
|
|
700
702
|
"nodeId": [{
|
|
@@ -291,6 +291,7 @@ export class PhirepassTerminal {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
handle_error(error) {
|
|
294
|
+
console.log('Handling protocol error message:', error);
|
|
294
295
|
switch (error.kind) {
|
|
295
296
|
case ProtocolMessageError.Generic:
|
|
296
297
|
case ProtocolMessageError.Authentication:
|
|
@@ -300,8 +301,9 @@ export class PhirepassTerminal {
|
|
|
300
301
|
this.usernameBuffer = "";
|
|
301
302
|
this.passwordBuffer = "";
|
|
302
303
|
break;
|
|
303
|
-
case ProtocolMessageError.RequiresUsername:
|
|
304
304
|
case ProtocolMessageError.RequiresUsernamePassword:
|
|
305
|
+
console.log('Server requires both username and password. Prompting for username first.');
|
|
306
|
+
case ProtocolMessageError.RequiresUsername:
|
|
305
307
|
this.terminal.reset();
|
|
306
308
|
this.inputMode = InputMode.Username;
|
|
307
309
|
this.usernameBuffer = "";
|
|
@@ -482,7 +484,7 @@ export class PhirepassTerminal {
|
|
|
482
484
|
this.usernameBuffer = "";
|
|
483
485
|
}
|
|
484
486
|
render() {
|
|
485
|
-
return (h(Host, { key: '
|
|
487
|
+
return (h(Host, { key: '35e5c0bae22383759a360fc3b596c97f5056f8a0' }, h("div", { key: '3e0f91502f089cad4bd8fa1dc98e650dae5af358', id: "ccc", ref: el => (this.containerEl = el) })));
|
|
486
488
|
}
|
|
487
489
|
static get is() { return "phirepass-terminal"; }
|
|
488
490
|
static get encapsulation() { return "shadow"; }
|