@replit/river 0.208.0 → 0.208.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/{adapter-ChksXKVN.d.ts → adapter-f2b6e211.d.ts} +2 -2
- package/dist/{chunk-2JNVDUMN.js → chunk-2WFRHXDZ.js} +17 -12
- package/dist/chunk-2WFRHXDZ.js.map +1 -0
- package/dist/{chunk-DKW3GC3M.js → chunk-BXKBENJE.js} +2 -2
- package/dist/{chunk-ETZAHFGQ.js → chunk-EVAQ2QMB.js} +25 -21
- package/dist/{chunk-ETZAHFGQ.js.map → chunk-EVAQ2QMB.js.map} +1 -1
- package/dist/codec/index.cjs +1 -1
- 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-Donr3JRB.d.ts → connection-098d4aad.d.ts} +4 -4
- package/dist/{index-D8IOd3LG.d.ts → index-02554794.d.ts} +2 -2
- package/dist/logging/index.d.cts +2 -2
- package/dist/logging/index.d.ts +2 -2
- package/dist/{message-Di94OL80.d.cts → message-01c3e85a.d.ts} +1 -1
- package/dist/router/index.cjs +9 -5
- 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/{transport-CZb3vdB4.d.ts → services-44be1b6b.d.ts} +275 -275
- package/dist/testUtil/index.cjs +14 -8
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +5 -5
- package/dist/testUtil/index.d.ts +5 -5
- package/dist/testUtil/index.js +5 -4
- package/dist/testUtil/index.js.map +1 -1
- package/dist/transport/impls/ws/client.cjs +10 -6
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +6 -6
- package/dist/transport/impls/ws/client.d.ts +6 -6
- package/dist/transport/impls/ws/client.js +3 -3
- package/dist/transport/impls/ws/server.cjs +12 -7
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +6 -6
- package/dist/transport/impls/ws/server.d.ts +6 -6
- package/dist/transport/impls/ws/server.js +3 -3
- package/dist/transport/index.cjs +12 -7
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +6 -6
- package/dist/transport/index.d.ts +6 -6
- package/dist/transport/index.js +3 -3
- package/dist/{wslike-Dng9H1C7.d.ts → wslike-e0b32dd5.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/adapter-Cuc4JtfV.d.cts +0 -46
- package/dist/chunk-2JNVDUMN.js.map +0 -1
- package/dist/connection-BF4zg6Qv.d.cts +0 -35
- package/dist/index-C9tpZjBN.d.cts +0 -37
- package/dist/message-Di94OL80.d.ts +0 -108
- package/dist/transport-CCaWx1Rb.d.cts +0 -1566
- package/dist/wslike-Dng9H1C7.d.cts +0 -40
- /package/dist/{chunk-DKW3GC3M.js.map → chunk-BXKBENJE.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../
|
|
2
|
-
import { T as TransportClientId } from '../../../message-
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
4
|
-
import { W as WsLike } from '../../../wslike-
|
|
1
|
+
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-44be1b6b.js';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-01c3e85a.js';
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../../../index-
|
|
8
|
-
import '../../../adapter-
|
|
7
|
+
import '../../../index-02554794.js';
|
|
8
|
+
import '../../../adapter-f2b6e211.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A transport implementation that uses a WebSocket connection with automatic reconnection.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../
|
|
2
|
-
import { T as TransportClientId } from '../../../message-
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
4
|
-
import { W as WsLike } from '../../../wslike-
|
|
1
|
+
import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-44be1b6b.js';
|
|
2
|
+
import { T as TransportClientId } from '../../../message-01c3e85a.js';
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../../../index-
|
|
8
|
-
import '../../../adapter-
|
|
7
|
+
import '../../../index-02554794.js';
|
|
8
|
+
import '../../../adapter-f2b6e211.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A transport implementation that uses a WebSocket connection with automatic reconnection.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-BXKBENJE.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-2WFRHXDZ.js";
|
|
7
|
+
import "../../../chunk-EVAQ2QMB.js";
|
|
7
8
|
import "../../../chunk-CC7RN7GI.js";
|
|
8
|
-
import "../../../chunk-ETZAHFGQ.js";
|
|
9
9
|
|
|
10
10
|
// transport/impls/ws/client.ts
|
|
11
11
|
var WebSocketClientTransport = class extends ClientTransport {
|
|
@@ -302,7 +302,7 @@ var NaiveJsonCodec = {
|
|
|
302
302
|
const parsed = JSON.parse(
|
|
303
303
|
decoder.decode(buff),
|
|
304
304
|
function reviver(_key, val) {
|
|
305
|
-
if (val?.$t) {
|
|
305
|
+
if (val?.$t !== void 0) {
|
|
306
306
|
return base64ToUint8Array(val.$t);
|
|
307
307
|
} else {
|
|
308
308
|
return val;
|
|
@@ -654,11 +654,13 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
|
|
|
654
654
|
this.listeners = props.listeners;
|
|
655
655
|
this.connPromise.then(
|
|
656
656
|
(conn) => {
|
|
657
|
-
if (this._isConsumed)
|
|
657
|
+
if (this._isConsumed)
|
|
658
|
+
return;
|
|
658
659
|
this.listeners.onConnectionEstablished(conn);
|
|
659
660
|
},
|
|
660
661
|
(err) => {
|
|
661
|
-
if (this._isConsumed)
|
|
662
|
+
if (this._isConsumed)
|
|
663
|
+
return;
|
|
662
664
|
this.listeners.onConnectionFailed(err);
|
|
663
665
|
}
|
|
664
666
|
);
|
|
@@ -719,7 +721,7 @@ function coerceErrorString(err) {
|
|
|
719
721
|
}
|
|
720
722
|
|
|
721
723
|
// package.json
|
|
722
|
-
var version = "0.208.
|
|
724
|
+
var version = "0.208.1";
|
|
723
725
|
|
|
724
726
|
// tracing/index.ts
|
|
725
727
|
function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
|
|
@@ -1463,7 +1465,8 @@ var Transport = class {
|
|
|
1463
1465
|
* @param message The received message.
|
|
1464
1466
|
*/
|
|
1465
1467
|
handleMsg(message) {
|
|
1466
|
-
if (this.getStatus() !== "open")
|
|
1468
|
+
if (this.getStatus() !== "open")
|
|
1469
|
+
return;
|
|
1467
1470
|
this.eventDispatcher.dispatchEvent("message", message);
|
|
1468
1471
|
}
|
|
1469
1472
|
/**
|
|
@@ -1551,7 +1554,8 @@ var Transport = class {
|
|
|
1551
1554
|
});
|
|
1552
1555
|
}
|
|
1553
1556
|
deleteSession(session, options) {
|
|
1554
|
-
if (session._isConsumed)
|
|
1557
|
+
if (session._isConsumed)
|
|
1558
|
+
return;
|
|
1555
1559
|
const loggingMetadata = session.loggingMetadata;
|
|
1556
1560
|
if (loggingMetadata.tags && options?.unhealthy) {
|
|
1557
1561
|
loggingMetadata.tags.push("unhealthy-session");
|
|
@@ -1679,7 +1683,8 @@ var ServerTransport = class extends Transport {
|
|
|
1679
1683
|
super.deleteSession(session, options);
|
|
1680
1684
|
}
|
|
1681
1685
|
handleConnection(conn) {
|
|
1682
|
-
if (this.getStatus() !== "open")
|
|
1686
|
+
if (this.getStatus() !== "open")
|
|
1687
|
+
return;
|
|
1683
1688
|
this.log?.info(`new incoming connection`, {
|
|
1684
1689
|
...conn.loggingMetadata,
|
|
1685
1690
|
clientId: this.clientId
|