@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,14 +1,14 @@
|
|
|
1
|
-
import { T as TransportClientId } from '../../../message-
|
|
1
|
+
import { T as TransportClientId } from '../../../message-01c3e85a.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-098d4aad.js';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import { ServerTransport } from '../../index.cjs';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../services-44be1b6b.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-02554794.js';
|
|
11
|
+
import '../../../adapter-f2b6e211.js';
|
|
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-01c3e85a.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-098d4aad.js';
|
|
4
|
+
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
5
|
import { ServerTransport } from '../../index.js';
|
|
6
|
-
import { a as ProvidedServerTransportOptions } from '../../../
|
|
6
|
+
import { a as ProvidedServerTransportOptions } from '../../../services-44be1b6b.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-02554794.js';
|
|
11
|
+
import '../../../adapter-f2b6e211.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-BXKBENJE.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
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/server.ts
|
|
11
11
|
function cleanHeaders(headers) {
|
package/dist/transport/index.cjs
CHANGED
|
@@ -168,7 +168,7 @@ var NaiveJsonCodec = {
|
|
|
168
168
|
const parsed = JSON.parse(
|
|
169
169
|
decoder.decode(buff),
|
|
170
170
|
function reviver(_key, val) {
|
|
171
|
-
if (val?.$t) {
|
|
171
|
+
if (val?.$t !== void 0) {
|
|
172
172
|
return base64ToUint8Array(val.$t);
|
|
173
173
|
} else {
|
|
174
174
|
return val;
|
|
@@ -434,11 +434,13 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
|
|
|
434
434
|
this.listeners = props.listeners;
|
|
435
435
|
this.connPromise.then(
|
|
436
436
|
(conn) => {
|
|
437
|
-
if (this._isConsumed)
|
|
437
|
+
if (this._isConsumed)
|
|
438
|
+
return;
|
|
438
439
|
this.listeners.onConnectionEstablished(conn);
|
|
439
440
|
},
|
|
440
441
|
(err) => {
|
|
441
|
-
if (this._isConsumed)
|
|
442
|
+
if (this._isConsumed)
|
|
443
|
+
return;
|
|
442
444
|
this.listeners.onConnectionFailed(err);
|
|
443
445
|
}
|
|
444
446
|
);
|
|
@@ -640,7 +642,7 @@ function coerceErrorString(err) {
|
|
|
640
642
|
}
|
|
641
643
|
|
|
642
644
|
// package.json
|
|
643
|
-
var version = "0.208.
|
|
645
|
+
var version = "0.208.1";
|
|
644
646
|
|
|
645
647
|
// tracing/index.ts
|
|
646
648
|
function getPropagationContext(ctx) {
|
|
@@ -1392,7 +1394,8 @@ var Transport = class {
|
|
|
1392
1394
|
* @param message The received message.
|
|
1393
1395
|
*/
|
|
1394
1396
|
handleMsg(message) {
|
|
1395
|
-
if (this.getStatus() !== "open")
|
|
1397
|
+
if (this.getStatus() !== "open")
|
|
1398
|
+
return;
|
|
1396
1399
|
this.eventDispatcher.dispatchEvent("message", message);
|
|
1397
1400
|
}
|
|
1398
1401
|
/**
|
|
@@ -1480,7 +1483,8 @@ var Transport = class {
|
|
|
1480
1483
|
});
|
|
1481
1484
|
}
|
|
1482
1485
|
deleteSession(session, options) {
|
|
1483
|
-
if (session._isConsumed)
|
|
1486
|
+
if (session._isConsumed)
|
|
1487
|
+
return;
|
|
1484
1488
|
const loggingMetadata = session.loggingMetadata;
|
|
1485
1489
|
if (loggingMetadata.tags && options?.unhealthy) {
|
|
1486
1490
|
loggingMetadata.tags.push("unhealthy-session");
|
|
@@ -2058,7 +2062,8 @@ var ServerTransport = class extends Transport {
|
|
|
2058
2062
|
super.deleteSession(session, options);
|
|
2059
2063
|
}
|
|
2060
2064
|
handleConnection(conn) {
|
|
2061
|
-
if (this.getStatus() !== "open")
|
|
2065
|
+
if (this.getStatus() !== "open")
|
|
2066
|
+
return;
|
|
2062
2067
|
this.log?.info(`new incoming connection`, {
|
|
2063
2068
|
...conn.loggingMetadata,
|
|
2064
2069
|
clientId: this.clientId
|