@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
package/dist/testUtil/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
SessionStateGraph,
|
|
6
6
|
defaultClientTransportOptions,
|
|
7
7
|
defaultTransportOptions
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-CC7RN7GI.js";
|
|
8
|
+
} from "../chunk-JPNTEDEA.js";
|
|
10
9
|
import {
|
|
11
10
|
currentProtocolVersion,
|
|
12
11
|
getTracer
|
|
13
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-6KQ3NG67.js";
|
|
13
|
+
import "../chunk-CC7RN7GI.js";
|
|
14
14
|
|
|
15
15
|
// testUtil/index.ts
|
|
16
16
|
import NodeWs, { WebSocketServer } from "ws";
|
|
@@ -678,7 +678,7 @@ function coerceErrorString(err) {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
// package.json
|
|
681
|
-
var version = "0.212.
|
|
681
|
+
var version = "0.212.2";
|
|
682
682
|
|
|
683
683
|
// tracing/index.ts
|
|
684
684
|
function getPropagationContext(ctx) {
|
|
@@ -2080,7 +2080,21 @@ var ClientTransport = class extends Transport {
|
|
|
2080
2080
|
async sendHandshake(session) {
|
|
2081
2081
|
let metadata = void 0;
|
|
2082
2082
|
if (this.handshakeExtensions) {
|
|
2083
|
-
|
|
2083
|
+
try {
|
|
2084
|
+
metadata = await this.handshakeExtensions.construct();
|
|
2085
|
+
} catch (err) {
|
|
2086
|
+
const errStr = coerceErrorString(err);
|
|
2087
|
+
this.log?.error(
|
|
2088
|
+
`failed to construct handshake metadata for session to ${session.to}: ${errStr}`,
|
|
2089
|
+
session.loggingMetadata
|
|
2090
|
+
);
|
|
2091
|
+
this.protocolError({
|
|
2092
|
+
type: ProtocolError.HandshakeFailed,
|
|
2093
|
+
message: `failed to construct handshake metadata: ${errStr}`
|
|
2094
|
+
});
|
|
2095
|
+
this.deleteSession(session, { unhealthy: true });
|
|
2096
|
+
return;
|
|
2097
|
+
}
|
|
2084
2098
|
}
|
|
2085
2099
|
if (session._isConsumed) {
|
|
2086
2100
|
return;
|