hypha-rpc 0.21.22 → 0.21.23

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.
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2026-02-25T19:07:57.766Z
89
+ at 2026-02-25T21:10:08.648Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -10434,18 +10434,19 @@ class WebsocketRPCConnection {
10434
10434
  }
10435
10435
 
10436
10436
  // Log specific error types for better debugging
10437
- if (e.name === "NetworkError" || e.message.includes("network")) {
10438
- console.error(`Network error during reconnection: ${e.message}`);
10437
+ // Convert to string first to safely handle non-standard error objects
10438
+ const errStr = `${e}`;
10439
+ if (errStr.includes("NetworkError") || errStr.includes("network")) {
10440
+ console.error(`Network error during reconnection: ${errStr}`);
10439
10441
  } else if (
10440
- e.name === "TimeoutError" ||
10441
- e.message.includes("timeout")
10442
+ errStr.includes("TimeoutError") || errStr.includes("timeout")
10442
10443
  ) {
10443
10444
  console.error(
10444
- `Connection timeout during reconnection: ${e.message}`,
10445
+ `Connection timeout during reconnection: ${errStr}`,
10445
10446
  );
10446
10447
  } else {
10447
10448
  console.error(
10448
- `Unexpected error during reconnection: ${e.message}`,
10449
+ `Unexpected error during reconnection: ${errStr}`,
10449
10450
  );
10450
10451
  }
10451
10452