@replit/river 0.206.0 → 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-VGWFMCOP.js → chunk-7LMZNSVC.js} +2 -2
- package/dist/{chunk-NTVJNU5K.js → chunk-BCCZA7SX.js} +2 -11
- package/dist/{chunk-NTVJNU5K.js.map → chunk-BCCZA7SX.js.map} +1 -1
- package/dist/{chunk-FCQWZRES.js → chunk-CRD3HDVN.js} +3 -3
- package/dist/{chunk-EMOYAUX3.js → chunk-I27WBSMZ.js} +3 -3
- package/dist/{chunk-JSU537MZ.js → chunk-QMAVXV4Z.js} +8 -3
- package/dist/chunk-QMAVXV4Z.js.map +1 -0
- package/dist/{connection-494a5b68.d.ts → connection-933c87b2.d.ts} +1 -1
- package/dist/router/index.cjs +3 -13
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +3 -3
- package/dist/router/index.d.ts +3 -3
- package/dist/router/index.js +2 -4
- package/dist/{services-15a0df95.d.ts → services-4cd29829.d.ts} +1 -8
- package/dist/testUtil/index.cjs +7 -2
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +1 -1
- package/dist/testUtil/index.d.ts +1 -1
- 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 +2 -2
- package/dist/transport/impls/ws/client.d.ts +2 -2
- 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 +2 -2
- package/dist/transport/impls/ws/server.d.ts +2 -2
- 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 +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/transport/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-JSU537MZ.js.map +0 -1
- /package/dist/{chunk-VGWFMCOP.js.map → chunk-7LMZNSVC.js.map} +0 -0
- /package/dist/{chunk-FCQWZRES.js.map → chunk-CRD3HDVN.js.map} +0 -0
- /package/dist/{chunk-EMOYAUX3.js.map → chunk-I27WBSMZ.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as TransportClientId } from '../../../message-ffacb98a.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import { ServerTransport } from '../../index.cjs';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../services-
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../services-4cd29829.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { T as TransportClientId } from '../../../message-ffacb98a.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import { ServerTransport } from '../../index.js';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../services-
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../services-4cd29829.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerTransport
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-I27WBSMZ.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
|
|
package/dist/transport/index.cjs
CHANGED
|
@@ -516,6 +516,9 @@ var IdentifiedSession = class extends CommonSession {
|
|
|
516
516
|
return metadata;
|
|
517
517
|
}
|
|
518
518
|
constructMsg(partialMsg) {
|
|
519
|
+
if (this._isConsumed) {
|
|
520
|
+
throw new Error(ERR_CONSUMED);
|
|
521
|
+
}
|
|
519
522
|
const msg = {
|
|
520
523
|
...partialMsg,
|
|
521
524
|
id: generateId(),
|
|
@@ -645,7 +648,7 @@ function coerceErrorString(err) {
|
|
|
645
648
|
}
|
|
646
649
|
|
|
647
650
|
// package.json
|
|
648
|
-
var version = "0.
|
|
651
|
+
var version = "0.207.1";
|
|
649
652
|
|
|
650
653
|
// tracing/index.ts
|
|
651
654
|
function getPropagationContext(ctx) {
|
|
@@ -936,7 +939,9 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
936
939
|
transportMessage: parsedMsg
|
|
937
940
|
});
|
|
938
941
|
if (!this.isActivelyHeartbeating) {
|
|
939
|
-
|
|
942
|
+
void Promise.resolve().then(() => {
|
|
943
|
+
this.sendHeartbeat();
|
|
944
|
+
});
|
|
940
945
|
}
|
|
941
946
|
};
|
|
942
947
|
_handleStateExit() {
|