@replit/river 0.215.0 → 0.216.0
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/README.md +47 -0
- package/dist/adapter-BXCk-dmy.d.ts +29 -0
- package/dist/adapter-D5X11kmP.d.cts +29 -0
- package/dist/{chunk-VXRAFUA3.js → chunk-75ZMPCKC.js} +26 -6
- package/dist/{chunk-VXRAFUA3.js.map → chunk-75ZMPCKC.js.map} +1 -1
- package/dist/chunk-SHND2JG6.js +86 -0
- package/dist/chunk-SHND2JG6.js.map +1 -0
- package/dist/{chunk-RDTQZ7HO.js → chunk-ZLMQQI43.js} +12 -2
- package/dist/chunk-ZLMQQI43.js.map +1 -0
- package/dist/{client-BhwlY0-L.d.ts → client-BNc5Pj_4.d.ts} +2 -2
- package/dist/{client-Dk4H7qeg.d.cts → client-BZUvFL6B.d.cts} +2 -2
- package/dist/codec/index.cjs.map +1 -1
- package/dist/codec/index.d.cts +3 -3
- package/dist/codec/index.d.ts +3 -3
- package/dist/codec/index.js +2 -2
- package/dist/{connection-DU9v3y8a.d.ts → connection-ou9w2dSY.d.ts} +3 -3
- package/dist/{connection-CS00EWuS.d.cts → connection-xxgJHs2o.d.cts} +3 -3
- package/dist/{index-CHCzvZ9D.d.cts → index-BAGGleT3.d.cts} +1 -1
- package/dist/{index-uF0cBM7z.d.ts → index-ZWkoesQD.d.ts} +1 -1
- package/dist/logging/index.d.cts +2 -2
- package/dist/logging/index.d.ts +2 -2
- package/dist/{message-aABg0s5M.d.cts → message-CpXWqmJw.d.cts} +1 -1
- package/dist/{message-aABg0s5M.d.ts → message-CpXWqmJw.d.ts} +1 -1
- package/dist/protobuf/codec.cjs +107 -0
- package/dist/protobuf/codec.cjs.map +1 -0
- package/dist/protobuf/codec.d.cts +13 -0
- package/dist/protobuf/codec.d.ts +13 -0
- package/dist/protobuf/codec.js +7 -0
- package/dist/protobuf/codec.js.map +1 -0
- package/dist/protobuf/index.cjs +1877 -0
- package/dist/protobuf/index.cjs.map +1 -0
- package/dist/protobuf/index.d.cts +488 -0
- package/dist/protobuf/index.d.ts +488 -0
- package/dist/protobuf/index.js +1260 -0
- package/dist/protobuf/index.js.map +1 -0
- package/dist/router/index.cjs +1 -1
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +12 -11
- package/dist/router/index.d.ts +12 -11
- package/dist/router/index.js +1 -1
- package/dist/{server-uNzkzIRh.d.ts → server-BPu7Td80.d.ts} +4 -4
- package/dist/{server-BR0DZaWi.d.cts → server-JdnoVO11.d.cts} +4 -4
- package/dist/{services-B5SY771g.d.ts → services-BrTFTO5Q.d.ts} +104 -93
- package/dist/{services-DBv2nmly.d.cts → services-cwGAC2rB.d.cts} +104 -93
- package/dist/testUtil/index.cjs +25 -5
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +8 -7
- package/dist/testUtil/index.d.ts +8 -7
- package/dist/testUtil/index.js +2 -2
- package/dist/transport/impls/ws/client.cjs +5 -1
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +7 -6
- package/dist/transport/impls/ws/client.d.ts +7 -6
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +21 -5
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +7 -6
- package/dist/transport/impls/ws/server.d.ts +7 -6
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +25 -5
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +8 -7
- package/dist/transport/index.d.ts +8 -7
- package/dist/transport/index.js +2 -2
- package/dist/{transport-BOL2p5s-.d.ts → transport-B1MUtXL7.d.ts} +7 -5
- package/dist/{transport-D3jzhFSi.d.cts → transport-BnU3Zb0Q.d.cts} +7 -5
- package/dist/types-BGGvYIJM.d.cts +20 -0
- package/dist/types-BGGvYIJM.d.ts +20 -0
- package/package.json +12 -1
- package/dist/adapter-CgF7vQPu.d.ts +0 -47
- package/dist/adapter-IGrG4KLL.d.cts +0 -47
- package/dist/chunk-RDTQZ7HO.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as WebSocketConnection } from '../../../connection-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-BZUvFL6B.cjs';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-CpXWqmJw.cjs';
|
|
3
|
+
import { P as ProvidedClientTransportOptions } from '../../../transport-BnU3Zb0Q.cjs';
|
|
4
|
+
import { a as WebSocketConnection } from '../../../connection-xxgJHs2o.cjs';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
|
|
6
6
|
import '@sinclair/typebox';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
|
-
import '../../../index-
|
|
9
|
-
import '../../../
|
|
8
|
+
import '../../../index-BAGGleT3.cjs';
|
|
9
|
+
import '../../../types-BGGvYIJM.cjs';
|
|
10
|
+
import '../../../adapter-D5X11kmP.cjs';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* A transport implementation that uses a WebSocket connection with automatic reconnection.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as WebSocketConnection } from '../../../connection-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-BNc5Pj_4.js';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-CpXWqmJw.js';
|
|
3
|
+
import { P as ProvidedClientTransportOptions } from '../../../transport-B1MUtXL7.js';
|
|
4
|
+
import { a as WebSocketConnection } from '../../../connection-ou9w2dSY.js';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
|
|
6
6
|
import '@sinclair/typebox';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
|
-
import '../../../index-
|
|
9
|
-
import '../../../
|
|
8
|
+
import '../../../index-ZWkoesQD.js';
|
|
9
|
+
import '../../../types-BGGvYIJM.js';
|
|
10
|
+
import '../../../adapter-BXCk-dmy.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* A transport implementation that uses a WebSocket connection with automatic reconnection.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientTransport,
|
|
3
3
|
WebSocketConnection
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-75ZMPCKC.js";
|
|
5
5
|
import "../../../chunk-CC7RN7GI.js";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-ZLMQQI43.js";
|
|
7
7
|
|
|
8
8
|
// transport/impls/ws/client.ts
|
|
9
9
|
var WebSocketClientTransport = class extends ClientTransport {
|
|
@@ -736,7 +736,7 @@ function coerceErrorString(err) {
|
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
// package.json
|
|
739
|
-
var version = "0.
|
|
739
|
+
var version = "0.216.0";
|
|
740
740
|
|
|
741
741
|
// tracing/index.ts
|
|
742
742
|
function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
|
|
@@ -1919,10 +1919,26 @@ var ServerTransport = class extends Transport {
|
|
|
1919
1919
|
const previousParsedMetadata = this.sessionHandshakeMetadata.get(
|
|
1920
1920
|
msg.from
|
|
1921
1921
|
);
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1922
|
+
let parsedMetadataOrFailureCode;
|
|
1923
|
+
try {
|
|
1924
|
+
parsedMetadataOrFailureCode = await this.handshakeExtensions.validate(
|
|
1925
|
+
msg.payload.metadata,
|
|
1926
|
+
previousParsedMetadata
|
|
1927
|
+
);
|
|
1928
|
+
} catch (err) {
|
|
1929
|
+
this.rejectHandshakeRequest(
|
|
1930
|
+
session,
|
|
1931
|
+
msg.from,
|
|
1932
|
+
`handshake validation threw: ${coerceErrorString(err)}`,
|
|
1933
|
+
"REJECTED_BY_CUSTOM_HANDLER",
|
|
1934
|
+
{
|
|
1935
|
+
...session.loggingMetadata,
|
|
1936
|
+
connectedTo: msg.from,
|
|
1937
|
+
clientId: this.clientId
|
|
1938
|
+
}
|
|
1939
|
+
);
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1926
1942
|
if (session._isConsumed) {
|
|
1927
1943
|
return;
|
|
1928
1944
|
}
|