@replit/river 0.209.2 → 0.209.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-L3KNTJU3.js → chunk-EHTVQM2C.js} +25 -21
- package/dist/chunk-EHTVQM2C.js.map +1 -0
- package/dist/{chunk-DVAIJ57I.js → chunk-I24PIZXW.js} +10 -10
- package/dist/{chunk-OTL2R22H.js → chunk-JRBDMLR3.js} +2 -2
- package/dist/{client-CBak1h8Q.d.ts → client-BzJwq-hg.d.ts} +1 -1
- package/dist/{client-BX3IXUA2.d.cts → client-aETS93z1.d.cts} +1 -1
- package/dist/codec/index.js +2 -2
- package/dist/{connection-zMlysQKs.d.ts → connection-b1wd5XrC.d.ts} +1 -1
- package/dist/{connection-_eetKnva.d.cts → connection-hUWlS-hg.d.cts} +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-BBgDVOzk.d.cts} +1 -1
- package/dist/{server-B_H1zn-R.d.ts → server-DZ0Yzmpf.d.ts} +1 -1
- package/dist/{services-BIMmk-v4.d.cts → services-C53K219K.d.cts} +10 -18
- package/dist/{services-DtsSIaec.d.ts → services-DYik59tk.d.ts} +10 -18
- package/dist/testUtil/index.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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-CxjUaGhi.d.cts} +102 -102
- package/dist/{handshake-DNinPBA3.d.ts → transport-DwEB67zY.d.ts} +102 -102
- package/package.json +1 -1
- package/dist/chunk-L3KNTJU3.js.map +0 -1
- /package/dist/{chunk-DVAIJ57I.js.map → chunk-I24PIZXW.js.map} +0 -0
- /package/dist/{chunk-OTL2R22H.js.map → chunk-JRBDMLR3.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-
|
|
2
|
-
export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-
|
|
1
|
+
import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-C53K219K.cjs';
|
|
2
|
+
export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-C53K219K.cjs';
|
|
3
3
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
4
4
|
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.cjs';
|
|
5
|
-
import { C as Connection, q as ServerHandshakeOptions } from '../
|
|
6
|
-
export { r as createClientHandshakeOptions, s as createServerHandshakeOptions } from '../
|
|
7
|
-
import { S as ServerTransport } from '../server-
|
|
5
|
+
import { C as Connection, q as ServerHandshakeOptions } from '../transport-CxjUaGhi.cjs';
|
|
6
|
+
export { r as createClientHandshakeOptions, s as createServerHandshakeOptions } from '../transport-CxjUaGhi.cjs';
|
|
7
|
+
import { S as ServerTransport } from '../server-BBgDVOzk.cjs';
|
|
8
8
|
import '@opentelemetry/api';
|
|
9
|
-
import '../client-
|
|
9
|
+
import '../client-aETS93z1.cjs';
|
|
10
10
|
import '../index-D9R6UTMl.cjs';
|
|
11
11
|
import '../adapter-DjiEwOYi.cjs';
|
|
12
12
|
|
|
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
|
|
|
74
74
|
middlewares?: Array<Middleware>;
|
|
75
75
|
}>): Server<Context, ParsedMetadata, Services>;
|
|
76
76
|
|
|
77
|
-
var version = "0.209.
|
|
77
|
+
var version = "0.209.3";
|
|
78
78
|
|
|
79
79
|
export { type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-
|
|
2
|
-
export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-
|
|
1
|
+
import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-DYik59tk.js';
|
|
2
|
+
export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-DYik59tk.js';
|
|
3
3
|
import { TSchema, Static } from '@sinclair/typebox';
|
|
4
4
|
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.js';
|
|
5
|
-
import { C as Connection, q as ServerHandshakeOptions } from '../
|
|
6
|
-
export { r as createClientHandshakeOptions, s as createServerHandshakeOptions } from '../
|
|
7
|
-
import { S as ServerTransport } from '../server-
|
|
5
|
+
import { C as Connection, q as ServerHandshakeOptions } from '../transport-DwEB67zY.js';
|
|
6
|
+
export { r as createClientHandshakeOptions, s as createServerHandshakeOptions } from '../transport-DwEB67zY.js';
|
|
7
|
+
import { S as ServerTransport } from '../server-DZ0Yzmpf.js';
|
|
8
8
|
import '@opentelemetry/api';
|
|
9
|
-
import '../client-
|
|
9
|
+
import '../client-BzJwq-hg.js';
|
|
10
10
|
import '../index-CSM8soK7.js';
|
|
11
11
|
import '../adapter-Cp7_gIVA.js';
|
|
12
12
|
|
|
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
|
|
|
74
74
|
middlewares?: Array<Middleware>;
|
|
75
75
|
}>): Server<Context, ParsedMetadata, Services>;
|
|
76
76
|
|
|
77
|
-
var version = "0.209.
|
|
77
|
+
var version = "0.209.3";
|
|
78
78
|
|
|
79
79
|
export { type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Connection, t as CommonSession, d as SessionState, u as CommonSessionProps, T as Transport, v as ServerTransportOptions, q as ServerHandshakeOptions, w as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './
|
|
1
|
+
import { C as Connection, t as CommonSession, d as SessionState, u as CommonSessionProps, T as Transport, v as ServerTransportOptions, q as ServerHandshakeOptions, w as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './transport-CxjUaGhi.cjs';
|
|
2
2
|
import { b as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, P as ProtocolVersion, a as TransportMessage, c as TransportClientId } from './message-Dlsh5WDF.cjs';
|
|
3
3
|
import { Static, TSchema } from '@sinclair/typebox';
|
|
4
4
|
import { T as Tags } from './index-D9R6UTMl.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Connection, t as CommonSession, d as SessionState, u as CommonSessionProps, T as Transport, v as ServerTransportOptions, q as ServerHandshakeOptions, w as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './
|
|
1
|
+
import { C as Connection, t as CommonSession, d as SessionState, u as CommonSessionProps, T as Transport, v as ServerTransportOptions, q as ServerHandshakeOptions, w as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './transport-DwEB67zY.js';
|
|
2
2
|
import { b as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, P as ProtocolVersion, a as TransportMessage, c as TransportClientId } from './message-Dlsh5WDF.js';
|
|
3
3
|
import { Static, TSchema } from '@sinclair/typebox';
|
|
4
4
|
import { T as Tags } from './index-CSM8soK7.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
|
-
import {
|
|
2
|
+
import { TObject, TLiteral, TString, TSchema, TNever, TUnion, Static } from '@sinclair/typebox';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { c as TransportClientId } from './message-Dlsh5WDF.cjs';
|
|
5
|
-
import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './
|
|
6
|
-
import { C as ClientTransport } from './client-
|
|
5
|
+
import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './transport-CxjUaGhi.cjs';
|
|
6
|
+
import { C as ClientTransport } from './client-aETS93z1.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* {@link UNCAUGHT_ERROR_CODE} is the code that is used when an error is thrown
|
|
@@ -93,13 +93,13 @@ declare const ReadableBrokenError: {
|
|
|
93
93
|
/**
|
|
94
94
|
* Similar to {@link Result} but with an extra error to handle cases where {@link Readable.break} is called
|
|
95
95
|
*/
|
|
96
|
-
type ReadableResult<T, E extends Static<BaseErrorSchemaType>> = Result<T, E | typeof ReadableBrokenError>;
|
|
96
|
+
type ReadableResult<T, E extends Static<BaseErrorSchemaType> = Static<BaseErrorSchemaType>> = Result<T, E | typeof ReadableBrokenError>;
|
|
97
97
|
/**
|
|
98
98
|
* A simple {@link AsyncIterator} used in {@link Readable}
|
|
99
99
|
* that doesn't have a the extra "return" and "throw" methods, and
|
|
100
100
|
* the doesn't have a "done value" (TReturn).
|
|
101
101
|
*/
|
|
102
|
-
interface ReadableIterator<T, E extends Static<BaseErrorSchemaType>> {
|
|
102
|
+
interface ReadableIterator<T, E extends Static<BaseErrorSchemaType>> extends AsyncIterator<ReadableResult<T, E>> {
|
|
103
103
|
next(): Promise<{
|
|
104
104
|
done: false;
|
|
105
105
|
value: ReadableResult<T, E>;
|
|
@@ -221,19 +221,11 @@ declare class ReadableImpl<T, E extends Static<BaseErrorSchemaType>> implements
|
|
|
221
221
|
* should check for the next value.
|
|
222
222
|
*/
|
|
223
223
|
private next;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
readonly done: false;
|
|
230
|
-
readonly value: ReadableResult<T, E>;
|
|
231
|
-
}>;
|
|
232
|
-
return: () => {
|
|
233
|
-
readonly done: true;
|
|
234
|
-
readonly value: undefined;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
224
|
+
/**
|
|
225
|
+
* Consumes the {@link Readable} and returns an {@link AsyncIterator} that can be used
|
|
226
|
+
* to iterate over the values in the {@link Readable}.
|
|
227
|
+
*/
|
|
228
|
+
[Symbol.asyncIterator](): ReadableIterator<T, E>;
|
|
237
229
|
/**
|
|
238
230
|
* Collects all the values from the {@link Readable} into an array.
|
|
239
231
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
2
|
-
import {
|
|
2
|
+
import { TObject, TLiteral, TString, TSchema, TNever, TUnion, Static } from '@sinclair/typebox';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { c as TransportClientId } from './message-Dlsh5WDF.js';
|
|
5
|
-
import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './
|
|
6
|
-
import { C as ClientTransport } from './client-
|
|
5
|
+
import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './transport-DwEB67zY.js';
|
|
6
|
+
import { C as ClientTransport } from './client-BzJwq-hg.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* {@link UNCAUGHT_ERROR_CODE} is the code that is used when an error is thrown
|
|
@@ -93,13 +93,13 @@ declare const ReadableBrokenError: {
|
|
|
93
93
|
/**
|
|
94
94
|
* Similar to {@link Result} but with an extra error to handle cases where {@link Readable.break} is called
|
|
95
95
|
*/
|
|
96
|
-
type ReadableResult<T, E extends Static<BaseErrorSchemaType>> = Result<T, E | typeof ReadableBrokenError>;
|
|
96
|
+
type ReadableResult<T, E extends Static<BaseErrorSchemaType> = Static<BaseErrorSchemaType>> = Result<T, E | typeof ReadableBrokenError>;
|
|
97
97
|
/**
|
|
98
98
|
* A simple {@link AsyncIterator} used in {@link Readable}
|
|
99
99
|
* that doesn't have a the extra "return" and "throw" methods, and
|
|
100
100
|
* the doesn't have a "done value" (TReturn).
|
|
101
101
|
*/
|
|
102
|
-
interface ReadableIterator<T, E extends Static<BaseErrorSchemaType>> {
|
|
102
|
+
interface ReadableIterator<T, E extends Static<BaseErrorSchemaType>> extends AsyncIterator<ReadableResult<T, E>> {
|
|
103
103
|
next(): Promise<{
|
|
104
104
|
done: false;
|
|
105
105
|
value: ReadableResult<T, E>;
|
|
@@ -221,19 +221,11 @@ declare class ReadableImpl<T, E extends Static<BaseErrorSchemaType>> implements
|
|
|
221
221
|
* should check for the next value.
|
|
222
222
|
*/
|
|
223
223
|
private next;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
readonly done: false;
|
|
230
|
-
readonly value: ReadableResult<T, E>;
|
|
231
|
-
}>;
|
|
232
|
-
return: () => {
|
|
233
|
-
readonly done: true;
|
|
234
|
-
readonly value: undefined;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
224
|
+
/**
|
|
225
|
+
* Consumes the {@link Readable} and returns an {@link AsyncIterator} that can be used
|
|
226
|
+
* to iterate over the values in the {@link Readable}.
|
|
227
|
+
*/
|
|
228
|
+
[Symbol.asyncIterator](): ReadableIterator<T, E>;
|
|
237
229
|
/**
|
|
238
230
|
* Collects all the values from the {@link Readable} into an array.
|
|
239
231
|
*
|