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