@replit/river 0.205.2 → 0.207.1
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-FCN2JPOE.js → chunk-7LMZNSVC.js} +2 -2
- package/dist/{chunk-BYA34LH3.js → chunk-BCCZA7SX.js} +14 -27
- package/dist/chunk-BCCZA7SX.js.map +1 -0
- package/dist/{chunk-W337YQLT.js → chunk-CRD3HDVN.js} +3 -3
- package/dist/{chunk-TP4OJAKI.js → chunk-I27WBSMZ.js} +3 -3
- package/dist/{chunk-FTOB2HQN.js → chunk-QMAVXV4Z.js} +8 -3
- package/dist/chunk-QMAVXV4Z.js.map +1 -0
- package/dist/{connection-8ed39cb5.d.ts → connection-933c87b2.d.ts} +2 -2
- package/dist/logging/index.d.cts +1 -1
- package/dist/logging/index.d.ts +1 -1
- package/dist/{message-865bba35.d.ts → message-ffacb98a.d.ts} +1 -1
- package/dist/router/index.cjs +15 -29
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +5 -8
- package/dist/router/index.d.ts +5 -8
- package/dist/router/index.js +2 -4
- package/dist/{services-036dcc97.d.ts → services-4cd29829.d.ts} +731 -16
- package/dist/testUtil/index.cjs +7 -2
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +3 -5
- package/dist/testUtil/index.d.ts +3 -5
- package/dist/testUtil/index.js +4 -4
- package/dist/transport/impls/ws/client.cjs +7 -2
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +3 -4
- package/dist/transport/impls/ws/client.d.ts +3 -4
- package/dist/transport/impls/ws/client.js +4 -4
- package/dist/transport/impls/ws/server.cjs +7 -2
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +4 -4
- package/dist/transport/impls/ws/server.d.ts +4 -4
- package/dist/transport/impls/ws/server.js +4 -4
- package/dist/transport/index.cjs +7 -2
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +72 -5
- package/dist/transport/index.d.ts +72 -5
- package/dist/transport/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-BYA34LH3.js.map +0 -1
- package/dist/chunk-FTOB2HQN.js.map +0 -1
- package/dist/client-8ab60722.d.ts +0 -54
- package/dist/context-2c4bb66b.d.ts +0 -670
- package/dist/server-dc261419.d.ts +0 -70
- /package/dist/{chunk-FCN2JPOE.js.map → chunk-7LMZNSVC.js.map} +0 -0
- /package/dist/{chunk-W337YQLT.js.map → chunk-CRD3HDVN.js.map} +0 -0
- /package/dist/{chunk-TP4OJAKI.js.map → chunk-I27WBSMZ.js.map} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-8ed39cb5.js';
|
|
1
|
+
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-4cd29829.js';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-ffacb98a.js';
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
|
|
5
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
6
5
|
import '@sinclair/typebox';
|
|
7
6
|
import '@opentelemetry/api';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-8ed39cb5.js';
|
|
1
|
+
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-4cd29829.js';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-ffacb98a.js';
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
|
|
5
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
6
5
|
import '@sinclair/typebox';
|
|
7
6
|
import '@opentelemetry/api';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientTransport
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-CRD3HDVN.js";
|
|
4
4
|
import {
|
|
5
5
|
WebSocketConnection
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-7LMZNSVC.js";
|
|
7
|
+
import "../../../chunk-QMAVXV4Z.js";
|
|
8
|
+
import "../../../chunk-BCCZA7SX.js";
|
|
9
9
|
import "../../../chunk-CC7RN7GI.js";
|
|
10
10
|
import "../../../chunk-AJGIY2UB.js";
|
|
11
11
|
|
|
@@ -608,6 +608,9 @@ var IdentifiedSession = class extends CommonSession {
|
|
|
608
608
|
return metadata;
|
|
609
609
|
}
|
|
610
610
|
constructMsg(partialMsg) {
|
|
611
|
+
if (this._isConsumed) {
|
|
612
|
+
throw new Error(ERR_CONSUMED);
|
|
613
|
+
}
|
|
611
614
|
const msg = {
|
|
612
615
|
...partialMsg,
|
|
613
616
|
id: generateId(),
|
|
@@ -737,7 +740,7 @@ function coerceErrorString(err) {
|
|
|
737
740
|
}
|
|
738
741
|
|
|
739
742
|
// package.json
|
|
740
|
-
var version = "0.
|
|
743
|
+
var version = "0.207.1";
|
|
741
744
|
|
|
742
745
|
// tracing/index.ts
|
|
743
746
|
function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
|
|
@@ -1020,7 +1023,9 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
1020
1023
|
transportMessage: parsedMsg
|
|
1021
1024
|
});
|
|
1022
1025
|
if (!this.isActivelyHeartbeating) {
|
|
1023
|
-
|
|
1026
|
+
void Promise.resolve().then(() => {
|
|
1027
|
+
this.sendHeartbeat();
|
|
1028
|
+
});
|
|
1024
1029
|
}
|
|
1025
1030
|
};
|
|
1026
1031
|
_handleStateExit() {
|