@orpc/server 2.0.0-beta.33 → 2.0.0-beta.35
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/README.md +15 -14
- package/dist/adapters/aws-lambda/index.d.mts +2 -2
- package/dist/adapters/aws-lambda/index.d.ts +2 -2
- package/dist/adapters/aws-lambda/index.mjs +5 -5
- package/dist/adapters/crossws/index.d.mts +2 -2
- package/dist/adapters/crossws/index.d.ts +2 -2
- package/dist/adapters/crossws/index.mjs +5 -5
- package/dist/adapters/fastify/index.d.mts +2 -2
- package/dist/adapters/fastify/index.d.ts +2 -2
- package/dist/adapters/fastify/index.mjs +5 -5
- package/dist/adapters/fetch/index.d.mts +3 -3
- package/dist/adapters/fetch/index.d.ts +3 -3
- package/dist/adapters/fetch/index.mjs +6 -6
- package/dist/adapters/message-port/index.d.mts +2 -2
- package/dist/adapters/message-port/index.d.ts +2 -2
- package/dist/adapters/message-port/index.mjs +5 -5
- package/dist/adapters/node/index.d.mts +3 -3
- package/dist/adapters/node/index.d.ts +3 -3
- package/dist/adapters/node/index.mjs +7 -7
- package/dist/adapters/standard/index.d.mts +5 -5
- package/dist/adapters/standard/index.d.ts +5 -5
- package/dist/adapters/standard/index.mjs +4 -4
- package/dist/adapters/standard-peer/index.d.mts +1 -1
- package/dist/adapters/standard-peer/index.d.ts +1 -1
- package/dist/adapters/websocket/index.d.mts +2 -2
- package/dist/adapters/websocket/index.d.ts +2 -2
- package/dist/adapters/websocket/index.mjs +5 -5
- package/dist/extensions/callable.d.mts +3 -3
- package/dist/extensions/callable.d.ts +3 -3
- package/dist/extensions/callable.mjs +2 -2
- package/dist/index.d.mts +26 -26
- package/dist/index.d.ts +26 -26
- package/dist/index.mjs +8 -16
- package/dist/plugins/index.d.mts +6 -5
- package/dist/plugins/index.d.ts +6 -5
- package/dist/plugins/index.mjs +36 -20
- package/dist/shared/{server.Cd4Z1hpV.mjs → server.1ExWFMze.mjs} +2 -2
- package/dist/shared/{server.Cqk3swxs.mjs → server.24nXyhbl.mjs} +1 -1
- package/dist/shared/{server.C2n16pp0.d.ts → server.BGMO5dst.d.ts} +6 -6
- package/dist/shared/{server.S8BnCR3a.mjs → server.BYnwk7Xz.mjs} +1 -1
- package/dist/shared/{server.DtfwuV6U.d.ts → server.BpmUhems.d.mts} +9 -9
- package/dist/shared/{server.CwrYlF72.d.ts → server.BsujoJoF.d.mts} +12 -23
- package/dist/shared/{server.CwrYlF72.d.mts → server.BsujoJoF.d.ts} +12 -23
- package/dist/shared/{server.D0Ipbmdv.d.mts → server.CAiLRqPf.d.mts} +2 -2
- package/dist/shared/{server.Dm0os-OP.d.mts → server.CRwPbhLO.d.ts} +9 -9
- package/dist/shared/{server.DrN1Pj1-.d.ts → server.DEeCcNd6.d.ts} +5 -5
- package/dist/shared/{server.CkNnZ5F-.d.mts → server.DcHlvZFK.d.mts} +6 -6
- package/dist/shared/{server.3Ex_8ISY.mjs → server.Djb_ebJT.mjs} +4 -17
- package/dist/shared/{server.JbCIPL4P.d.mts → server.R0uHWfBo.d.mts} +5 -5
- package/dist/shared/{server.BhHrioCw.d.ts → server.b2-J4t6T.d.ts} +2 -2
- package/dist/shared/{server.7G43pSxo.mjs → server.sNWd6DAG.mjs} +17 -17
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -55,20 +55,20 @@ You can read the documentation [here](https://orpc.dev).
|
|
|
55
55
|
|
|
56
56
|
**Framework & ecosystem integrations**
|
|
57
57
|
|
|
58
|
-
| Package | Purpose
|
|
59
|
-
| ------------------------------------------------------------------------------------ |
|
|
60
|
-
| [@orpc/next](https://www.npmjs.com/package/@orpc/next) | Integrate with [Next.js Server Functions](https://nextjs.org/docs/app/getting-started/mutating-data).
|
|
61
|
-
| [@orpc/ai-sdk](https://www.npmjs.com/package/@orpc/ai-sdk) | Turn contracts and procedures into [AI SDK](https://ai-sdk.dev/) tools.
|
|
62
|
-
| [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query) | Integrate with [TanStack Query](https://tanstack.com/query/latest).
|
|
63
|
-
| [@orpc/pinia-colada](https://www.npmjs.com/package/@orpc/pinia-colada) | Integrate with [Pinia Colada](https://pinia-colada.esm.dev/).
|
|
64
|
-
| [@orpc/swr](https://www.npmjs.com/package/@orpc/swr) | Integrate with [SWR](https://swr.vercel.app/).
|
|
65
|
-
| [@orpc/experimental-msw](https://www.npmjs.com/package/@orpc/experimental-msw) | Mock procedures with [Mock Service Worker](https://mswjs.io/).
|
|
66
|
-
| [@orpc/experimental-effect](https://www.npmjs.com/package/@orpc/experimental-effect) | Integrate with [Effect](https://effect.website/).
|
|
67
|
-
| [@orpc/nest](https://www.npmjs.com/package/@orpc/nest) | Implement your contract with [NestJS](https://nestjs.com/).
|
|
68
|
-
| [@orpc/node](https://www.npmjs.com/package/@orpc/node) | [Node.js](https://nodejs.org/) plugins for static file serving and large uploads.
|
|
69
|
-
| [@orpc/bun](https://www.npmjs.com/package/@orpc/bun) | Adapters for [Bun's Redis](https://bun.sh/).
|
|
70
|
-
| [@orpc/cloudflare](https://www.npmjs.com/package/@orpc/cloudflare) | Adapters for [Cloudflare
|
|
71
|
-
| [@orpc/trpc](https://www.npmjs.com/package/@orpc/trpc) | Reuse existing [tRPC](https://trpc.io/) routers within oRPC.
|
|
58
|
+
| Package | Purpose | Docs |
|
|
59
|
+
| ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
60
|
+
| [@orpc/next](https://www.npmjs.com/package/@orpc/next) | Integrate with [Next.js Server Functions](https://nextjs.org/docs/app/getting-started/mutating-data). | [Next.js](https://orpc.dev/docs/integrations/next) |
|
|
61
|
+
| [@orpc/ai-sdk](https://www.npmjs.com/package/@orpc/ai-sdk) | Turn contracts and procedures into [AI SDK](https://ai-sdk.dev/) tools. | [AI SDK](https://orpc.dev/docs/integrations/ai-sdk) |
|
|
62
|
+
| [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query) | Integrate with [TanStack Query](https://tanstack.com/query/latest). | [TanStack Query](https://orpc.dev/docs/integrations/tanstack-query) |
|
|
63
|
+
| [@orpc/pinia-colada](https://www.npmjs.com/package/@orpc/pinia-colada) | Integrate with [Pinia Colada](https://pinia-colada.esm.dev/). | [Pinia Colada](https://orpc.dev/docs/integrations/pinia-colada) |
|
|
64
|
+
| [@orpc/swr](https://www.npmjs.com/package/@orpc/swr) | Integrate with [SWR](https://swr.vercel.app/). | [SWR](https://orpc.dev/docs/integrations/swr) |
|
|
65
|
+
| [@orpc/experimental-msw](https://www.npmjs.com/package/@orpc/experimental-msw) | Mock procedures with [Mock Service Worker](https://mswjs.io/). | [MSW](https://orpc.dev/docs/integrations/msw) |
|
|
66
|
+
| [@orpc/experimental-effect](https://www.npmjs.com/package/@orpc/experimental-effect) | Integrate with [Effect](https://effect.website/). | [Effect](https://orpc.dev/docs/integrations/effect) |
|
|
67
|
+
| [@orpc/nest](https://www.npmjs.com/package/@orpc/nest) | Implement your contract with [NestJS](https://nestjs.com/). | [NestJS](https://orpc.dev/docs/integrations/nest) |
|
|
68
|
+
| [@orpc/node](https://www.npmjs.com/package/@orpc/node) | [Node.js](https://nodejs.org/) plugins for static file serving and large uploads. | [Static File](https://orpc.dev/docs/plugins/static-file), [Tmp File Upload](https://orpc.dev/docs/plugins/tmp-file-upload), [Batch Response Compression](https://orpc.dev/docs/plugins/batch-response-compression) |
|
|
69
|
+
| [@orpc/bun](https://www.npmjs.com/package/@orpc/bun) | Adapters for [Bun's Redis](https://bun.sh/). | [Publisher](https://orpc.dev/docs/helpers/publisher), [Rate Limit](https://orpc.dev/docs/helpers/ratelimit) |
|
|
70
|
+
| [@orpc/cloudflare](https://www.npmjs.com/package/@orpc/cloudflare) | Adapters for [Cloudflare Workers](https://developers.cloudflare.com/workers/). | [Publisher](https://orpc.dev/docs/helpers/publisher), [Rate Limit](https://orpc.dev/docs/helpers/ratelimit), [Traces](https://orpc.dev/docs/integrations/cloudflare-traces) |
|
|
71
|
+
| [@orpc/trpc](https://www.npmjs.com/package/@orpc/trpc) | Reuse existing [tRPC](https://trpc.io/) routers within oRPC. | [tRPC](https://orpc.dev/docs/integrations/trpc) |
|
|
72
72
|
|
|
73
73
|
**Observability**
|
|
74
74
|
|
|
@@ -127,6 +127,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
|
|
|
127
127
|
<td align="center"><a href="https://github.com/ellis-driscoll?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Ellis Driscoll"><img src="https://avatars.githubusercontent.com/u/70685966?u=c5f95bc33b5991d9744abe00052542e4a2ed3cb9&v=4" width="139" alt="Ellis Driscoll"/><br />Ellis Driscoll</a></td>
|
|
128
128
|
<td align="center"><a href="https://github.com/hoangbn?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Hoang Nguyen"><img src="https://avatars.githubusercontent.com/u/38968280?u=c90084c6de65c56facabab7ba13a72a49ddbc3e4&v=4" width="139" alt="Hoang Nguyen"/><br />Hoang Nguyen</a></td>
|
|
129
129
|
<td align="center"><a href="https://opencollective.com/guest-ac41de3b?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Orestis Ioannou"><img src="https://images.opencollective.com/guest-ac41de3b/avatar/460.png" width="139" alt="Orestis Ioannou"/><br />Orestis Ioannou</a></td>
|
|
130
|
+
<td align="center"><a href="https://automatio.ai/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Stefan Smiljkovic"><img src="https://avatars.githubusercontent.com/u/1984909?u=b7bf5bc40ed49df3c22f69d2da7b8d78709c49ed&v=4" width="139" alt="Stefan Smiljkovic"/><br />Stefan Smiljkovic</a></td>
|
|
130
131
|
</tr>
|
|
131
132
|
</table>
|
|
132
133
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { SendStandardResponseOptions, AnyAPIGatewayProxyEvent, HttpResponseStream } from '@
|
|
2
|
+
import { SendStandardResponseOptions, AnyAPIGatewayProxyEvent, HttpResponseStream } from '@standard-server/aws-lambda';
|
|
3
3
|
import { Context } from '../../index.mjs';
|
|
4
4
|
import { StandardHandlerPlugin, StandardHandler, StandardHandlerHandleOptions, StandardHandlerOptions } from '../standard/index.mjs';
|
|
5
5
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.mjs';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.mjs';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
interface AwsLambdaHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { SendStandardResponseOptions, AnyAPIGatewayProxyEvent, HttpResponseStream } from '@
|
|
2
|
+
import { SendStandardResponseOptions, AnyAPIGatewayProxyEvent, HttpResponseStream } from '@standard-server/aws-lambda';
|
|
3
3
|
import { Context } from '../../index.js';
|
|
4
4
|
import { StandardHandlerPlugin, StandardHandler, StandardHandlerHandleOptions, StandardHandlerOptions } from '../standard/index.js';
|
|
5
5
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.js';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.js';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
interface AwsLambdaHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
13
13
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { sortPlugins, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { toStandardLazyRequest, sendStandardResponse } from '@
|
|
2
|
+
import { toStandardLazyRequest, sendStandardResponse } from '@standard-server/aws-lambda';
|
|
3
3
|
import { r as resolveFriendlyStandardHandlerHandleOptions } from '../../shared/server.W91HSRkE.mjs';
|
|
4
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
4
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
6
|
-
import '@
|
|
7
|
-
import '../../shared/server.
|
|
6
|
+
import '@standard-server/core';
|
|
7
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
10
10
|
|
|
11
11
|
class CompositeAwsLambdaHandlerPlugin {
|
|
12
12
|
name = "~composite/aws-lambda";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
2
|
+
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
3
3
|
import { Message, Peer } from 'crossws';
|
|
4
4
|
import { Context } from '../../index.mjs';
|
|
5
5
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.mjs';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
type CrosswsPeerLike = Pick<Peer, 'send'>;
|
|
14
14
|
type CrosswsMessageLike = Pick<Message, 'rawData' | 'uint8Array'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
2
|
+
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
3
3
|
import { Message, Peer } from 'crossws';
|
|
4
4
|
import { Context } from '../../index.js';
|
|
5
5
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.js';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
type CrosswsPeerLike = Pick<Peer, 'send'>;
|
|
14
14
|
type CrosswsMessageLike = Pick<Message, 'rawData' | 'uint8Array'>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage } from '@
|
|
2
|
+
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage } from '@standard-server/peer';
|
|
3
3
|
import { c as createStandardPeerRequestHandler } from '../../shared/server.CX4vUnDk.mjs';
|
|
4
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
4
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
6
|
-
import '@
|
|
7
|
-
import '../../shared/server.
|
|
6
|
+
import '@standard-server/core';
|
|
7
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
10
10
|
|
|
11
11
|
class experimental_CrosswsHandler {
|
|
12
12
|
constructor(handler, options = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { SendStandardResponseOptions, AnyFastifyRequest, AnyFastifyReply } from '@
|
|
2
|
+
import { SendStandardResponseOptions, AnyFastifyRequest, AnyFastifyReply } from '@standard-server/fastify';
|
|
3
3
|
import { Context } from '../../index.mjs';
|
|
4
4
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
5
5
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.mjs';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.mjs';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
interface FastifyHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { SendStandardResponseOptions, AnyFastifyRequest, AnyFastifyReply } from '@
|
|
2
|
+
import { SendStandardResponseOptions, AnyFastifyRequest, AnyFastifyReply } from '@standard-server/fastify';
|
|
3
3
|
import { Context } from '../../index.js';
|
|
4
4
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
5
5
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.js';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.js';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
interface FastifyHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
13
13
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { sortPlugins, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { toStandardLazyRequest, sendStandardResponse } from '@
|
|
2
|
+
import { toStandardLazyRequest, sendStandardResponse } from '@standard-server/fastify';
|
|
3
3
|
import { r as resolveFriendlyStandardHandlerHandleOptions } from '../../shared/server.W91HSRkE.mjs';
|
|
4
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
4
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
6
|
-
import '@
|
|
7
|
-
import '../../shared/server.
|
|
6
|
+
import '@standard-server/core';
|
|
7
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
10
10
|
|
|
11
11
|
class CompositeFastifyHandlerPlugin {
|
|
12
12
|
name = "~composite/fastify";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.CAiLRqPf.mjs';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { ToFetchResponseOptions } from '@
|
|
3
|
+
import { ToFetchResponseOptions } from '@standard-server/fetch';
|
|
4
4
|
import { Context } from '../../index.mjs';
|
|
5
5
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
6
6
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.mjs';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.mjs';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
interface FetchHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.b2-J4t6T.js';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { ToFetchResponseOptions } from '@
|
|
3
|
+
import { ToFetchResponseOptions } from '@standard-server/fetch';
|
|
4
4
|
import { Context } from '../../index.js';
|
|
5
5
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
6
6
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.js';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.js';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
interface FetchHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
14
14
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.1ExWFMze.mjs';
|
|
2
2
|
import { sortPlugins, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { toStandardLazyRequest, toFetchResponse } from '@
|
|
3
|
+
import { toStandardLazyRequest, toFetchResponse } from '@standard-server/fetch';
|
|
4
4
|
import { r as resolveFriendlyStandardHandlerHandleOptions } from '../../shared/server.W91HSRkE.mjs';
|
|
5
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
5
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
6
6
|
import '@orpc/client';
|
|
7
|
-
import '@
|
|
8
|
-
import '../../shared/server.
|
|
7
|
+
import '@standard-server/core';
|
|
8
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '../../shared/server.
|
|
10
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
11
11
|
|
|
12
12
|
class CompositeFetchHandlerPlugin {
|
|
13
13
|
name = "~composite/fetch";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SupportedMessagePort } from '@orpc/client/message-port';
|
|
2
2
|
import { Value, Promisable, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { ServerPeer, EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
3
|
+
import { ServerPeer, EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
4
4
|
import { Context } from '../../index.mjs';
|
|
5
5
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
6
6
|
import { StandardPeerRequestHandlerOptions } from '../standard-peer/index.mjs';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.mjs';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
type DecodedResponseMessage = ConstructorParameters<typeof ServerPeer>[0] extends (message: infer TMessage) => unknown ? TMessage : never;
|
|
14
14
|
interface MessagePortHandlerOptions<_T extends Context> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SupportedMessagePort } from '@orpc/client/message-port';
|
|
2
2
|
import { Value, Promisable, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { ServerPeer, EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
3
|
+
import { ServerPeer, EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
4
4
|
import { Context } from '../../index.js';
|
|
5
5
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
6
6
|
import { StandardPeerRequestHandlerOptions } from '../standard-peer/index.js';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.js';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
type DecodedResponseMessage = ConstructorParameters<typeof ServerPeer>[0] extends (message: infer TMessage) => unknown ? TMessage : never;
|
|
14
14
|
interface MessagePortHandlerOptions<_T extends Context> {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { onMessagePortMessage, onMessagePortClose, postMessagePortMessage } from '@orpc/client/message-port';
|
|
2
2
|
import { value, resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage, isPeerMessage } from '@
|
|
3
|
+
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage, isPeerMessage } from '@standard-server/peer';
|
|
4
4
|
import { c as createStandardPeerRequestHandler } from '../../shared/server.CX4vUnDk.mjs';
|
|
5
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
5
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
6
6
|
import '@orpc/client';
|
|
7
|
-
import '@
|
|
8
|
-
import '../../shared/server.
|
|
7
|
+
import '@standard-server/core';
|
|
8
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '../../shared/server.
|
|
10
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
11
11
|
|
|
12
12
|
class MessagePortHandler {
|
|
13
13
|
constructor(handler, options = {}) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.CAiLRqPf.mjs';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@
|
|
3
|
+
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@standard-server/node';
|
|
4
4
|
import { Context } from '../../index.mjs';
|
|
5
5
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
6
6
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.mjs';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.mjs';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
interface NodeHttpHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
14
14
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.b2-J4t6T.js';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@
|
|
3
|
+
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@standard-server/node';
|
|
4
4
|
import { Context } from '../../index.js';
|
|
5
5
|
import { StandardHandlerPlugin, StandardHandlerHandleOptions, StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
6
6
|
import { FriendlyStandardHandlerHandleOptions } from '../standard/index.js';
|
|
@@ -8,7 +8,7 @@ import { Router } from '../../index.js';
|
|
|
8
8
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
9
9
|
import '@orpc/client';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '@
|
|
11
|
+
import '@standard-server/core';
|
|
12
12
|
|
|
13
13
|
interface NodeHttpHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
14
14
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { R as BodyLimitPlugin } from '../../shared/server.
|
|
1
|
+
export { R as BodyLimitPlugin } from '../../shared/server.1ExWFMze.mjs';
|
|
2
2
|
import { sortPlugins, intercept, resolveMaybeOptionalOptions } from '@orpc/shared';
|
|
3
|
-
import { toStandardLazyRequest, sendStandardResponse } from '@
|
|
3
|
+
import { toStandardLazyRequest, sendStandardResponse } from '@standard-server/node';
|
|
4
4
|
import { r as resolveFriendlyStandardHandlerHandleOptions } from '../../shared/server.W91HSRkE.mjs';
|
|
5
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
5
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
6
6
|
import '@orpc/client';
|
|
7
|
-
import '@
|
|
8
|
-
import '@
|
|
9
|
-
import '../../shared/server.
|
|
7
|
+
import '@standard-server/core';
|
|
8
|
+
import '@standard-server/fetch';
|
|
9
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
10
10
|
import '@orpc/contract';
|
|
11
|
-
import '../../shared/server.
|
|
11
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
12
12
|
|
|
13
13
|
class CompositeNodeHttpHandlerPlugin {
|
|
14
14
|
name = "~composite/node-http";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as StandardHandlerHandleOptions } from '../../shared/server.
|
|
2
|
-
export { C as CompositeStandardHandlerPlugin,
|
|
3
|
-
export { a as RPCHandlerCodec, R as RPCHandlerCodecOptions, b as RPCMatcher, c as RPCMatcherOptions, d as RPC_DEFAULT_ALLOW_METHODS } from '../../shared/server.
|
|
1
|
+
import { c as StandardHandlerHandleOptions } from '../../shared/server.R0uHWfBo.mjs';
|
|
2
|
+
export { C as CompositeStandardHandlerPlugin, b as StandardHandler, d as StandardHandlerCodec, e as StandardHandlerCodecResolvedProcedure, h as StandardHandlerHandleResult, i as StandardHandlerInterceptor, g as StandardHandlerInterceptorOptions, a as StandardHandlerOptions, S as StandardHandlerPlugin, j as StandardHandlerRoutingInterceptor, f as StandardHandlerRoutingInterceptorOptions, T as TracingHandlerPlugin } from '../../shared/server.R0uHWfBo.mjs';
|
|
3
|
+
export { a as RPCHandlerCodec, R as RPCHandlerCodecOptions, b as RPCMatcher, c as RPCMatcherOptions, d as RPC_DEFAULT_ALLOW_METHODS } from '../../shared/server.DcHlvZFK.mjs';
|
|
4
4
|
import { Context } from '../../index.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
6
6
|
import '@orpc/shared';
|
|
7
|
-
import '@
|
|
7
|
+
import '@standard-server/core';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.BpmUhems.mjs';
|
|
10
10
|
|
|
11
11
|
type FriendlyStandardHandlerHandleOptions<T extends Context> = Omit<StandardHandlerHandleOptions<T>, 'context'> & (object extends T ? {
|
|
12
12
|
context?: T;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as StandardHandlerHandleOptions } from '../../shared/server.
|
|
2
|
-
export { C as CompositeStandardHandlerPlugin,
|
|
3
|
-
export { a as RPCHandlerCodec, R as RPCHandlerCodecOptions, b as RPCMatcher, c as RPCMatcherOptions, d as RPC_DEFAULT_ALLOW_METHODS } from '../../shared/server.
|
|
1
|
+
import { c as StandardHandlerHandleOptions } from '../../shared/server.DEeCcNd6.js';
|
|
2
|
+
export { C as CompositeStandardHandlerPlugin, b as StandardHandler, d as StandardHandlerCodec, e as StandardHandlerCodecResolvedProcedure, h as StandardHandlerHandleResult, i as StandardHandlerInterceptor, g as StandardHandlerInterceptorOptions, a as StandardHandlerOptions, S as StandardHandlerPlugin, j as StandardHandlerRoutingInterceptor, f as StandardHandlerRoutingInterceptorOptions, T as TracingHandlerPlugin } from '../../shared/server.DEeCcNd6.js';
|
|
3
|
+
export { a as RPCHandlerCodec, R as RPCHandlerCodecOptions, b as RPCMatcher, c as RPCMatcherOptions, d as RPC_DEFAULT_ALLOW_METHODS } from '../../shared/server.BGMO5dst.js';
|
|
4
4
|
import { Context } from '../../index.js';
|
|
5
5
|
import '@orpc/client';
|
|
6
6
|
import '@orpc/shared';
|
|
7
|
-
import '@
|
|
7
|
+
import '@standard-server/core';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.CRwPbhLO.js';
|
|
10
10
|
|
|
11
11
|
type FriendlyStandardHandlerHandleOptions<T extends Context> = Omit<StandardHandlerHandleOptions<T>, 'context'> & (object extends T ? {
|
|
12
12
|
context?: T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { C as CompositeStandardHandlerPlugin,
|
|
1
|
+
export { C as CompositeStandardHandlerPlugin, R as RPCHandlerCodec, a as RPCMatcher, b as RPC_DEFAULT_ALLOW_METHODS, S as StandardHandler, T as TracingHandlerPlugin } from '../../shared/server.sNWd6DAG.mjs';
|
|
2
2
|
export { r as resolveFriendlyStandardHandlerHandleOptions } from '../../shared/server.W91HSRkE.mjs';
|
|
3
3
|
import '@orpc/client';
|
|
4
4
|
import '@orpc/shared';
|
|
5
|
-
import '@
|
|
6
|
-
import '../../shared/server.
|
|
5
|
+
import '@standard-server/core';
|
|
6
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
7
7
|
import '@orpc/contract';
|
|
8
|
-
import '../../shared/server.
|
|
8
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Value, Promisable } from '@orpc/shared';
|
|
2
|
-
import { StandardLazyRequest, StandardResponse } from '@
|
|
2
|
+
import { StandardLazyRequest, StandardResponse } from '@standard-server/core';
|
|
3
3
|
import { Context } from '../../index.mjs';
|
|
4
4
|
import { StandardHandlerHandleOptions, StandardHandler } from '../standard/index.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Value, Promisable } from '@orpc/shared';
|
|
2
|
-
import { StandardLazyRequest, StandardResponse } from '@
|
|
2
|
+
import { StandardLazyRequest, StandardResponse } from '@standard-server/core';
|
|
3
3
|
import { Context } from '../../index.js';
|
|
4
4
|
import { StandardHandlerHandleOptions, StandardHandler } from '../standard/index.js';
|
|
5
5
|
import '@orpc/client';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Arrayable, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
2
|
+
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
3
3
|
import { Context } from '../../index.mjs';
|
|
4
4
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.mjs';
|
|
5
5
|
import { StandardPeerRequestHandlerOptions } from '../standard-peer/index.mjs';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.mjs';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.mjs';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Supports standard WebSocket instances, Bun ServerWebSocket, "ws" ServerWebSocket,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Arrayable, MaybeOptionalOptions } from '@orpc/shared';
|
|
2
|
-
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@
|
|
2
|
+
import { EncodePeerMessageOptions, DecodePeerMessageOptions } from '@standard-server/peer';
|
|
3
3
|
import { Context } from '../../index.js';
|
|
4
4
|
import { StandardHandler, StandardHandlerOptions } from '../standard/index.js';
|
|
5
5
|
import { StandardPeerRequestHandlerOptions } from '../standard-peer/index.js';
|
|
@@ -7,7 +7,7 @@ import { Router } from '../../index.js';
|
|
|
7
7
|
import { RPCHandlerCodecOptions } from '../standard/index.js';
|
|
8
8
|
import '@orpc/client';
|
|
9
9
|
import '@orpc/contract';
|
|
10
|
-
import '@
|
|
10
|
+
import '@standard-server/core';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Supports standard WebSocket instances, Bun ServerWebSocket, "ws" ServerWebSocket,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { toStringOrBytes, resolveMaybeOptionalOptions, sequential, loadBytes } from '@orpc/shared';
|
|
2
|
-
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage } from '@
|
|
2
|
+
import { ServerPeer, encodePeerMessage, decodePeerMessage, isClientPeerSendMessage } from '@standard-server/peer';
|
|
3
3
|
import { c as createStandardPeerRequestHandler } from '../../shared/server.CX4vUnDk.mjs';
|
|
4
|
-
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.
|
|
4
|
+
import { R as RPCHandlerCodec, S as StandardHandler } from '../../shared/server.sNWd6DAG.mjs';
|
|
5
5
|
import '@orpc/client';
|
|
6
|
-
import '@
|
|
7
|
-
import '../../shared/server.
|
|
6
|
+
import '@standard-server/core';
|
|
7
|
+
import '../../shared/server.Djb_ebJT.mjs';
|
|
8
8
|
import '@orpc/contract';
|
|
9
|
-
import '../../shared/server.
|
|
9
|
+
import '../../shared/server.BYnwk7Xz.mjs';
|
|
10
10
|
|
|
11
11
|
class WebSocketHandler {
|
|
12
12
|
constructor(handler, options = {}) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientContext } from '@orpc/client';
|
|
2
2
|
import { AnySchema, ErrorMap } from '@orpc/contract';
|
|
3
3
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
|
4
4
|
import { Context, ProcedureClientOptions, Procedure, ProcedureClient } from '../index.mjs';
|
|
5
5
|
|
|
6
6
|
declare module '@orpc/server' {
|
|
7
|
-
interface DecoratedProcedure<TInitialContext extends Context, TInjectedContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap
|
|
8
|
-
callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<ProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap,
|
|
7
|
+
interface DecoratedProcedure<TInitialContext extends Context, TInjectedContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap> {
|
|
8
|
+
callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<ProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TClientContext>>): Procedure<TInitialContext, TInjectedContext, TInputSchema, TOutputSchema, TErrorMap> & ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientContext } from '@orpc/client';
|
|
2
2
|
import { AnySchema, ErrorMap } from '@orpc/contract';
|
|
3
3
|
import { MaybeOptionalOptions } from '@orpc/shared';
|
|
4
4
|
import { Context, ProcedureClientOptions, Procedure, ProcedureClient } from '../index.js';
|
|
5
5
|
|
|
6
6
|
declare module '@orpc/server' {
|
|
7
|
-
interface DecoratedProcedure<TInitialContext extends Context, TInjectedContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap
|
|
8
|
-
callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<ProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap,
|
|
7
|
+
interface DecoratedProcedure<TInitialContext extends Context, TInjectedContext extends Context, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap> {
|
|
8
|
+
callable<TClientContext extends ClientContext>(...rest: MaybeOptionalOptions<ProcedureClientOptions<TInitialContext, TOutputSchema, TErrorMap, TClientContext>>): Procedure<TInitialContext, TInjectedContext, TInputSchema, TOutputSchema, TErrorMap> & ProcedureClient<TClientContext, TInputSchema, TOutputSchema, TErrorMap>;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createProcedureClient } from '../shared/server.
|
|
2
|
-
import { D as DecoratedProcedure } from '../shared/server.
|
|
1
|
+
import { c as createProcedureClient } from '../shared/server.Djb_ebJT.mjs';
|
|
2
|
+
import { D as DecoratedProcedure } from '../shared/server.24nXyhbl.mjs';
|
|
3
3
|
import '@orpc/client';
|
|
4
4
|
import '@orpc/contract';
|
|
5
5
|
import '@orpc/shared';
|