@replit/river 0.212.0 → 0.212.2
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/{chunk-S6I4XLQG.js → chunk-6KQ3NG67.js} +3 -2
- package/dist/{chunk-S6I4XLQG.js.map → chunk-6KQ3NG67.js.map} +1 -1
- package/dist/{chunk-FW4QYF33.js → chunk-JPNTEDEA.js} +21 -7
- package/dist/{chunk-FW4QYF33.js.map → chunk-JPNTEDEA.js.map} +1 -1
- package/dist/codec/index.js +2 -2
- package/dist/router/index.cjs +2 -1
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +1 -1
- package/dist/testUtil/index.cjs +16 -2
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.js +3 -3
- package/dist/transport/impls/ws/client.cjs +16 -2
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +1 -1
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +16 -2
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseLogger,
|
|
3
|
-
createLogProxy
|
|
4
|
-
} from "./chunk-CC7RN7GI.js";
|
|
5
1
|
import {
|
|
6
2
|
ControlMessageHandshakeRequestSchema,
|
|
7
3
|
ControlMessageHandshakeResponseSchema,
|
|
@@ -20,7 +16,11 @@ import {
|
|
|
20
16
|
handshakeResponseMessage,
|
|
21
17
|
isAcceptedProtocolVersion,
|
|
22
18
|
isAck
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6KQ3NG67.js";
|
|
20
|
+
import {
|
|
21
|
+
BaseLogger,
|
|
22
|
+
createLogProxy
|
|
23
|
+
} from "./chunk-CC7RN7GI.js";
|
|
24
24
|
|
|
25
25
|
// transport/events.ts
|
|
26
26
|
var ProtocolError = {
|
|
@@ -1753,7 +1753,21 @@ var ClientTransport = class extends Transport {
|
|
|
1753
1753
|
async sendHandshake(session) {
|
|
1754
1754
|
let metadata = void 0;
|
|
1755
1755
|
if (this.handshakeExtensions) {
|
|
1756
|
-
|
|
1756
|
+
try {
|
|
1757
|
+
metadata = await this.handshakeExtensions.construct();
|
|
1758
|
+
} catch (err) {
|
|
1759
|
+
const errStr = coerceErrorString(err);
|
|
1760
|
+
this.log?.error(
|
|
1761
|
+
`failed to construct handshake metadata for session to ${session.to}: ${errStr}`,
|
|
1762
|
+
session.loggingMetadata
|
|
1763
|
+
);
|
|
1764
|
+
this.protocolError({
|
|
1765
|
+
type: ProtocolError.HandshakeFailed,
|
|
1766
|
+
message: `failed to construct handshake metadata: ${errStr}`
|
|
1767
|
+
});
|
|
1768
|
+
this.deleteSession(session, { unhealthy: true });
|
|
1769
|
+
return;
|
|
1770
|
+
}
|
|
1757
1771
|
}
|
|
1758
1772
|
if (session._isConsumed) {
|
|
1759
1773
|
return;
|
|
@@ -2331,4 +2345,4 @@ export {
|
|
|
2331
2345
|
WebSocketConnection,
|
|
2332
2346
|
CodecMessageAdapter
|
|
2333
2347
|
};
|
|
2334
|
-
//# sourceMappingURL=chunk-
|
|
2348
|
+
//# sourceMappingURL=chunk-JPNTEDEA.js.map
|