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.
- package/coverage/html/index.html +1 -1
- package/dist/hypha-rpc-websocket.js +7 -6
- package/dist/hypha-rpc-websocket.js.map +1 -1
- package/dist/hypha-rpc-websocket.min.js +1 -1
- package/dist/hypha-rpc-websocket.min.js.map +1 -1
- package/dist/hypha-rpc-websocket.min.mjs +1 -1
- package/dist/hypha-rpc-websocket.min.mjs.map +1 -1
- package/dist/hypha-rpc-websocket.mjs +7 -6
- package/dist/hypha-rpc-websocket.mjs.map +1 -1
- package/package.json +1 -1
- package/src/websocket-client.js +7 -6
package/coverage/html/index.html
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
10438
|
-
|
|
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
|
-
|
|
10441
|
-
e.message.includes("timeout")
|
|
10442
|
+
errStr.includes("TimeoutError") || errStr.includes("timeout")
|
|
10442
10443
|
) {
|
|
10443
10444
|
console.error(
|
|
10444
|
-
`Connection timeout during reconnection: ${
|
|
10445
|
+
`Connection timeout during reconnection: ${errStr}`,
|
|
10445
10446
|
);
|
|
10446
10447
|
} else {
|
|
10447
10448
|
console.error(
|
|
10448
|
-
`Unexpected error during reconnection: ${
|
|
10449
|
+
`Unexpected error during reconnection: ${errStr}`,
|
|
10449
10450
|
);
|
|
10450
10451
|
}
|
|
10451
10452
|
|