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.
@@ -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: '274fd3f8db8cb3f48bd956ba40d5aacb8ec15e1f' }, h$1("div", { key: '644c586e190c63651d9e521793611a83d372d0ad', id: "ccc", ref: el => (this.containerEl = el) })));
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": [{