@replit/river 0.23.1 → 0.23.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/{chunk-XTVPDTQD.js → chunk-3U43VMW2.js} +2 -2
- package/dist/{chunk-AUH7GO52.js → chunk-IKT6A32W.js} +44 -24
- package/dist/chunk-IKT6A32W.js.map +1 -0
- package/dist/{chunk-IKKP6BZG.js → chunk-JBRQNEBV.js} +32 -16
- package/dist/chunk-JBRQNEBV.js.map +1 -0
- package/dist/{chunk-KA5T736W.js → chunk-R3EG3FOP.js} +2 -2
- package/dist/{chunk-OTQNCLFH.js → chunk-SPP7ACQN.js} +29 -5
- package/dist/chunk-SPP7ACQN.js.map +1 -0
- package/dist/{chunk-RBH47IKH.js → chunk-XZV3HOQW.js} +2 -2
- package/dist/chunk-XZV3HOQW.js.map +1 -0
- package/dist/{connection-5685d817.d.ts → connection-4abad643.d.ts} +1 -1
- package/dist/{connection-7582fb92.d.ts → connection-89a66019.d.ts} +1 -1
- package/dist/{index-a6fe0edd.d.ts → index-a009d7f6.d.ts} +27 -19
- package/dist/logging/index.cjs +28 -4
- package/dist/logging/index.cjs.map +1 -1
- package/dist/logging/index.d.cts +3 -2
- package/dist/logging/index.d.ts +3 -2
- package/dist/logging/index.js +1 -1
- package/dist/router/index.cjs +30 -14
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +9 -8
- package/dist/router/index.d.ts +9 -8
- package/dist/router/index.js +3 -3
- package/dist/{services-e95a89d6.d.ts → services-edc3b16d.d.ts} +4 -4
- package/dist/{services-95cb17b9.d.ts → services-ef89f5b0.d.ts} +4 -4
- package/dist/transport/impls/uds/client.cjs +30 -18
- package/dist/transport/impls/uds/client.cjs.map +1 -1
- package/dist/transport/impls/uds/client.d.cts +3 -2
- package/dist/transport/impls/uds/client.d.ts +3 -2
- package/dist/transport/impls/uds/client.js +4 -4
- package/dist/transport/impls/uds/server.cjs +29 -18
- package/dist/transport/impls/uds/server.cjs.map +1 -1
- package/dist/transport/impls/uds/server.d.cts +3 -2
- package/dist/transport/impls/uds/server.d.ts +3 -2
- package/dist/transport/impls/uds/server.js +4 -4
- package/dist/transport/impls/ws/client.cjs +30 -18
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +3 -2
- package/dist/transport/impls/ws/client.d.ts +3 -2
- package/dist/transport/impls/ws/client.js +4 -4
- package/dist/transport/impls/ws/server.cjs +29 -18
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +4 -3
- package/dist/transport/impls/ws/server.d.ts +4 -3
- package/dist/transport/impls/ws/server.js +4 -4
- package/dist/transport/index.cjs +42 -22
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +10 -9
- package/dist/transport/index.d.ts +10 -9
- package/dist/transport/index.js +3 -3
- package/dist/util/testHelpers.cjs +6 -6
- package/dist/util/testHelpers.cjs.map +1 -1
- package/dist/util/testHelpers.d.cts +3 -2
- package/dist/util/testHelpers.d.ts +3 -2
- package/dist/util/testHelpers.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-AUH7GO52.js.map +0 -1
- package/dist/chunk-IKKP6BZG.js.map +0 -1
- package/dist/chunk-OTQNCLFH.js.map +0 -1
- package/dist/chunk-RBH47IKH.js.map +0 -1
- /package/dist/{chunk-XTVPDTQD.js.map → chunk-3U43VMW2.js.map} +0 -0
- /package/dist/{chunk-KA5T736W.js.map → chunk-R3EG3FOP.js.map} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { C as Codec } from '../types-3e5768ec.js';
|
|
2
|
-
import { O as OpaqueTransportMessage, C as Connection, b as Session, T as TransportClientId,
|
|
3
|
-
export {
|
|
4
|
-
import
|
|
2
|
+
import { O as OpaqueTransportMessage, C as Connection, b as Session, T as TransportClientId, m as PropagationContext, P as PartialTransportMessage, g as ClientHandshakeOptions, c as ServerHandshakeOptions, d as ParsedMetadata, S as SessionOptions } from '../index-a009d7f6.js';
|
|
3
|
+
export { i as OpaqueTransportMessageSchema, j as TransportMessage, h as TransportMessageSchema, l as isStreamClose, k as isStreamOpen } from '../index-a009d7f6.js';
|
|
4
|
+
import '@sinclair/typebox/value';
|
|
5
|
+
import '@sinclair/typebox';
|
|
5
6
|
import '@opentelemetry/api';
|
|
6
7
|
|
|
7
8
|
type ConnectionStatus = 'connect' | 'disconnect';
|
|
@@ -242,7 +243,7 @@ declare abstract class Transport<ConnType extends Connection> {
|
|
|
242
243
|
*/
|
|
243
244
|
destroy(): void;
|
|
244
245
|
}
|
|
245
|
-
declare abstract class ClientTransport<ConnType extends Connection
|
|
246
|
+
declare abstract class ClientTransport<ConnType extends Connection> extends Transport<ConnType> {
|
|
246
247
|
/**
|
|
247
248
|
* The options for this transport.
|
|
248
249
|
*/
|
|
@@ -262,9 +263,9 @@ declare abstract class ClientTransport<ConnType extends Connection, HandshakeMet
|
|
|
262
263
|
/**
|
|
263
264
|
* Optional handshake options for this client.
|
|
264
265
|
*/
|
|
265
|
-
handshakeExtensions?: ClientHandshakeOptions
|
|
266
|
+
handshakeExtensions?: ClientHandshakeOptions;
|
|
266
267
|
constructor(clientId: TransportClientId, providedOptions?: ProvidedClientTransportOptions);
|
|
267
|
-
extendHandshake(options: ClientHandshakeOptions
|
|
268
|
+
extendHandshake(options: ClientHandshakeOptions): void;
|
|
268
269
|
protected handleConnection(conn: ConnType, to: TransportClientId): void;
|
|
269
270
|
receiveHandshakeResponseMessage(data: Uint8Array, conn: ConnType): Session<ConnType> | false;
|
|
270
271
|
/**
|
|
@@ -285,7 +286,7 @@ declare abstract class ClientTransport<ConnType extends Connection, HandshakeMet
|
|
|
285
286
|
protected sendHandshake(to: TransportClientId, conn: ConnType): Promise<boolean>;
|
|
286
287
|
close(): void;
|
|
287
288
|
}
|
|
288
|
-
declare abstract class ServerTransport<ConnType extends Connection
|
|
289
|
+
declare abstract class ServerTransport<ConnType extends Connection> extends Transport<ConnType> {
|
|
289
290
|
/**
|
|
290
291
|
* The options for this transport.
|
|
291
292
|
*/
|
|
@@ -293,13 +294,13 @@ declare abstract class ServerTransport<ConnType extends Connection, CustomMetada
|
|
|
293
294
|
/**
|
|
294
295
|
* Optional handshake options for the server.
|
|
295
296
|
*/
|
|
296
|
-
handshakeExtensions?: ServerHandshakeOptions
|
|
297
|
+
handshakeExtensions?: ServerHandshakeOptions;
|
|
297
298
|
/**
|
|
298
299
|
* A map of session handshake data for each session.
|
|
299
300
|
*/
|
|
300
301
|
sessionHandshakeMetadata: WeakMap<Session<ConnType>, ParsedMetadata>;
|
|
301
302
|
constructor(clientId: TransportClientId, providedOptions?: ProvidedServerTransportOptions);
|
|
302
|
-
extendHandshake(options: ServerHandshakeOptions
|
|
303
|
+
extendHandshake(options: ServerHandshakeOptions): void;
|
|
303
304
|
protected handleConnection(conn: ConnType): void;
|
|
304
305
|
private validateHandshakeMetadata;
|
|
305
306
|
receiveHandshakeRequestMessage(data: Uint8Array, conn: ConnType): Promise<Session<ConnType> | false>;
|
package/dist/transport/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
ServerTransport,
|
|
6
6
|
Session,
|
|
7
7
|
Transport
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-IKT6A32W.js";
|
|
9
9
|
import {
|
|
10
10
|
OpaqueTransportMessageSchema,
|
|
11
11
|
TransportMessageSchema
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-XZV3HOQW.js";
|
|
13
|
+
import "../chunk-SPP7ACQN.js";
|
|
14
14
|
import "../chunk-3AW3IXVD.js";
|
|
15
15
|
export {
|
|
16
16
|
ClientTransport,
|
|
@@ -355,7 +355,7 @@ var log = void 0;
|
|
|
355
355
|
var import_api = require("@opentelemetry/api");
|
|
356
356
|
|
|
357
357
|
// package.json
|
|
358
|
-
var version = "0.23.
|
|
358
|
+
var version = "0.23.3";
|
|
359
359
|
|
|
360
360
|
// tracing/index.ts
|
|
361
361
|
function createSessionTelemetryInfo(session, propagationCtx) {
|
|
@@ -470,7 +470,7 @@ var Session = class {
|
|
|
470
470
|
const fullMsg = this.constructMsg(msg);
|
|
471
471
|
log?.debug(`sending msg`, {
|
|
472
472
|
...this.loggingMetadata,
|
|
473
|
-
|
|
473
|
+
transportMessage: fullMsg
|
|
474
474
|
});
|
|
475
475
|
if (this.connection) {
|
|
476
476
|
const ok = this.connection.send(this.codec.toBuffer(fullMsg));
|
|
@@ -480,13 +480,13 @@ var Session = class {
|
|
|
480
480
|
`failed to send msg to ${fullMsg.to}, connection is probably dead`,
|
|
481
481
|
{
|
|
482
482
|
...this.loggingMetadata,
|
|
483
|
-
|
|
483
|
+
transportMessage: fullMsg
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
486
|
} else {
|
|
487
487
|
log?.info(
|
|
488
488
|
`failed to send msg to ${fullMsg.to}, connection not ready yet`,
|
|
489
|
-
{ ...this.loggingMetadata,
|
|
489
|
+
{ ...this.loggingMetadata, transportMessage: fullMsg }
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
return fullMsg.id;
|
|
@@ -527,7 +527,7 @@ var Session = class {
|
|
|
527
527
|
for (const msg of this.sendBuffer) {
|
|
528
528
|
log?.debug(`resending msg`, {
|
|
529
529
|
...this.loggingMetadata,
|
|
530
|
-
|
|
530
|
+
transportMessage: msg,
|
|
531
531
|
connId: conn.id
|
|
532
532
|
});
|
|
533
533
|
const ok = conn.send(this.codec.toBuffer(msg));
|
|
@@ -539,7 +539,7 @@ var Session = class {
|
|
|
539
539
|
});
|
|
540
540
|
log?.error(errMsg, {
|
|
541
541
|
...this.loggingMetadata,
|
|
542
|
-
|
|
542
|
+
transportMessage: msg,
|
|
543
543
|
connId: conn.id,
|
|
544
544
|
tags: ["invariant-violation"]
|
|
545
545
|
});
|