@replit/river 0.208.1 → 0.208.3
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-f2b6e211.d.ts → adapter-ChksXKVN.d.ts} +2 -2
- package/dist/adapter-Cuc4JtfV.d.cts +46 -0
- package/dist/{chunk-2WFRHXDZ.js → chunk-3WYK5ZRT.js} +11 -16
- package/dist/{chunk-2WFRHXDZ.js.map → chunk-3WYK5ZRT.js.map} +1 -1
- package/dist/{chunk-EVAQ2QMB.js → chunk-JC4XN6NC.js} +36 -37
- package/dist/chunk-JC4XN6NC.js.map +1 -0
- package/dist/{chunk-BXKBENJE.js → chunk-M2B4PVR5.js} +2 -2
- 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-BF4zg6Qv.d.cts +35 -0
- package/dist/{connection-098d4aad.d.ts → connection-Donr3JRB.d.ts} +4 -4
- package/dist/index-C9tpZjBN.d.cts +37 -0
- package/dist/{index-02554794.d.ts → index-D8IOd3LG.d.ts} +2 -2
- package/dist/logging/index.d.cts +2 -2
- package/dist/logging/index.d.ts +2 -2
- package/dist/{message-01c3e85a.d.ts → message-Di94OL80.d.cts} +1 -1
- package/dist/message-Di94OL80.d.ts +108 -0
- package/dist/router/index.cjs +20 -21
- 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/testUtil/index.cjs +7 -13
- 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 +4 -5
- package/dist/testUtil/index.js.map +1 -1
- package/dist/transport/impls/ws/client.cjs +5 -9
- 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 +6 -11
- 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 +6 -11
- 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/transport-CCaWx1Rb.d.cts +1566 -0
- package/dist/{services-44be1b6b.d.ts → transport-CZb3vdB4.d.ts} +323 -323
- package/dist/{wslike-e0b32dd5.d.ts → wslike-Dng9H1C7.d.cts} +1 -1
- package/dist/wslike-Dng9H1C7.d.ts +40 -0
- package/package.json +4 -2
- package/dist/chunk-EVAQ2QMB.js.map +0 -1
- /package/dist/{chunk-BXKBENJE.js.map → chunk-M2B4PVR5.js.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { T as TransportClientId } from '../../../message-
|
|
1
|
+
import { T as TransportClientId } from '../../../message-Di94OL80.cjs';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
4
|
-
import { W as WsLike } from '../../../wslike-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-BF4zg6Qv.cjs';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
|
|
5
5
|
import { ServerTransport } from '../../index.cjs';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../transport-CCaWx1Rb.cjs';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
10
|
-
import '../../../index-
|
|
11
|
-
import '../../../adapter-
|
|
10
|
+
import '../../../index-C9tpZjBN.cjs';
|
|
11
|
+
import '../../../adapter-Cuc4JtfV.cjs';
|
|
12
12
|
|
|
13
13
|
declare class WebSocketServerTransport extends ServerTransport<WebSocketConnection> {
|
|
14
14
|
wss: WebSocketServer;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { T as TransportClientId } from '../../../message-
|
|
1
|
+
import { T as TransportClientId } from '../../../message-Di94OL80.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
4
|
-
import { W as WsLike } from '../../../wslike-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-Donr3JRB.js';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
|
|
5
5
|
import { ServerTransport } from '../../index.js';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../transport-CZb3vdB4.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
10
|
-
import '../../../index-
|
|
11
|
-
import '../../../adapter-
|
|
10
|
+
import '../../../index-D8IOd3LG.js';
|
|
11
|
+
import '../../../adapter-ChksXKVN.js';
|
|
12
12
|
|
|
13
13
|
declare class WebSocketServerTransport extends ServerTransport<WebSocketConnection> {
|
|
14
14
|
wss: WebSocketServer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-M2B4PVR5.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-EVAQ2QMB.js";
|
|
6
|
+
} from "../../../chunk-3WYK5ZRT.js";
|
|
8
7
|
import "../../../chunk-CC7RN7GI.js";
|
|
8
|
+
import "../../../chunk-JC4XN6NC.js";
|
|
9
9
|
|
|
10
10
|
// transport/impls/ws/server.ts
|
|
11
11
|
function cleanHeaders(headers) {
|
package/dist/transport/index.cjs
CHANGED
|
@@ -434,13 +434,11 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
|
|
|
434
434
|
this.listeners = props.listeners;
|
|
435
435
|
this.connPromise.then(
|
|
436
436
|
(conn) => {
|
|
437
|
-
if (this._isConsumed)
|
|
438
|
-
return;
|
|
437
|
+
if (this._isConsumed) return;
|
|
439
438
|
this.listeners.onConnectionEstablished(conn);
|
|
440
439
|
},
|
|
441
440
|
(err) => {
|
|
442
|
-
if (this._isConsumed)
|
|
443
|
-
return;
|
|
441
|
+
if (this._isConsumed) return;
|
|
444
442
|
this.listeners.onConnectionFailed(err);
|
|
445
443
|
}
|
|
446
444
|
);
|
|
@@ -642,7 +640,7 @@ function coerceErrorString(err) {
|
|
|
642
640
|
}
|
|
643
641
|
|
|
644
642
|
// package.json
|
|
645
|
-
var version = "0.208.
|
|
643
|
+
var version = "0.208.3";
|
|
646
644
|
|
|
647
645
|
// tracing/index.ts
|
|
648
646
|
function getPropagationContext(ctx) {
|
|
@@ -1394,8 +1392,7 @@ var Transport = class {
|
|
|
1394
1392
|
* @param message The received message.
|
|
1395
1393
|
*/
|
|
1396
1394
|
handleMsg(message) {
|
|
1397
|
-
if (this.getStatus() !== "open")
|
|
1398
|
-
return;
|
|
1395
|
+
if (this.getStatus() !== "open") return;
|
|
1399
1396
|
this.eventDispatcher.dispatchEvent("message", message);
|
|
1400
1397
|
}
|
|
1401
1398
|
/**
|
|
@@ -1483,8 +1480,7 @@ var Transport = class {
|
|
|
1483
1480
|
});
|
|
1484
1481
|
}
|
|
1485
1482
|
deleteSession(session, options) {
|
|
1486
|
-
if (session._isConsumed)
|
|
1487
|
-
return;
|
|
1483
|
+
if (session._isConsumed) return;
|
|
1488
1484
|
const loggingMetadata = session.loggingMetadata;
|
|
1489
1485
|
if (loggingMetadata.tags && options?.unhealthy) {
|
|
1490
1486
|
loggingMetadata.tags.push("unhealthy-session");
|
|
@@ -2062,8 +2058,7 @@ var ServerTransport = class extends Transport {
|
|
|
2062
2058
|
super.deleteSession(session, options);
|
|
2063
2059
|
}
|
|
2064
2060
|
handleConnection(conn) {
|
|
2065
|
-
if (this.getStatus() !== "open")
|
|
2066
|
-
return;
|
|
2061
|
+
if (this.getStatus() !== "open") return;
|
|
2067
2062
|
this.log?.info(`new incoming connection`, {
|
|
2068
2063
|
...conn.loggingMetadata,
|
|
2069
2064
|
clientId: this.clientId
|