@replit/river 0.209.4 → 0.209.5
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-MIO5URHT.js → chunk-JY4555JT.js} +2 -2
- package/dist/{chunk-MIO5URHT.js.map → chunk-JY4555JT.js.map} +1 -1
- package/dist/{chunk-VQAPXMIR.js → chunk-Y6YEPMH6.js} +58 -2
- package/dist/chunk-Y6YEPMH6.js.map +1 -0
- package/dist/codec/index.js +2 -2
- package/dist/{connection-T0wHyOsa.d.ts → connection-C2lYgRh0.d.ts} +6 -1
- package/dist/{connection-BWkuQM31.d.cts → connection-Dzkqj18h.d.cts} +6 -1
- package/dist/router/index.cjs +1 -1
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +3 -3
- package/dist/router/index.d.ts +3 -3
- package/dist/router/index.js +1 -1
- package/dist/{services-GJyw0jKV.d.cts → services-BXjRTxa7.d.cts} +1 -1
- package/dist/{services-DEubFUIR.d.ts → services-BsHCCIEq.d.ts} +1 -1
- package/dist/testUtil/index.cjs +1 -1
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +2 -2
- package/dist/testUtil/index.d.ts +2 -2
- package/dist/testUtil/index.js +2 -2
- package/dist/transport/impls/ws/client.cjs +55 -55
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +1 -1
- package/dist/transport/impls/ws/client.d.ts +1 -1
- package/dist/transport/impls/ws/client.js +3 -5
- package/dist/transport/impls/ws/client.js.map +1 -1
- package/dist/transport/impls/ws/server.cjs +1 -1
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +1 -1
- package/dist/transport/impls/ws/server.d.ts +1 -1
- package/dist/transport/impls/ws/server.js +3 -5
- package/dist/transport/impls/ws/server.js.map +1 -1
- package/dist/transport/index.cjs +61 -3
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +2 -0
- package/dist/transport/index.d.ts +2 -0
- package/dist/transport/index.js +8 -4
- package/package.json +1 -9
- package/dist/chunk-SWRTP3YW.js +0 -62
- package/dist/chunk-SWRTP3YW.js.map +0 -1
- package/dist/chunk-VQAPXMIR.js.map +0 -1
|
@@ -3,10 +3,10 @@ import { C as ClientTransport } from '../client-DXJRow2s.cjs';
|
|
|
3
3
|
import { S as ServerTransport } from '../server-BDSYa-CO.cjs';
|
|
4
4
|
import { c as TransportClientId, e as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.cjs';
|
|
5
5
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
6
|
-
import { J as BaseErrorSchemaType, v as Readable, _ as ReadableIterator, w as ReadableResult } from '../services-
|
|
6
|
+
import { J as BaseErrorSchemaType, v as Readable, _ as ReadableIterator, w as ReadableResult } from '../services-BXjRTxa7.cjs';
|
|
7
|
+
import { W as WsLike } from '../wslike-Dng9H1C7.cjs';
|
|
7
8
|
import NodeWs from 'ws';
|
|
8
9
|
import http from 'node:http';
|
|
9
|
-
import { W as WsLike } from '../wslike-Dng9H1C7.cjs';
|
|
10
10
|
import { Duplex } from 'node:stream';
|
|
11
11
|
import '../index-D9R6UTMl.cjs';
|
|
12
12
|
import '../adapter-DjiEwOYi.cjs';
|
package/dist/testUtil/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { C as ClientTransport } from '../client-Dw0JBBs3.js';
|
|
|
3
3
|
import { S as ServerTransport } from '../server-DFOzjvLh.js';
|
|
4
4
|
import { c as TransportClientId, e as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.js';
|
|
5
5
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
6
|
-
import { J as BaseErrorSchemaType, v as Readable, _ as ReadableIterator, w as ReadableResult } from '../services-
|
|
6
|
+
import { J as BaseErrorSchemaType, v as Readable, _ as ReadableIterator, w as ReadableResult } from '../services-BsHCCIEq.js';
|
|
7
|
+
import { W as WsLike } from '../wslike-Dng9H1C7.js';
|
|
7
8
|
import NodeWs from 'ws';
|
|
8
9
|
import http from 'node:http';
|
|
9
|
-
import { W as WsLike } from '../wslike-Dng9H1C7.js';
|
|
10
10
|
import { Duplex } from 'node:stream';
|
|
11
11
|
import '../index-CSM8soK7.js';
|
|
12
12
|
import '../adapter-Cp7_gIVA.js';
|
package/dist/testUtil/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
SessionStateGraph,
|
|
6
6
|
defaultClientTransportOptions,
|
|
7
7
|
defaultTransportOptions
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-Y6YEPMH6.js";
|
|
9
9
|
import "../chunk-CC7RN7GI.js";
|
|
10
10
|
import {
|
|
11
11
|
currentProtocolVersion,
|
|
12
12
|
getTracer
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-JY4555JT.js";
|
|
14
14
|
|
|
15
15
|
// testUtil/index.ts
|
|
16
16
|
import NodeWs, { WebSocketServer } from "ws";
|
|
@@ -674,7 +674,7 @@ function coerceErrorString(err) {
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
// package.json
|
|
677
|
-
var version = "0.209.
|
|
677
|
+
var version = "0.209.5";
|
|
678
678
|
|
|
679
679
|
// tracing/index.ts
|
|
680
680
|
function getPropagationContext(ctx) {
|
|
@@ -1095,6 +1095,60 @@ var Connection = class {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
1097
|
|
|
1098
|
+
// transport/impls/ws/connection.ts
|
|
1099
|
+
var WS_HEALTHY_CLOSE_CODE = 1e3;
|
|
1100
|
+
var WebSocketCloseError = class extends Error {
|
|
1101
|
+
code;
|
|
1102
|
+
reason;
|
|
1103
|
+
constructor(code, reason) {
|
|
1104
|
+
super(`websocket closed with code and reason: ${code} - ${reason}`);
|
|
1105
|
+
this.code = code;
|
|
1106
|
+
this.reason = reason;
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
var WebSocketConnection = class extends Connection {
|
|
1110
|
+
ws;
|
|
1111
|
+
extras;
|
|
1112
|
+
get loggingMetadata() {
|
|
1113
|
+
const metadata = super.loggingMetadata;
|
|
1114
|
+
if (this.extras) {
|
|
1115
|
+
metadata.extras = this.extras;
|
|
1116
|
+
}
|
|
1117
|
+
return metadata;
|
|
1118
|
+
}
|
|
1119
|
+
constructor(ws, extras) {
|
|
1120
|
+
super();
|
|
1121
|
+
this.ws = ws;
|
|
1122
|
+
this.extras = extras;
|
|
1123
|
+
this.ws.binaryType = "arraybuffer";
|
|
1124
|
+
let didError = false;
|
|
1125
|
+
this.ws.onerror = () => {
|
|
1126
|
+
didError = true;
|
|
1127
|
+
};
|
|
1128
|
+
this.ws.onclose = ({ code, reason }) => {
|
|
1129
|
+
if (didError) {
|
|
1130
|
+
const err = new WebSocketCloseError(code, reason);
|
|
1131
|
+
this.onError(err);
|
|
1132
|
+
}
|
|
1133
|
+
this.onClose();
|
|
1134
|
+
};
|
|
1135
|
+
this.ws.onmessage = (msg) => {
|
|
1136
|
+
this.onData(msg.data);
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
send(payload) {
|
|
1140
|
+
try {
|
|
1141
|
+
this.ws.send(payload);
|
|
1142
|
+
return true;
|
|
1143
|
+
} catch {
|
|
1144
|
+
return false;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
close() {
|
|
1148
|
+
this.ws.close(WS_HEALTHY_CLOSE_CODE);
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1098
1152
|
// codec/adapter.ts
|
|
1099
1153
|
var CodecMessageAdapter = class {
|
|
1100
1154
|
constructor(codec) {
|
|
@@ -2061,60 +2115,6 @@ var ClientTransport = class extends Transport {
|
|
|
2061
2115
|
}
|
|
2062
2116
|
};
|
|
2063
2117
|
|
|
2064
|
-
// transport/impls/ws/connection.ts
|
|
2065
|
-
var WS_HEALTHY_CLOSE_CODE = 1e3;
|
|
2066
|
-
var WebSocketCloseError = class extends Error {
|
|
2067
|
-
code;
|
|
2068
|
-
reason;
|
|
2069
|
-
constructor(code, reason) {
|
|
2070
|
-
super(`websocket closed with code and reason: ${code} - ${reason}`);
|
|
2071
|
-
this.code = code;
|
|
2072
|
-
this.reason = reason;
|
|
2073
|
-
}
|
|
2074
|
-
};
|
|
2075
|
-
var WebSocketConnection = class extends Connection {
|
|
2076
|
-
ws;
|
|
2077
|
-
extras;
|
|
2078
|
-
get loggingMetadata() {
|
|
2079
|
-
const metadata = super.loggingMetadata;
|
|
2080
|
-
if (this.extras) {
|
|
2081
|
-
metadata.extras = this.extras;
|
|
2082
|
-
}
|
|
2083
|
-
return metadata;
|
|
2084
|
-
}
|
|
2085
|
-
constructor(ws, extras) {
|
|
2086
|
-
super();
|
|
2087
|
-
this.ws = ws;
|
|
2088
|
-
this.extras = extras;
|
|
2089
|
-
this.ws.binaryType = "arraybuffer";
|
|
2090
|
-
let didError = false;
|
|
2091
|
-
this.ws.onerror = () => {
|
|
2092
|
-
didError = true;
|
|
2093
|
-
};
|
|
2094
|
-
this.ws.onclose = ({ code, reason }) => {
|
|
2095
|
-
if (didError) {
|
|
2096
|
-
const err = new WebSocketCloseError(code, reason);
|
|
2097
|
-
this.onError(err);
|
|
2098
|
-
}
|
|
2099
|
-
this.onClose();
|
|
2100
|
-
};
|
|
2101
|
-
this.ws.onmessage = (msg) => {
|
|
2102
|
-
this.onData(msg.data);
|
|
2103
|
-
};
|
|
2104
|
-
}
|
|
2105
|
-
send(payload) {
|
|
2106
|
-
try {
|
|
2107
|
-
this.ws.send(payload);
|
|
2108
|
-
return true;
|
|
2109
|
-
} catch {
|
|
2110
|
-
return false;
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
close() {
|
|
2114
|
-
this.ws.close(WS_HEALTHY_CLOSE_CODE);
|
|
2115
|
-
}
|
|
2116
|
-
};
|
|
2117
|
-
|
|
2118
2118
|
// transport/impls/ws/client.ts
|
|
2119
2119
|
var WebSocketClientTransport = class extends ClientTransport {
|
|
2120
2120
|
/**
|