@replit/river 0.216.1 → 0.216.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-62BM2WOT.js → chunk-CH3OPDPY.js} +10 -3
- package/dist/chunk-CH3OPDPY.js.map +1 -0
- package/dist/{chunk-C4EPHIKQ.js → chunk-QFJGMDOX.js} +2 -2
- package/dist/{chunk-C4EPHIKQ.js.map → chunk-QFJGMDOX.js.map} +1 -1
- package/dist/{client-BNc5Pj_4.d.ts → client-CKThx0WA.d.ts} +1 -1
- package/dist/{client-BZUvFL6B.d.cts → client-CNO_SC1d.d.cts} +1 -1
- package/dist/codec/index.js +2 -2
- package/dist/{connection-xxgJHs2o.d.cts → connection-DkWD1Ptu.d.cts} +1 -1
- package/dist/{connection-ou9w2dSY.d.ts → connection-Dngmtp2E.d.ts} +1 -1
- package/dist/protobuf/index.cjs +3 -3
- package/dist/protobuf/index.cjs.map +1 -1
- package/dist/protobuf/index.d.cts +6 -6
- package/dist/protobuf/index.d.ts +6 -6
- package/dist/protobuf/index.js +3 -3
- package/dist/protobuf/index.js.map +1 -1
- package/dist/router/index.cjs +1 -1
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +7 -7
- package/dist/router/index.d.ts +7 -7
- package/dist/router/index.js +1 -1
- package/dist/{server-JdnoVO11.d.cts → server-BrCIPno6.d.cts} +1 -1
- package/dist/{server-BPu7Td80.d.ts → server-CSkUpJcH.d.ts} +1 -1
- package/dist/{services-DpT2yNtt.d.ts → services-BlGhziCQ.d.ts} +2 -2
- package/dist/{services-CjigASqe.d.cts → services-DoCToSxW.d.cts} +2 -2
- package/dist/testUtil/index.cjs +9 -2
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +4 -4
- package/dist/testUtil/index.d.ts +4 -4
- package/dist/testUtil/index.js +2 -2
- package/dist/transport/impls/ws/client.cjs +7 -1
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +3 -3
- package/dist/transport/impls/ws/client.d.ts +3 -3
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +9 -2
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +3 -3
- package/dist/transport/impls/ws/server.d.ts +3 -3
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +9 -2
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -4
- package/dist/transport/index.d.ts +4 -4
- package/dist/transport/index.js +2 -2
- package/dist/{transport-BnU3Zb0Q.d.cts → transport-CxBpuW-Q.d.cts} +9 -8
- package/dist/{transport-B1MUtXL7.d.ts → transport-KOCn1fvT.d.ts} +9 -8
- package/package.json +1 -1
- package/dist/chunk-62BM2WOT.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-
|
|
2
|
-
import { C as ClientTransport } from '../client-
|
|
3
|
-
import { S as ServerTransport } from '../server-
|
|
1
|
+
import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-CxBpuW-Q.cjs';
|
|
2
|
+
import { C as ClientTransport } from '../client-CNO_SC1d.cjs';
|
|
3
|
+
import { S as ServerTransport } from '../server-BrCIPno6.cjs';
|
|
4
4
|
import { T as TransportClientId, e as PartialTransportMessage, O as OpaqueTransportMessage } from '../message-CpXWqmJw.cjs';
|
|
5
5
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
6
|
-
import { B as BaseErrorSchemaType, s as Readable, a1 as ReadableIterator, u as ReadableResult } from '../services-
|
|
6
|
+
import { B as BaseErrorSchemaType, s as Readable, a1 as ReadableIterator, u as ReadableResult } from '../services-DoCToSxW.cjs';
|
|
7
7
|
import { W as WsLike } from '../wslike-Dng9H1C7.cjs';
|
|
8
8
|
import NodeWs from 'ws';
|
|
9
9
|
import http from 'node:http';
|
package/dist/testUtil/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-
|
|
2
|
-
import { C as ClientTransport } from '../client-
|
|
3
|
-
import { S as ServerTransport } from '../server-
|
|
1
|
+
import { P as ProvidedClientTransportOptions, e as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, q as ServerHandshakeOptions, T as Transport, i as SessionNoConnection, x as SessionBoundSendFn, m as ClientTransportOptions, y as SessionOptions } from '../transport-KOCn1fvT.js';
|
|
2
|
+
import { C as ClientTransport } from '../client-CKThx0WA.js';
|
|
3
|
+
import { S as ServerTransport } from '../server-CSkUpJcH.js';
|
|
4
4
|
import { T as TransportClientId, e as PartialTransportMessage, O as OpaqueTransportMessage } from '../message-CpXWqmJw.js';
|
|
5
5
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
6
|
-
import { B as BaseErrorSchemaType, s as Readable, a1 as ReadableIterator, u as ReadableResult } from '../services-
|
|
6
|
+
import { B as BaseErrorSchemaType, s as Readable, a1 as ReadableIterator, u as ReadableResult } from '../services-BlGhziCQ.js';
|
|
7
7
|
import { W as WsLike } from '../wslike-Dng9H1C7.js';
|
|
8
8
|
import NodeWs from 'ws';
|
|
9
9
|
import http from 'node:http';
|
package/dist/testUtil/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
SessionStateGraph,
|
|
6
6
|
defaultClientTransportOptions,
|
|
7
7
|
defaultTransportOptions
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-CH3OPDPY.js";
|
|
9
9
|
import "../chunk-CC7RN7GI.js";
|
|
10
10
|
import {
|
|
11
11
|
currentProtocolVersion,
|
|
12
12
|
getTracer
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-QFJGMDOX.js";
|
|
14
14
|
|
|
15
15
|
// testUtil/index.ts
|
|
16
16
|
import NodeWs, { WebSocketServer } from "ws";
|
|
@@ -687,7 +687,7 @@ function coerceErrorString(err) {
|
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
// package.json
|
|
690
|
-
var version = "0.216.
|
|
690
|
+
var version = "0.216.2";
|
|
691
691
|
|
|
692
692
|
// tracing/index.ts
|
|
693
693
|
function getPropagationContext(ctx) {
|
|
@@ -988,6 +988,12 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
990
|
const parsedMsg = parsedMsgRes.value;
|
|
991
|
+
if (parsedMsg.from !== this.to) {
|
|
992
|
+
this.listeners.onInvalidMessage(
|
|
993
|
+
`received message with 'from' (${parsedMsg.from}) that does not match the session peer (${this.to})`
|
|
994
|
+
);
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
991
997
|
if (parsedMsg.seq !== this.ack) {
|
|
992
998
|
if (parsedMsg.seq < this.ack) {
|
|
993
999
|
this.log?.debug(
|