@replit/river 0.23.2 → 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-KPLLLP3F.js → chunk-3U43VMW2.js} +2 -2
- package/dist/{chunk-LHLQY5FR.js → chunk-IKT6A32W.js} +3 -3
- package/dist/chunk-IKT6A32W.js.map +1 -0
- package/dist/{chunk-ZPUDMABQ.js → chunk-JBRQNEBV.js} +2 -2
- package/dist/{chunk-ZPUDMABQ.js.map → chunk-JBRQNEBV.js.map} +1 -1
- package/dist/{chunk-6Z4YTBOM.js → chunk-R3EG3FOP.js} +2 -2
- package/dist/{chunk-3ZS3RHZF.js → chunk-XZV3HOQW.js} +2 -2
- package/dist/chunk-XZV3HOQW.js.map +1 -0
- package/dist/{connection-a25109b5.d.ts → connection-4abad643.d.ts} +1 -1
- package/dist/{connection-6eb86e22.d.ts → connection-89a66019.d.ts} +1 -1
- package/dist/{index-72b688b7.d.ts → index-a009d7f6.d.ts} +11 -3
- package/dist/logging/index.d.cts +1 -1
- package/dist/logging/index.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 +8 -8
- package/dist/router/index.d.ts +8 -8
- package/dist/router/index.js +2 -2
- package/dist/{services-eeb6e56f.d.ts → services-edc3b16d.d.ts} +4 -4
- package/dist/{services-0af830a4.d.ts → services-ef89f5b0.d.ts} +4 -4
- package/dist/transport/impls/uds/client.cjs +2 -2
- package/dist/transport/impls/uds/client.cjs.map +1 -1
- package/dist/transport/impls/uds/client.d.cts +3 -3
- package/dist/transport/impls/uds/client.d.ts +3 -3
- package/dist/transport/impls/uds/client.js +3 -3
- package/dist/transport/impls/uds/server.cjs +1 -1
- package/dist/transport/impls/uds/server.cjs.map +1 -1
- package/dist/transport/impls/uds/server.d.cts +3 -3
- package/dist/transport/impls/uds/server.d.ts +3 -3
- package/dist/transport/impls/uds/server.js +3 -3
- package/dist/transport/impls/ws/client.cjs +2 -2
- 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 +2 -2
- package/dist/transport/impls/ws/server.d.ts +2 -2
- package/dist/transport/impls/ws/server.js +3 -3
- package/dist/transport/index.cjs +2 -2
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +9 -9
- package/dist/transport/index.d.ts +9 -9
- package/dist/transport/index.js +2 -2
- package/dist/util/testHelpers.cjs +1 -1
- package/dist/util/testHelpers.cjs.map +1 -1
- package/dist/util/testHelpers.d.cts +2 -2
- package/dist/util/testHelpers.d.ts +2 -2
- package/dist/util/testHelpers.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-3ZS3RHZF.js.map +0 -1
- package/dist/chunk-LHLQY5FR.js.map +0 -1
- /package/dist/{chunk-KPLLLP3F.js.map → chunk-3U43VMW2.js.map} +0 -0
- /package/dist/{chunk-6Z4YTBOM.js.map → chunk-R3EG3FOP.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-
|
|
2
|
-
export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-
|
|
3
|
-
import { Static
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-edc3b16d.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-edc3b16d.js';
|
|
3
|
+
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { ServerTransport } from '../transport/index.cjs';
|
|
5
5
|
import { Pushable } from 'it-pushable';
|
|
6
|
-
import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-
|
|
7
|
-
export { d as
|
|
6
|
+
import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-a009d7f6.js';
|
|
7
|
+
export { d as ParsedMetadata, e as ServiceContextWithState, f as ServiceContextWithTransportInfo } from '../index-a009d7f6.js';
|
|
8
8
|
import '../types-3e5768ec.js';
|
|
9
9
|
import '@sinclair/typebox/value';
|
|
10
10
|
import '@opentelemetry/api';
|
|
@@ -38,11 +38,11 @@ interface ProcStream {
|
|
|
38
38
|
* @param extendedContext - An optional object containing additional context to be passed to all services.
|
|
39
39
|
* @returns A promise that resolves to a server instance with the registered services.
|
|
40
40
|
*/
|
|
41
|
-
declare function createServer<Services extends AnyServiceSchemaMap
|
|
42
|
-
handshakeOptions?: ServerHandshakeOptions
|
|
41
|
+
declare function createServer<Services extends AnyServiceSchemaMap>(transport: ServerTransport<Connection>, services: Services, providedServerOptions?: Partial<{
|
|
42
|
+
handshakeOptions?: ServerHandshakeOptions;
|
|
43
43
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
44
44
|
}>): Server<Services>;
|
|
45
45
|
|
|
46
|
-
var version = "0.23.
|
|
46
|
+
var version = "0.23.3";
|
|
47
47
|
|
|
48
48
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-
|
|
2
|
-
export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-
|
|
3
|
-
import { Static
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-ef89f5b0.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-ef89f5b0.js';
|
|
3
|
+
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { ServerTransport } from '../transport/index.js';
|
|
5
5
|
import { Pushable } from 'it-pushable';
|
|
6
|
-
import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-
|
|
7
|
-
export { d as
|
|
6
|
+
import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-a009d7f6.js';
|
|
7
|
+
export { d as ParsedMetadata, e as ServiceContextWithState, f as ServiceContextWithTransportInfo } from '../index-a009d7f6.js';
|
|
8
8
|
import '../types-3e5768ec.js';
|
|
9
9
|
import '@sinclair/typebox/value';
|
|
10
10
|
import '@opentelemetry/api';
|
|
@@ -38,11 +38,11 @@ interface ProcStream {
|
|
|
38
38
|
* @param extendedContext - An optional object containing additional context to be passed to all services.
|
|
39
39
|
* @returns A promise that resolves to a server instance with the registered services.
|
|
40
40
|
*/
|
|
41
|
-
declare function createServer<Services extends AnyServiceSchemaMap
|
|
42
|
-
handshakeOptions?: ServerHandshakeOptions
|
|
41
|
+
declare function createServer<Services extends AnyServiceSchemaMap>(transport: ServerTransport<Connection>, services: Services, providedServerOptions?: Partial<{
|
|
42
|
+
handshakeOptions?: ServerHandshakeOptions;
|
|
43
43
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
44
44
|
}>): Server<Services>;
|
|
45
45
|
|
|
46
|
-
var version = "0.23.
|
|
46
|
+
var version = "0.23.3";
|
|
47
47
|
|
|
48
48
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
createClient,
|
|
9
9
|
createServer,
|
|
10
10
|
serializeSchema
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-JBRQNEBV.js";
|
|
12
12
|
import {
|
|
13
13
|
version
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-XZV3HOQW.js";
|
|
15
15
|
import "../chunk-SPP7ACQN.js";
|
|
16
16
|
export {
|
|
17
17
|
Err,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
|
|
2
2
|
import { ClientTransport } from './transport/index.cjs';
|
|
3
3
|
import { Pushable } from 'it-pushable';
|
|
4
|
-
import { C as Connection, T as TransportClientId,
|
|
4
|
+
import { C as Connection, T as TransportClientId, g as ClientHandshakeOptions, f as ServiceContextWithTransportInfo } from './index-a009d7f6.js';
|
|
5
5
|
|
|
6
6
|
type AsyncIter<T> = AsyncGenerator<T, T>;
|
|
7
7
|
/**
|
|
@@ -67,8 +67,8 @@ interface ClientOptions {
|
|
|
67
67
|
* @param {Partial<ClientOptions>} providedClientOptions - The options for the client.
|
|
68
68
|
* @returns The client for the server.
|
|
69
69
|
*/
|
|
70
|
-
declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap
|
|
71
|
-
handshakeOptions: ClientHandshakeOptions
|
|
70
|
+
declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap>(transport: ClientTransport<Connection>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
|
|
71
|
+
handshakeOptions: ClientHandshakeOptions;
|
|
72
72
|
}>): Client<ServiceSchemaMap>;
|
|
73
73
|
|
|
74
74
|
type TLiteralString = TLiteral<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
|
|
2
2
|
import { ClientTransport } from './transport/index.js';
|
|
3
3
|
import { Pushable } from 'it-pushable';
|
|
4
|
-
import { C as Connection, T as TransportClientId,
|
|
4
|
+
import { C as Connection, T as TransportClientId, g as ClientHandshakeOptions, f as ServiceContextWithTransportInfo } from './index-a009d7f6.js';
|
|
5
5
|
|
|
6
6
|
type AsyncIter<T> = AsyncGenerator<T, T>;
|
|
7
7
|
/**
|
|
@@ -67,8 +67,8 @@ interface ClientOptions {
|
|
|
67
67
|
* @param {Partial<ClientOptions>} providedClientOptions - The options for the client.
|
|
68
68
|
* @returns The client for the server.
|
|
69
69
|
*/
|
|
70
|
-
declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap
|
|
71
|
-
handshakeOptions: ClientHandshakeOptions
|
|
70
|
+
declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap>(transport: ClientTransport<Connection>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
|
|
71
|
+
handshakeOptions: ClientHandshakeOptions;
|
|
72
72
|
}>): Client<ServiceSchemaMap>;
|
|
73
73
|
|
|
74
74
|
type TLiteralString = TLiteral<string>;
|
|
@@ -113,7 +113,7 @@ function isAck(controlFlag) {
|
|
|
113
113
|
var import_api = require("@opentelemetry/api");
|
|
114
114
|
|
|
115
115
|
// package.json
|
|
116
|
-
var version = "0.23.
|
|
116
|
+
var version = "0.23.3";
|
|
117
117
|
|
|
118
118
|
// tracing/index.ts
|
|
119
119
|
function getPropagationContext(ctx) {
|
|
@@ -1243,7 +1243,7 @@ var ClientTransport = class extends Transport {
|
|
|
1243
1243
|
super.deleteSession(session);
|
|
1244
1244
|
}
|
|
1245
1245
|
async sendHandshake(to, conn) {
|
|
1246
|
-
let metadata;
|
|
1246
|
+
let metadata = void 0;
|
|
1247
1247
|
if (this.handshakeExtensions) {
|
|
1248
1248
|
metadata = await this.handshakeExtensions.construct();
|
|
1249
1249
|
if (!import_value.Value.Check(this.handshakeExtensions.schema, metadata)) {
|