@replit/river 0.209.3 → 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-EHTVQM2C.js → chunk-MIO5URHT.js} +2 -2
- package/dist/chunk-MIO5URHT.js.map +1 -0
- package/dist/{chunk-JRBDMLR3.js → chunk-SWRTP3YW.js} +12 -5
- package/dist/chunk-SWRTP3YW.js.map +1 -0
- package/dist/{chunk-I24PIZXW.js → chunk-VQAPXMIR.js} +16 -7
- package/dist/chunk-VQAPXMIR.js.map +1 -0
- package/dist/{client-aETS93z1.d.cts → client-DXJRow2s.d.cts} +1 -1
- package/dist/{client-BzJwq-hg.d.ts → client-Dw0JBBs3.d.ts} +1 -1
- package/dist/codec/index.js +2 -2
- package/dist/{connection-hUWlS-hg.d.cts → connection-BWkuQM31.d.cts} +1 -1
- package/dist/{connection-b1wd5XrC.d.ts → connection-T0wHyOsa.d.ts} +1 -1
- package/dist/router/index.cjs +1 -1
- 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-BBgDVOzk.d.cts → server-BDSYa-CO.d.cts} +1 -1
- package/dist/{server-DZ0Yzmpf.d.ts → server-DFOzjvLh.d.ts} +1 -1
- package/dist/{services-DYik59tk.d.ts → services-DEubFUIR.d.ts} +4 -4
- package/dist/{services-C53K219K.d.cts → services-GJyw0jKV.d.cts} +4 -4
- 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 +2 -2
- 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 +3 -3
- package/dist/transport/index.d.ts +3 -3
- package/dist/transport/index.js +2 -2
- package/dist/{transport-CxjUaGhi.d.cts → transport-CxT7y8Qk.d.cts} +5 -0
- package/dist/{transport-DwEB67zY.d.ts → transport-pdbkDzmJ.d.ts} +5 -0
- package/package.json +1 -1
- package/dist/chunk-EHTVQM2C.js.map +0 -1
- package/dist/chunk-I24PIZXW.js.map +0 -1
- package/dist/chunk-JRBDMLR3.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-DXJRow2s.cjs';
|
|
2
2
|
import { c as TransportClientId } from '../../../message-Dlsh5WDF.cjs';
|
|
3
|
-
import { b as ProvidedClientTransportOptions } from '../../../transport-
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { b as ProvidedClientTransportOptions } from '../../../transport-CxT7y8Qk.cjs';
|
|
4
|
+
import { W as WebSocketConnection } from '../../../connection-BWkuQM31.cjs';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
|
|
6
6
|
import '@sinclair/typebox';
|
|
7
7
|
import '@opentelemetry/api';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as ClientTransport } from '../../../client-
|
|
1
|
+
import { C as ClientTransport } from '../../../client-Dw0JBBs3.js';
|
|
2
2
|
import { c as TransportClientId } from '../../../message-Dlsh5WDF.js';
|
|
3
|
-
import { b as ProvidedClientTransportOptions } from '../../../transport-
|
|
4
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { b as ProvidedClientTransportOptions } from '../../../transport-pdbkDzmJ.js';
|
|
4
|
+
import { W as WebSocketConnection } from '../../../connection-T0wHyOsa.js';
|
|
5
5
|
import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
|
|
6
6
|
import '@sinclair/typebox';
|
|
7
7
|
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
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-VQAPXMIR.js";
|
|
7
7
|
import "../../../chunk-CC7RN7GI.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-MIO5URHT.js";
|
|
9
9
|
|
|
10
10
|
// transport/impls/ws/client.ts
|
|
11
11
|
var WebSocketClientTransport = class extends ClientTransport {
|
|
@@ -104,6 +104,15 @@ var Connection = class {
|
|
|
104
104
|
|
|
105
105
|
// transport/impls/ws/connection.ts
|
|
106
106
|
var WS_HEALTHY_CLOSE_CODE = 1e3;
|
|
107
|
+
var WebSocketCloseError = class extends Error {
|
|
108
|
+
code;
|
|
109
|
+
reason;
|
|
110
|
+
constructor(code, reason) {
|
|
111
|
+
super(`websocket closed with code and reason: ${code} - ${reason}`);
|
|
112
|
+
this.code = code;
|
|
113
|
+
this.reason = reason;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
107
116
|
var WebSocketConnection = class extends Connection {
|
|
108
117
|
ws;
|
|
109
118
|
extras;
|
|
@@ -125,9 +134,7 @@ var WebSocketConnection = class extends Connection {
|
|
|
125
134
|
};
|
|
126
135
|
this.ws.onclose = ({ code, reason }) => {
|
|
127
136
|
if (didError) {
|
|
128
|
-
const err = new
|
|
129
|
-
`websocket closed with code and reason: ${code} - ${reason}`
|
|
130
|
-
);
|
|
137
|
+
const err = new WebSocketCloseError(code, reason);
|
|
131
138
|
this.onError(err);
|
|
132
139
|
}
|
|
133
140
|
this.onClose();
|
|
@@ -331,7 +338,8 @@ var defaultConnectionRetryOptions = {
|
|
|
331
338
|
maxJitterMs: 200,
|
|
332
339
|
maxBackoffMs: 32e3,
|
|
333
340
|
attemptBudgetCapacity: 5,
|
|
334
|
-
budgetRestoreIntervalMs: 200
|
|
341
|
+
budgetRestoreIntervalMs: 200,
|
|
342
|
+
isFatalConnectionError: () => false
|
|
335
343
|
};
|
|
336
344
|
var defaultClientTransportOptions = {
|
|
337
345
|
...defaultTransportOptions,
|
|
@@ -719,7 +727,7 @@ function coerceErrorString(err) {
|
|
|
719
727
|
}
|
|
720
728
|
|
|
721
729
|
// package.json
|
|
722
|
-
var version = "0.209.
|
|
730
|
+
var version = "0.209.4";
|
|
723
731
|
|
|
724
732
|
// tracing/index.ts
|
|
725
733
|
function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
|