@replit/river 0.209.2 → 0.209.4
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-L3KNTJU3.js → chunk-MIO5URHT.js} +25 -21
- package/dist/chunk-MIO5URHT.js.map +1 -0
- package/dist/{chunk-OTL2R22H.js → chunk-SWRTP3YW.js} +12 -5
- package/dist/chunk-SWRTP3YW.js.map +1 -0
- package/dist/{chunk-DVAIJ57I.js → chunk-VQAPXMIR.js} +24 -15
- package/dist/chunk-VQAPXMIR.js.map +1 -0
- package/dist/{client-BX3IXUA2.d.cts → client-DXJRow2s.d.cts} +1 -1
- package/dist/{client-CBak1h8Q.d.ts → client-Dw0JBBs3.d.ts} +1 -1
- package/dist/codec/index.js +2 -2
- package/dist/{connection-_eetKnva.d.cts → connection-BWkuQM31.d.cts} +1 -1
- package/dist/{connection-zMlysQKs.d.ts → connection-T0wHyOsa.d.ts} +1 -1
- package/dist/router/index.cjs +6 -2
- 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/{server-BV7GXuhz.d.cts → server-BDSYa-CO.d.cts} +1 -1
- package/dist/{server-B_H1zn-R.d.ts → server-DFOzjvLh.d.ts} +1 -1
- package/dist/{services-DtsSIaec.d.ts → services-DEubFUIR.d.ts} +12 -20
- package/dist/{services-BIMmk-v4.d.cts → services-GJyw0jKV.d.cts} +12 -20
- package/dist/testUtil/index.cjs +15 -6
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +4 -4
- package/dist/testUtil/index.d.ts +4 -4
- package/dist/testUtil/index.js +3 -3
- package/dist/transport/impls/ws/client.cjs +25 -9
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +3 -3
- package/dist/transport/impls/ws/client.d.ts +3 -3
- package/dist/transport/impls/ws/client.js +3 -3
- package/dist/transport/impls/ws/server.cjs +13 -5
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +3 -3
- package/dist/transport/impls/ws/server.d.ts +3 -3
- package/dist/transport/impls/ws/server.js +3 -3
- package/dist/transport/index.cjs +15 -6
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -4
- package/dist/transport/index.d.ts +4 -4
- package/dist/transport/index.js +3 -3
- package/dist/{handshake-B3iu79B0.d.cts → transport-CxT7y8Qk.d.cts} +107 -102
- package/dist/{handshake-DNinPBA3.d.ts → transport-pdbkDzmJ.d.ts} +107 -102
- package/package.json +1 -1
- package/dist/chunk-DVAIJ57I.js.map +0 -1
- package/dist/chunk-L3KNTJU3.js.map +0 -1
- package/dist/chunk-OTL2R22H.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as TransportClientId } from '../../../message-Dlsh5WDF.cjs';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-BWkuQM31.cjs';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
|
|
5
|
-
import { S as ServerTransport } from '../../../server-
|
|
6
|
-
import { c as ProvidedServerTransportOptions } from '../../../
|
|
5
|
+
import { S as ServerTransport } from '../../../server-BDSYa-CO.cjs';
|
|
6
|
+
import { c as ProvidedServerTransportOptions } from '../../../transport-CxT7y8Qk.cjs';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import { TSchema } from '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as TransportClientId } from '../../../message-Dlsh5WDF.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-T0wHyOsa.js';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
|
|
5
|
-
import { S as ServerTransport } from '../../../server-
|
|
6
|
-
import { c as ProvidedServerTransportOptions } from '../../../
|
|
5
|
+
import { S as ServerTransport } from '../../../server-DFOzjvLh.js';
|
|
6
|
+
import { c as ProvidedServerTransportOptions } from '../../../transport-pdbkDzmJ.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import { TSchema } from '@sinclair/typebox';
|
|
9
9
|
import '@opentelemetry/api';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-SWRTP3YW.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-L3KNTJU3.js";
|
|
6
|
+
} from "../../../chunk-VQAPXMIR.js";
|
|
8
7
|
import "../../../chunk-CC7RN7GI.js";
|
|
8
|
+
import "../../../chunk-MIO5URHT.js";
|
|
9
9
|
|
|
10
10
|
// transport/impls/ws/server.ts
|
|
11
11
|
function cleanHeaders(headers) {
|
package/dist/transport/index.cjs
CHANGED
|
@@ -197,7 +197,8 @@ var defaultConnectionRetryOptions = {
|
|
|
197
197
|
maxJitterMs: 200,
|
|
198
198
|
maxBackoffMs: 32e3,
|
|
199
199
|
attemptBudgetCapacity: 5,
|
|
200
|
-
budgetRestoreIntervalMs: 200
|
|
200
|
+
budgetRestoreIntervalMs: 200,
|
|
201
|
+
isFatalConnectionError: () => false
|
|
201
202
|
};
|
|
202
203
|
var defaultClientTransportOptions = {
|
|
203
204
|
...defaultTransportOptions,
|
|
@@ -640,7 +641,7 @@ function coerceErrorString(err) {
|
|
|
640
641
|
}
|
|
641
642
|
|
|
642
643
|
// package.json
|
|
643
|
-
var version = "0.209.
|
|
644
|
+
var version = "0.209.4";
|
|
644
645
|
|
|
645
646
|
// tracing/index.ts
|
|
646
647
|
function getPropagationContext(ctx) {
|
|
@@ -1817,10 +1818,18 @@ var ClientTransport = class extends Transport {
|
|
|
1817
1818
|
const connectedSession = ClientSessionStateGraph.transition.HandshakingToConnected(session, {
|
|
1818
1819
|
onConnectionErrored: (err) => {
|
|
1819
1820
|
const errStr = coerceErrorString(err);
|
|
1820
|
-
this.
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1821
|
+
if (err instanceof Error && this.options.isFatalConnectionError(err)) {
|
|
1822
|
+
this.log?.warn(
|
|
1823
|
+
`connection to ${connectedSession.to} fatally errored: ${errStr}`,
|
|
1824
|
+
connectedSession.loggingMetadata
|
|
1825
|
+
);
|
|
1826
|
+
this.reconnectOnConnectionDrop = false;
|
|
1827
|
+
} else {
|
|
1828
|
+
this.log?.warn(
|
|
1829
|
+
`connection to ${connectedSession.to} errored: ${errStr}`,
|
|
1830
|
+
connectedSession.loggingMetadata
|
|
1831
|
+
);
|
|
1832
|
+
}
|
|
1824
1833
|
},
|
|
1825
1834
|
onConnectionClosed: () => {
|
|
1826
1835
|
this.log?.info(
|