@replit/river 0.204.0 → 0.205.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/README.md +7 -3
- package/dist/{chunk-QSW7AWEP.js → chunk-356UADV3.js} +2 -2
- package/dist/{chunk-3V7VMJNA.js → chunk-3XCLUGDM.js} +5 -4
- package/dist/chunk-3XCLUGDM.js.map +1 -0
- package/dist/{chunk-WBGKPIFS.js → chunk-CC7RN7GI.js} +1 -1
- package/dist/chunk-CC7RN7GI.js.map +1 -0
- package/dist/{chunk-LJCR3ADI.js → chunk-HNBYBRJ7.js} +43 -15
- package/dist/chunk-HNBYBRJ7.js.map +1 -0
- package/dist/{chunk-YODW2ZMU.js → chunk-OVLZDQF4.js} +3 -3
- package/dist/{chunk-6YUDEFCS.js → chunk-Y2N4EJYG.js} +11 -6
- package/dist/{chunk-6YUDEFCS.js.map → chunk-Y2N4EJYG.js.map} +1 -1
- package/dist/{client-0c0a4a5e.d.ts → client-c44d1c69.d.ts} +2 -2
- package/dist/{connection-7b62dfec.d.ts → connection-03726441.d.ts} +6 -4
- package/dist/{context-3cf1ed4e.d.ts → context-ebf88958.d.ts} +13 -5
- package/dist/logging/index.cjs.map +1 -1
- package/dist/logging/index.d.cts +1 -2
- package/dist/logging/index.d.ts +1 -2
- package/dist/logging/index.js +1 -1
- package/dist/{message-3def9ded.d.ts → message-865bba35.d.ts} +4 -2
- package/dist/router/index.cjs +42 -14
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +8 -10
- package/dist/router/index.d.ts +8 -10
- package/dist/router/index.js +1 -1
- package/dist/{server-a287de55.d.ts → server-b169b234.d.ts} +6 -4
- package/dist/{services-51980ecd.d.ts → services-47b312aa.d.ts} +11 -3
- package/dist/testUtil/index.cjs +11 -5
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +5 -7
- package/dist/testUtil/index.d.ts +5 -7
- package/dist/testUtil/index.js +5 -5
- package/dist/transport/impls/ws/client.cjs +11 -5
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +4 -6
- package/dist/transport/impls/ws/client.d.ts +4 -6
- package/dist/transport/impls/ws/client.js +5 -5
- package/dist/transport/impls/ws/server.cjs +9 -4
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +4 -6
- package/dist/transport/impls/ws/server.d.ts +4 -6
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +11 -5
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -6
- package/dist/transport/index.d.ts +4 -6
- package/dist/transport/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3V7VMJNA.js.map +0 -1
- package/dist/chunk-LJCR3ADI.js.map +0 -1
- package/dist/chunk-WBGKPIFS.js.map +0 -1
- /package/dist/{chunk-QSW7AWEP.js.map → chunk-356UADV3.js.map} +0 -0
- /package/dist/{chunk-YODW2ZMU.js.map → chunk-OVLZDQF4.js.map} +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
2
|
-
import { c as TransportClientId } from '../../../message-
|
|
3
|
-
import { b as ProvidedClientTransportOptions } from '../../../context-
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-c44d1c69.js';
|
|
2
|
+
import { c as TransportClientId } from '../../../message-865bba35.js';
|
|
3
|
+
import { b as ProvidedClientTransportOptions } from '../../../context-ebf88958.js';
|
|
4
|
+
import { W as WebSocketConnection } from '../../../connection-03726441.js';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
6
|
-
import '@sinclair/typebox/value';
|
|
7
6
|
import '@sinclair/typebox';
|
|
8
7
|
import '@opentelemetry/api';
|
|
9
|
-
import '@sinclair/typebox/errors';
|
|
10
8
|
import '../../../types-3e5768ec.js';
|
|
11
9
|
|
|
12
10
|
/**
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
2
|
-
import { c as TransportClientId } from '../../../message-
|
|
3
|
-
import { b as ProvidedClientTransportOptions } from '../../../context-
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-c44d1c69.js';
|
|
2
|
+
import { c as TransportClientId } from '../../../message-865bba35.js';
|
|
3
|
+
import { b as ProvidedClientTransportOptions } from '../../../context-ebf88958.js';
|
|
4
|
+
import { W as WebSocketConnection } from '../../../connection-03726441.js';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
6
|
-
import '@sinclair/typebox/value';
|
|
7
6
|
import '@sinclair/typebox';
|
|
8
7
|
import '@opentelemetry/api';
|
|
9
|
-
import '@sinclair/typebox/errors';
|
|
10
8
|
import '../../../types-3e5768ec.js';
|
|
11
9
|
|
|
12
10
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientTransport
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-3XCLUGDM.js";
|
|
4
4
|
import {
|
|
5
5
|
WebSocketConnection
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-356UADV3.js";
|
|
7
|
+
import "../../../chunk-Y2N4EJYG.js";
|
|
8
|
+
import "../../../chunk-HNBYBRJ7.js";
|
|
9
|
+
import "../../../chunk-CC7RN7GI.js";
|
|
10
10
|
import "../../../chunk-AJGIY2UB.js";
|
|
11
11
|
|
|
12
12
|
// transport/impls/ws/client.ts
|
|
@@ -722,7 +722,7 @@ function coerceErrorString(err) {
|
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
// package.json
|
|
725
|
-
var version = "0.
|
|
725
|
+
var version = "0.205.1";
|
|
726
726
|
|
|
727
727
|
// tracing/index.ts
|
|
728
728
|
function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
|
|
@@ -1418,7 +1418,8 @@ var Transport = class {
|
|
|
1418
1418
|
*/
|
|
1419
1419
|
close() {
|
|
1420
1420
|
this.status = "closed";
|
|
1421
|
-
|
|
1421
|
+
const sessions = Array.from(this.sessions.values());
|
|
1422
|
+
for (const session of sessions) {
|
|
1422
1423
|
this.deleteSession(session);
|
|
1423
1424
|
}
|
|
1424
1425
|
this.eventDispatcher.dispatchEvent("transportStatus", {
|
|
@@ -1443,7 +1444,7 @@ var Transport = class {
|
|
|
1443
1444
|
}
|
|
1444
1445
|
this.sessions.set(session.to, session);
|
|
1445
1446
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1446
|
-
status: "
|
|
1447
|
+
status: "created",
|
|
1447
1448
|
session
|
|
1448
1449
|
});
|
|
1449
1450
|
this.eventDispatcher.dispatchEvent("sessionTransition", {
|
|
@@ -1484,12 +1485,16 @@ var Transport = class {
|
|
|
1484
1485
|
}
|
|
1485
1486
|
session.log?.info(`closing session ${session.id}`, loggingMetadata);
|
|
1486
1487
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1487
|
-
status: "
|
|
1488
|
+
status: "closing",
|
|
1488
1489
|
session
|
|
1489
1490
|
});
|
|
1490
1491
|
const to = session.to;
|
|
1491
1492
|
session.close();
|
|
1492
1493
|
this.sessions.delete(to);
|
|
1494
|
+
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1495
|
+
status: "closed",
|
|
1496
|
+
session: { id: session.id, to }
|
|
1497
|
+
});
|
|
1493
1498
|
}
|
|
1494
1499
|
// common listeners
|
|
1495
1500
|
onSessionGracePeriodElapsed(session) {
|