@trpc/server 11.0.0-alpha-tmp-export-from-main.212 → 11.0.0-alpha-tmp-export-from-main.213
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/adapters/aws-lambda/index.d.ts +1 -1
- package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/utils.d.ts +1 -1
- package/dist/adapters/aws-lambda/utils.d.ts.map +1 -1
- package/dist/adapters/express.d.ts +1 -1
- package/dist/adapters/express.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.d.ts +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fetch/types.d.ts +1 -1
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/adapters/next.d.ts +1 -1
- package/dist/adapters/next.d.ts.map +1 -1
- package/dist/adapters/node-http/internals/contentType.d.ts +1 -1
- package/dist/adapters/node-http/internals/contentType.d.ts.map +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts.map +1 -1
- package/dist/adapters/node-http/types.d.ts +1 -1
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/adapters/standalone.d.ts +1 -1
- package/dist/adapters/standalone.d.ts.map +1 -1
- package/dist/adapters/ws.d.ts +1 -1
- package/dist/adapters/ws.d.ts.map +1 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/dist/shared.d.ts +1 -1
- package/dist/shared.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/adapters/aws-lambda/index.ts +2 -2
- package/src/adapters/aws-lambda/utils.ts +2 -2
- package/src/adapters/express.ts +1 -1
- package/src/adapters/fastify/fastifyRequestHandler.ts +1 -1
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +1 -1
- package/src/adapters/fetch/fetchRequestHandler.ts +1 -1
- package/src/adapters/fetch/types.ts +1 -1
- package/src/adapters/next.ts +2 -2
- package/src/adapters/node-http/content-type/form-data/index.ts +1 -1
- package/src/adapters/node-http/content-type/json/getPostBody.ts +1 -1
- package/src/adapters/node-http/internals/contentType.ts +1 -1
- package/src/adapters/node-http/nodeHTTPRequestHandler.ts +1 -1
- package/src/adapters/node-http/types.ts +1 -1
- package/src/adapters/standalone.ts +1 -1
- package/src/adapters/ws.ts +2 -2
- package/src/index.ts +105 -1
- package/src/shared.ts +1 -1
- package/dist/@trpc-server.d.ts +0 -69
- package/dist/@trpc-server.d.ts.map +0 -1
- package/src/@trpc-server.ts +0 -105
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
import type { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context as APIGWContext } from 'aws-lambda';
|
|
12
|
-
import type { AnyRouter } from '
|
|
12
|
+
import type { AnyRouter } from '../..';
|
|
13
13
|
import type { APIGatewayEvent, AWSLambdaOptions } from './utils';
|
|
14
14
|
export * from './utils';
|
|
15
15
|
/** 1:1 mapping of v1 or v2 input events, deduces which is which.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,KAAK,EACV,eAAe,EAEf,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAUjB,cAAc,SAAS,CAAC;AAqDxB;;IAEI;AACJ,KAAK,gBAAgB,CAAC,KAAK,IAAI,KAAK,SAAS,oBAAoB,GAC7D,qBAAqB,GACrB,KAAK,SAAS,sBAAsB,GACpC,iCAAiC,GACjC,KAAK,CAAC;AACV,wBAAgB,uBAAuB,CACrC,OAAO,SAAS,SAAS,EACzB,MAAM,SAAS,eAAe,EAC9B,OAAO,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAExC,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GACtC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CA4B5D"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
import type { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context as APIGWContext } from 'aws-lambda';
|
|
12
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
12
|
+
import type { AnyRouter, inferRouterContext } from '../..';
|
|
13
13
|
import type { HTTPHeaders, OnErrorFunction, ResponseMetaFn, TRPCRequestInfo } from '../../http';
|
|
14
14
|
export type APIGatewayEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;
|
|
15
15
|
export type APIGatewayResult = APIGatewayProxyResult | APIGatewayProxyStructuredResultV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,IAAI,YAAY,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAI3D,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAC5E,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,iCAAiC,CAAC;AAEtC,MAAM,MAAM,6BAA6B,CAAC,MAAM,SAAS,eAAe,IAAI;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AACF,MAAM,MAAM,wBAAwB,CAClC,OAAO,SAAS,SAAS,EACzB,MAAM,SAAS,eAAe,IAC5B,CAAC,EACH,KAAK,EACL,OAAO,EACP,IAAI,GACL,EAAE,6BAA6B,CAAC,MAAM,CAAC,KACpC,kBAAkB,CAAC,OAAO,CAAC,GAC3B,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAEzC,MAAM,MAAM,gBAAgB,CAC1B,OAAO,SAAS,SAAS,EACzB,MAAM,SAAS,eAAe,IAE5B;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE;QACT,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACxC,GAAG,CACA;IACE;;QAEI;IACJ,aAAa,EAAE,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;CAC1D,GACD;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;CAC3D,CACJ,CAAC;AAEN,wBAAgB,WAAW,CACzB,KAAK,EAAE,eAAe,GACrB,KAAK,IAAI,oBAAoB,CAE/B;AACD,wBAAgB,WAAW,CACzB,KAAK,EAAE,eAAe,GACrB,KAAK,IAAI,sBAAsB,CAEjC;AAoBD,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,UAWnD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,eAAe,UA+B7C;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,WAAW,GACnB,gBAAgB,CAAC,SAAS,CAAC,CAU7B;AAED,MAAM,MAAM,+BAA+B,GAAG,KAAK,GAAG,KAAK,CAAC;AAC5D,MAAM,MAAM,8BAA8B,GACtC,+BAA+B,GAC/B,QAAQ,CAAC;AAEb,eAAO,MAAM,4CAA4C,QAEiD,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
import type * as express from 'express';
|
|
12
|
-
import type { AnyRouter } from '
|
|
12
|
+
import type { AnyRouter } from '..';
|
|
13
13
|
import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
|
|
14
14
|
export type CreateExpressContextOptions = NodeHTTPCreateContextFnOptions<express.Request, express.Response>;
|
|
15
15
|
export declare function createExpressMiddleware<TRouter extends AnyRouter>(opts: NodeHTTPHandlerOptions<TRouter, express.Request, express.Response>): express.Handler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/adapters/express.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/adapters/express.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,CACjB,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAC/D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,GACvE,OAAO,CAAC,OAAO,CAgBjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FastifyReply, FastifyRequest } from 'fastify';
|
|
2
|
-
import type { AnyRouter } from '
|
|
2
|
+
import type { AnyRouter } from '../..';
|
|
3
3
|
import type { HTTPBaseHandlerOptions } from '../../http';
|
|
4
4
|
import type { NodeHTTPCreateContextOption } from '../node-http';
|
|
5
5
|
export type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,sBAAsB,EAKvB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,qBAAqB,CAC/B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,IAC5B,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC3C,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAE5D,KAAK,4BAA4B,CAC/B,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,IAC5B,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IACxD,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAsB,qBAAqB,CACzC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,cAAc,EAC/B,SAAS,SAAS,YAAY,EAC9B,IAAI,EAAE,4BAA4B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,kBAyFjE"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
|
|
12
12
|
import type { FastifyHandlerOptions } from '.';
|
|
13
|
-
import type { AnyRouter } from '
|
|
13
|
+
import type { AnyRouter } from '../..';
|
|
14
14
|
import type { NodeHTTPCreateContextFnOptions } from '../node-http';
|
|
15
15
|
export interface FastifyTRPCPluginOptions<TRouter extends AnyRouter> {
|
|
16
16
|
prefix?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAKnE,MAAM,WAAW,wBAAwB,CAAC,OAAO,SAAS,SAAS;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,qBAAqB,CAAC,OAAO,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;CAC3E;AAED,MAAM,MAAM,2BAA2B,GAAG,8BAA8B,CACtE,cAAc,EACd,YAAY,CACb,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,EACvC,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,QAkC5B"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
|
-
import type { AnyRouter } from '
|
|
11
|
+
import type { AnyRouter } from '../..';
|
|
12
12
|
import type { FetchHandlerOptions } from './types';
|
|
13
13
|
export type FetchHandlerRequestOptions<TRouter extends AnyRouter> = FetchHandlerOptions<TRouter> & {
|
|
14
14
|
req: Request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/fetchRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/fetchRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,mBAAmB,CAAC,OAAO,CAAC,GAAG;IAC7B,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AASJ,wBAAsB,mBAAmB,CAAC,OAAO,SAAS,SAAS,EACjE,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,GACxC,OAAO,CAAC,QAAQ,CAAC,CAyGnB"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
11
|
+
import type { AnyRouter, inferRouterContext } from '../..';
|
|
12
12
|
import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../@trpc-server/http';
|
|
13
13
|
export type FetchCreateContextFnOptions = {
|
|
14
14
|
req: Request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC5D,IAAI,EAAE,2BAA2B,KAC9B,kBAAkB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,OAAO,SAAS,kBAAkB,CAAC,OAAO,CAAC,GACvC;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC/C,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;CAC9C,CAAC;AAER,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,SAAS,IACvD,wBAAwB,CAAC,OAAO,CAAC,GAAG,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/adapters/next.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
|
|
12
|
-
import type { AnyRouter } from '
|
|
12
|
+
import type { AnyRouter } from '..';
|
|
13
13
|
import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
|
|
14
14
|
export type CreateNextContextOptions = NodeHTTPCreateContextFnOptions<NextApiRequest, NextApiResponse>;
|
|
15
15
|
export type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/adapters/next.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../src/adapters/next.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAGpC,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,cAAc,EACd,eAAe,CAChB,CAAC;AACF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5E,wBAAgB,oBAAoB,CAAC,OAAO,SAAS,SAAS,EAC5D,IAAI,EAAE,sBAAsB,CAAC,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC,GACrE,cAAc,CA8ChB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyRouter } from '
|
|
1
|
+
import type { AnyRouter } from '../../..';
|
|
2
2
|
import type { BaseContentTypeHandler } from '../../../@trpc-server/http';
|
|
3
3
|
import type { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from '../types';
|
|
4
4
|
export interface NodeHTTPContentTypeHandler<TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse> extends BaseContentTypeHandler<NodeHTTPRequestHandlerOptions<AnyRouter, TRequest, TResponse> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../src/adapters/node-http/internals/contentType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"contentType.d.ts","sourceRoot":"","sources":["../../../../src/adapters/node-http/internals/contentType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,0BAA0B,CACzC,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,CAClC,SAAQ,sBAAsB,CAC5B,6BAA6B,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC9D,KAAK,EAAE,eAAe,CAAC;CACxB,CACF;CAAG;AAEN,wBAAgB,gCAAgC,CAC9C,kBAAkB,EAAE,0BAA0B,CAC5C,eAAe,EACf,gBAAgB,CACjB,+HAOF"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
|
-
import type { AnyRouter } from '
|
|
11
|
+
import type { AnyRouter } from '../..';
|
|
12
12
|
import type { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from './types';
|
|
13
13
|
export declare function nodeHTTPRequestHandler<TRouter extends AnyRouter, TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>(opts: NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
|
|
14
14
|
//# sourceMappingURL=nodeHTTPRequestHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeHTTPRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/nodeHTTPRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"nodeHTTPRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/nodeHTTPRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAIjB,wBAAsB,sBAAsB,CAC1C,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,EAClC,IAAI,EAAE,6BAA6B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,iBA4HlE"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { IncomingMessage, ServerResponse } from 'http';
|
|
13
13
|
import type { MaybePromise } from '@trpc/core';
|
|
14
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
14
|
+
import type { AnyRouter, inferRouterContext } from '../..';
|
|
15
15
|
import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../@trpc-server/http';
|
|
16
16
|
import type { NodeHTTPContentTypeHandler } from './internals/contentType';
|
|
17
17
|
interface ParsedQs {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/node-http/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,UAAU,QAAQ;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACtE;AAED,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAC9C,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG;IAC9C;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,2BAA2B,CACrC,OAAO,SAAS,SAAS,EACzB,QAAQ,EACR,SAAS,IACP,MAAM,SAAS,kBAAkB,CAAC,OAAO,CAAC,GAC1C;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,uBAAuB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;CACvE,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,uBAAuB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;CACtE,CAAC;AAEN;;GAEG;AACH,KAAK,iBAAiB,CACpB,QAAQ,SAAS,eAAe,GAAG,eAAe,EAClD,SAAS,SAAS,gBAAgB,GAAG,gBAAgB,IACnD,CAAC,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,GAAG,KAAK,IAAI,CAAC;AAEtE,MAAM,MAAM,sBAAsB,CAChC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,IAChC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC3C,2BAA2B,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG;IAC1D;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC,CAAC,EAAE,0BAA0B,CAC3D,QAAQ,EACR,SAAS,CACV,EAAE,CAAC;CACL,CAAC;AAEJ,MAAM,MAAM,6BAA6B,CACvC,OAAO,SAAS,SAAS,EACzB,QAAQ,SAAS,eAAe,EAChC,SAAS,SAAS,gBAAgB,IAChC;IACF,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;AAEzD,MAAM,MAAM,8BAA8B,CAAC,QAAQ,EAAE,SAAS,IAAI;IAChE,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,SAAS,CAAC;IACf,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AACF,MAAM,MAAM,uBAAuB,CACjC,OAAO,SAAS,SAAS,EACzB,QAAQ,EACR,SAAS,IACP,CACF,IAAI,EAAE,8BAA8B,CAAC,QAAQ,EAAE,SAAS,CAAC,KACtD,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
12
|
import http from 'http';
|
|
13
|
-
import type { AnyRouter } from '
|
|
13
|
+
import type { AnyRouter } from '..';
|
|
14
14
|
import type { NodeHTTPCreateContextFnOptions, NodeHTTPHandlerOptions } from './node-http';
|
|
15
15
|
export type CreateHTTPHandlerOptions<TRouter extends AnyRouter> = NodeHTTPHandlerOptions<TRouter, http.IncomingMessage, http.ServerResponse>;
|
|
16
16
|
export type CreateHTTPContextOptions = NodeHTTPCreateContextFnOptions<http.IncomingMessage, http.ServerResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../src/adapters/standalone.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../src/adapters/standalone.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,sBAAsB,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;AAE7E,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,CACnE,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,cAAc,CACpB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,OAAO,SAAS,SAAS,EACzD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,SAEpB,KAAK,eAAe,OAAO,KAAK,cAAc,mBAalE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,SAAS,EACxD,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,wEAIxC"}
|
package/dist/adapters/ws.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import type { IncomingMessage } from 'http';
|
|
5
5
|
import type { BaseHandlerOptions, MaybePromise } from '@trpc/core';
|
|
6
6
|
import type ws from 'ws';
|
|
7
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
7
|
+
import type { AnyRouter, inferRouterContext } from '..';
|
|
8
8
|
import type { NodeHTTPCreateContextFnOptions } from './node-http';
|
|
9
9
|
/**
|
|
10
10
|
* @public
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,KAAK,EACV,kBAAkB,EAElB,YAAY,EAKb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":";;;AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAE5C,OAAO,KAAK,EACV,kBAAkB,EAElB,YAAY,EAKb,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAUxD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAQlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,8BAA8B,CAAC,eAAe,EAAE,EAAE,CAAC,SAAS,CAAC,EAC7D,MAAM,CACP,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1D,IAAI,EAAE,yBAAyB,KAC5B,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IAAI,kBAAkB,CAC3E,OAAO,EACP,eAAe,CAChB,GACC,CAAC,MAAM,SAAS,kBAAkB,CAAC,OAAO,CAAC,GACvC;IACE;;QAEI;IACJ,aAAa,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC7C,GACD;IACE;;QAEI;IACJ,aAAa,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC,GAAG;IACP,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;CAC1B,CAAC;AAEJ,wBAAgB,eAAe,CAAC,OAAO,SAAS,SAAS,EACvD,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;;EAwQjC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,69 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { TRPCError,
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use `experimental_trpcMiddleware` instead
|
|
4
|
+
*/
|
|
5
|
+
experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type ProcedureRouterRecord as TRPCProcedureRouterRecord, type ProcedureArgs as TRPCProcedureArgs, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, } from './@trpc-core-unstable-do-not-import-this-please';
|
|
6
|
+
export type {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use `AnyTRPCProcedure` instead
|
|
9
|
+
*/
|
|
10
|
+
AnyProcedure,
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use `AnyTRPCRouter` instead
|
|
13
|
+
*/
|
|
14
|
+
AnyRouter,
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use `AnyTRPCMiddlewareFunction` instead
|
|
17
|
+
*/
|
|
18
|
+
AnyMiddlewareFunction,
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
21
|
+
*/
|
|
22
|
+
CombinedDataTransformer,
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated This is a utility type will be removed in v12
|
|
25
|
+
*/
|
|
26
|
+
Dict,
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated This is a utility type will be removed in v12
|
|
29
|
+
*/
|
|
30
|
+
DeepPartial,
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use `TRPCProcedureType` instead
|
|
33
|
+
*/
|
|
34
|
+
ProcedureType,
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
37
|
+
*/
|
|
38
|
+
AnyMutationProcedure,
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
41
|
+
*/
|
|
42
|
+
AnyQueryProcedure,
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
45
|
+
*/
|
|
46
|
+
ProcedureRouterRecord,
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated use `TRPCProcedureArgs` instead
|
|
49
|
+
*/
|
|
50
|
+
ProcedureArgs,
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
53
|
+
*/
|
|
54
|
+
AnySubscriptionProcedure, } from '@trpc/core';
|
|
55
|
+
export {
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated use `getTRPCErrorShape` instead
|
|
58
|
+
*/
|
|
59
|
+
getErrorShape,
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated use `callTRPCProcedure` instead
|
|
62
|
+
*/
|
|
63
|
+
callProcedure, } from '@trpc/core';
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated
|
|
66
|
+
* Use `Awaited<ReturnType<typeof myFunction>>` instead
|
|
67
|
+
*/
|
|
68
|
+
export type inferAsyncReturnType<TFunction extends (...args: any[]) => any> = Awaited<ReturnType<TFunction>>;
|
|
2
69
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,EAER,aAAa,IAAI,iBAAiB,EAClC,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,wBAAwB,IAAI,4BAA4B,GAC9D,MAAM,iDAAiD,CAAC;AAEzD,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,uBAAuB;AAEvB;;GAEG;AACH,IAAI;AAEJ;;GAEG;AACH,WAAW;AACX;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,oBAAoB;AAEpB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO;AACL;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACxE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,42 +7,42 @@ var core = require('@trpc/core');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, 'TRPCError', {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return core.TRPCError; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, 'callProcedure', {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return core.callProcedure; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, 'callTRPCProcedure', {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return core.callProcedure; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, 'createTRPCFlatProxy', {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return core.createFlatProxy; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, 'experimental_standaloneMiddleware', {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return core.experimental_standaloneMiddleware; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, 'experimental_trpcMiddleware', {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return core.experimental_standaloneMiddleware; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, 'getErrorShape', {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return core.getErrorShape; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, 'getTRPCErrorFromUnknown', {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return core.getTRPCErrorFromUnknown; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, 'initTRPC', {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return core.initTRPC; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, 'transformTRPCResponse', {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return core.transformTRPCResponse; }
|
|
48
48
|
});
|
package/dist/shared.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ getErrorShape,
|
|
|
22
22
|
/**
|
|
23
23
|
* @deprecated `import { createTRPCFlatProxy } from '@trpc/server'` instead
|
|
24
24
|
*/
|
|
25
|
-
createTRPCFlatProxy as createFlatProxy, } from '
|
|
25
|
+
createTRPCFlatProxy as createFlatProxy, } from '.';
|
|
26
26
|
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO;AACL;;GAEG;AACH,KAAK,mBAAmB;AACxB;;GAEG;AACH,KAAK,oBAAoB;AACzB;;GAEG;AACH,KAAK,+BAA+B;AACpC;;GAEG;AACH,KAAK,kCAAkC;AACvC;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,mBAAmB,IAAI,eAAe,GACvC,MAAM,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO;AACL;;GAEG;AACH,KAAK,mBAAmB;AACxB;;GAEG;AACH,KAAK,oBAAoB;AACzB;;GAEG;AACH,KAAK,+BAA+B;AACpC;;GAEG;AACH,KAAK,kCAAkC;AACvC;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,mBAAmB,IAAI,eAAe,GACvC,MAAM,GAAG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-export-from-main.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-export-from-main.213+855f8bc75",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"access": "public"
|
|
191
191
|
},
|
|
192
192
|
"dependencies": {
|
|
193
|
-
"@trpc/core": "11.0.0-alpha-tmp-export-from-main.
|
|
193
|
+
"@trpc/core": "11.0.0-alpha-tmp-export-from-main.213+855f8bc75"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@fastify/websocket": "^7.1.2",
|
|
@@ -229,5 +229,5 @@
|
|
|
229
229
|
"funding": [
|
|
230
230
|
"https://trpc.io/sponsor"
|
|
231
231
|
],
|
|
232
|
-
"gitHead": "
|
|
232
|
+
"gitHead": "855f8bc75d6f11780eabf92376c6297f9edf6107"
|
|
233
233
|
}
|
|
@@ -16,9 +16,9 @@ import type {
|
|
|
16
16
|
Context as APIGWContext,
|
|
17
17
|
} from 'aws-lambda';
|
|
18
18
|
// @trpc/server
|
|
19
|
-
import type { AnyRouter } from '
|
|
19
|
+
import type { AnyRouter } from '../..';
|
|
20
20
|
// @trpc/server
|
|
21
|
-
import { TRPCError } from '
|
|
21
|
+
import { TRPCError } from '../..';
|
|
22
22
|
import type {
|
|
23
23
|
HTTPRequest,
|
|
24
24
|
HTTPResponse,
|
|
@@ -15,10 +15,10 @@ import type {
|
|
|
15
15
|
APIGatewayProxyStructuredResultV2,
|
|
16
16
|
Context as APIGWContext,
|
|
17
17
|
} from 'aws-lambda';
|
|
18
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
18
|
+
import type { AnyRouter, inferRouterContext } from '../..'; // import @trpc/server
|
|
19
19
|
|
|
20
20
|
// @trpc/server
|
|
21
|
-
import { TRPCError } from '
|
|
21
|
+
import { TRPCError } from '../..';
|
|
22
22
|
import type {
|
|
23
23
|
HTTPHeaders,
|
|
24
24
|
OnErrorFunction,
|
package/src/adapters/express.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { Readable } from 'node:stream';
|
|
12
12
|
import type { FastifyReply, FastifyRequest } from 'fastify';
|
|
13
13
|
// @trpc/server
|
|
14
|
-
import type { AnyRouter } from '
|
|
14
|
+
import type { AnyRouter } from '../..';
|
|
15
15
|
import type {
|
|
16
16
|
HTTPBaseHandlerOptions,
|
|
17
17
|
HTTPRequest,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
|
|
13
13
|
import type { FastifyHandlerOptions } from '.';
|
|
14
14
|
// @trpc/server
|
|
15
|
-
import type { AnyRouter } from '
|
|
15
|
+
import type { AnyRouter } from '../..';
|
|
16
16
|
import type { NodeHTTPCreateContextFnOptions } from '../node-http';
|
|
17
17
|
import type { WSSHandlerOptions } from '../ws';
|
|
18
18
|
import { applyWSSHandler } from '../ws';
|
package/src/adapters/next.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
|
|
12
12
|
// @trpc/server
|
|
13
|
-
import type { AnyRouter } from '
|
|
13
|
+
import type { AnyRouter } from '..';
|
|
14
14
|
// @trpc/server
|
|
15
|
-
import { getErrorShape, TRPCError } from '
|
|
15
|
+
import { getErrorShape, TRPCError } from '..';
|
|
16
16
|
import type {
|
|
17
17
|
NodeHTTPCreateContextFnOptions,
|
|
18
18
|
NodeHTTPHandlerOptions,
|
|
@@ -14,7 +14,7 @@ import { Readable } from 'node:stream';
|
|
|
14
14
|
// @ts-ignore the type definitions for this package are borked
|
|
15
15
|
import { streamMultipart } from '@web3-storage/multipart-parser';
|
|
16
16
|
// @trpc/server
|
|
17
|
-
import type { CombinedDataTransformer } from '
|
|
17
|
+
import type { CombinedDataTransformer } from '../../../..';
|
|
18
18
|
import { createNodeHTTPContentTypeHandler } from '../../internals/contentType';
|
|
19
19
|
import type { NodeHTTPRequest } from '../../types';
|
|
20
20
|
import { NodeOnDiskFile } from './fileUploadHandler';
|
|
@@ -12,7 +12,7 @@ import type { IncomingMessage, ServerResponse } from 'http';
|
|
|
12
12
|
// eslint-disable-next-line no-restricted-imports
|
|
13
13
|
import type { MaybePromise } from '@trpc/core';
|
|
14
14
|
// @trpc/server
|
|
15
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
15
|
+
import type { AnyRouter, inferRouterContext } from '../..';
|
|
16
16
|
// @trpc/server/http
|
|
17
17
|
import type {
|
|
18
18
|
HTTPBaseHandlerOptions,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
12
12
|
import http from 'http';
|
|
13
13
|
// @trpc/server
|
|
14
|
-
import type { AnyRouter } from '
|
|
14
|
+
import type { AnyRouter } from '..';
|
|
15
15
|
import type {
|
|
16
16
|
NodeHTTPCreateContextFnOptions,
|
|
17
17
|
NodeHTTPHandlerOptions,
|
package/src/adapters/ws.ts
CHANGED
|
@@ -10,14 +10,14 @@ import type {
|
|
|
10
10
|
Unsubscribable,
|
|
11
11
|
} from '@trpc/core';
|
|
12
12
|
import type ws from 'ws';
|
|
13
|
-
import type { AnyRouter, inferRouterContext } from '
|
|
13
|
+
import type { AnyRouter, inferRouterContext } from '..';
|
|
14
14
|
import {
|
|
15
15
|
callProcedure,
|
|
16
16
|
getErrorShape,
|
|
17
17
|
getTRPCErrorFromUnknown,
|
|
18
18
|
transformTRPCResponse,
|
|
19
19
|
TRPCError,
|
|
20
|
-
} from '
|
|
20
|
+
} from '..';
|
|
21
21
|
import { isObservable } from '../observable';
|
|
22
22
|
import { parseTRPCMessage } from '../rpc';
|
|
23
23
|
import type { NodeHTTPCreateContextFnOptions } from './node-http';
|
package/src/index.ts
CHANGED
|
@@ -1 +1,105 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {
|
|
2
|
+
TRPCError,
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use `experimental_trpcMiddleware` instead
|
|
5
|
+
*/
|
|
6
|
+
experimental_standaloneMiddleware,
|
|
7
|
+
experimental_standaloneMiddleware as experimental_trpcMiddleware,
|
|
8
|
+
initTRPC,
|
|
9
|
+
// --- FIXME a bunch of these exports are only useful for plugins - move them somewhere else? ----
|
|
10
|
+
callProcedure as callTRPCProcedure,
|
|
11
|
+
getTRPCErrorFromUnknown,
|
|
12
|
+
transformTRPCResponse,
|
|
13
|
+
createFlatProxy as createTRPCFlatProxy,
|
|
14
|
+
type inferProcedureInput,
|
|
15
|
+
type inferProcedureOutput,
|
|
16
|
+
type inferRouterError,
|
|
17
|
+
type inferRouterInputs,
|
|
18
|
+
type inferRouterOutputs,
|
|
19
|
+
type inferRouterContext,
|
|
20
|
+
type inferTransformedProcedureOutput,
|
|
21
|
+
type inferTransformedSubscriptionOutput,
|
|
22
|
+
type AnyProcedure as AnyTRPCProcedure,
|
|
23
|
+
type AnyRouter as AnyTRPCRouter,
|
|
24
|
+
type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction,
|
|
25
|
+
type CombinedDataTransformer as TRPCCombinedDataTransformer,
|
|
26
|
+
type ProcedureType as TRPCProcedureType,
|
|
27
|
+
type AnyMutationProcedure as AnyTRPCMutationProcedure,
|
|
28
|
+
type AnyQueryProcedure as AnyTRPCQueryProcedure,
|
|
29
|
+
type ProcedureRouterRecord as TRPCProcedureRouterRecord,
|
|
30
|
+
type ProcedureArgs as TRPCProcedureArgs,
|
|
31
|
+
type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure,
|
|
32
|
+
} from './@trpc-core-unstable-do-not-import-this-please';
|
|
33
|
+
|
|
34
|
+
export type {
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use `AnyTRPCProcedure` instead
|
|
37
|
+
*/
|
|
38
|
+
AnyProcedure,
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use `AnyTRPCRouter` instead
|
|
41
|
+
*/
|
|
42
|
+
AnyRouter,
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use `AnyTRPCMiddlewareFunction` instead
|
|
45
|
+
*/
|
|
46
|
+
AnyMiddlewareFunction,
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
49
|
+
*/
|
|
50
|
+
CombinedDataTransformer,
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated This is a utility type will be removed in v12
|
|
54
|
+
*/
|
|
55
|
+
Dict,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated This is a utility type will be removed in v12
|
|
59
|
+
*/
|
|
60
|
+
DeepPartial,
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated use `TRPCProcedureType` instead
|
|
63
|
+
*/
|
|
64
|
+
ProcedureType,
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
67
|
+
*/
|
|
68
|
+
AnyMutationProcedure,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
72
|
+
*/
|
|
73
|
+
AnyQueryProcedure,
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
76
|
+
*/
|
|
77
|
+
ProcedureRouterRecord,
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated use `TRPCProcedureArgs` instead
|
|
80
|
+
*/
|
|
81
|
+
ProcedureArgs,
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
84
|
+
*/
|
|
85
|
+
AnySubscriptionProcedure,
|
|
86
|
+
} from '@trpc/core';
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated use `getTRPCErrorShape` instead
|
|
91
|
+
*/
|
|
92
|
+
getErrorShape,
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated use `callTRPCProcedure` instead
|
|
96
|
+
*/
|
|
97
|
+
callProcedure,
|
|
98
|
+
} from '@trpc/core';
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated
|
|
102
|
+
* Use `Awaited<ReturnType<typeof myFunction>>` instead
|
|
103
|
+
*/
|
|
104
|
+
export type inferAsyncReturnType<TFunction extends (...args: any[]) => any> =
|
|
105
|
+
Awaited<ReturnType<TFunction>>;
|
package/src/shared.ts
CHANGED
package/dist/@trpc-server.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export { TRPCError,
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated use `experimental_trpcMiddleware` instead
|
|
4
|
-
*/
|
|
5
|
-
experimental_standaloneMiddleware, experimental_standaloneMiddleware as experimental_trpcMiddleware, initTRPC, callProcedure as callTRPCProcedure, getTRPCErrorFromUnknown, transformTRPCResponse, createFlatProxy as createTRPCFlatProxy, type inferProcedureInput, type inferProcedureOutput, type inferRouterError, type inferRouterInputs, type inferRouterOutputs, type inferRouterContext, type inferTransformedProcedureOutput, type inferTransformedSubscriptionOutput, type AnyProcedure as AnyTRPCProcedure, type AnyRouter as AnyTRPCRouter, type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction, type CombinedDataTransformer as TRPCCombinedDataTransformer, type ProcedureType as TRPCProcedureType, type AnyMutationProcedure as AnyTRPCMutationProcedure, type AnyQueryProcedure as AnyTRPCQueryProcedure, type ProcedureRouterRecord as TRPCProcedureRouterRecord, type ProcedureArgs as TRPCProcedureArgs, type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure, } from './@trpc-core-unstable-do-not-import-this-please';
|
|
6
|
-
export type {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated use `AnyTRPCProcedure` instead
|
|
9
|
-
*/
|
|
10
|
-
AnyProcedure,
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated use `AnyTRPCRouter` instead
|
|
13
|
-
*/
|
|
14
|
-
AnyRouter,
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated use `AnyTRPCMiddlewareFunction` instead
|
|
17
|
-
*/
|
|
18
|
-
AnyMiddlewareFunction,
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
21
|
-
*/
|
|
22
|
-
CombinedDataTransformer,
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated This is a utility type will be removed in v12
|
|
25
|
-
*/
|
|
26
|
-
Dict,
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated This is a utility type will be removed in v12
|
|
29
|
-
*/
|
|
30
|
-
DeepPartial,
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated use `TRPCProcedureType` instead
|
|
33
|
-
*/
|
|
34
|
-
ProcedureType,
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
37
|
-
*/
|
|
38
|
-
AnyMutationProcedure,
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
41
|
-
*/
|
|
42
|
-
AnyQueryProcedure,
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
45
|
-
*/
|
|
46
|
-
ProcedureRouterRecord,
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated use `TRPCProcedureArgs` instead
|
|
49
|
-
*/
|
|
50
|
-
ProcedureArgs,
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
53
|
-
*/
|
|
54
|
-
AnySubscriptionProcedure, } from '@trpc/core';
|
|
55
|
-
export {
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated use `getTRPCErrorShape` instead
|
|
58
|
-
*/
|
|
59
|
-
getErrorShape,
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated use `callTRPCProcedure` instead
|
|
62
|
-
*/
|
|
63
|
-
callProcedure, } from '@trpc/core';
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated
|
|
66
|
-
* Use `Awaited<ReturnType<typeof myFunction>>` instead
|
|
67
|
-
*/
|
|
68
|
-
export type inferAsyncReturnType<TFunction extends (...args: any[]) => any> = Awaited<ReturnType<TFunction>>;
|
|
69
|
-
//# sourceMappingURL=@trpc-server.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"@trpc-server.d.ts","sourceRoot":"","sources":["../src/@trpc-server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS;AACT;;GAEG;AACH,iCAAiC,EACjC,iCAAiC,IAAI,2BAA2B,EAChE,QAAQ,EAER,aAAa,IAAI,iBAAiB,EAClC,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,IAAI,mBAAmB,EACtC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,kCAAkC,EACvC,KAAK,YAAY,IAAI,gBAAgB,EACrC,KAAK,SAAS,IAAI,aAAa,EAC/B,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,uBAAuB,IAAI,2BAA2B,EAC3D,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,oBAAoB,IAAI,wBAAwB,EACrD,KAAK,iBAAiB,IAAI,qBAAqB,EAC/C,KAAK,qBAAqB,IAAI,yBAAyB,EACvD,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,wBAAwB,IAAI,4BAA4B,GAC9D,MAAM,iDAAiD,CAAC;AAEzD,YAAY;AACV;;GAEG;AACH,YAAY;AACZ;;GAEG;AACH,SAAS;AACT;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,uBAAuB;AAEvB;;GAEG;AACH,IAAI;AAEJ;;GAEG;AACH,WAAW;AACX;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,oBAAoB;AAEpB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,qBAAqB;AACrB;;GAEG;AACH,aAAa;AACb;;GAEG;AACH,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,OAAO;AACL;;GAEG;AACH,aAAa;AAEb;;GAEG;AACH,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IACxE,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC"}
|
package/src/@trpc-server.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
TRPCError,
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated use `experimental_trpcMiddleware` instead
|
|
5
|
-
*/
|
|
6
|
-
experimental_standaloneMiddleware,
|
|
7
|
-
experimental_standaloneMiddleware as experimental_trpcMiddleware,
|
|
8
|
-
initTRPC,
|
|
9
|
-
// --- FIXME a bunch of these exports are only useful for plugins - move them somewhere else? ----
|
|
10
|
-
callProcedure as callTRPCProcedure,
|
|
11
|
-
getTRPCErrorFromUnknown,
|
|
12
|
-
transformTRPCResponse,
|
|
13
|
-
createFlatProxy as createTRPCFlatProxy,
|
|
14
|
-
type inferProcedureInput,
|
|
15
|
-
type inferProcedureOutput,
|
|
16
|
-
type inferRouterError,
|
|
17
|
-
type inferRouterInputs,
|
|
18
|
-
type inferRouterOutputs,
|
|
19
|
-
type inferRouterContext,
|
|
20
|
-
type inferTransformedProcedureOutput,
|
|
21
|
-
type inferTransformedSubscriptionOutput,
|
|
22
|
-
type AnyProcedure as AnyTRPCProcedure,
|
|
23
|
-
type AnyRouter as AnyTRPCRouter,
|
|
24
|
-
type AnyMiddlewareFunction as AnyTRPCMiddlewareFunction,
|
|
25
|
-
type CombinedDataTransformer as TRPCCombinedDataTransformer,
|
|
26
|
-
type ProcedureType as TRPCProcedureType,
|
|
27
|
-
type AnyMutationProcedure as AnyTRPCMutationProcedure,
|
|
28
|
-
type AnyQueryProcedure as AnyTRPCQueryProcedure,
|
|
29
|
-
type ProcedureRouterRecord as TRPCProcedureRouterRecord,
|
|
30
|
-
type ProcedureArgs as TRPCProcedureArgs,
|
|
31
|
-
type AnySubscriptionProcedure as AnyTRPCSubscriptionProcedure,
|
|
32
|
-
} from './@trpc-core-unstable-do-not-import-this-please';
|
|
33
|
-
|
|
34
|
-
export type {
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated use `AnyTRPCProcedure` instead
|
|
37
|
-
*/
|
|
38
|
-
AnyProcedure,
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated use `AnyTRPCRouter` instead
|
|
41
|
-
*/
|
|
42
|
-
AnyRouter,
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated use `AnyTRPCMiddlewareFunction` instead
|
|
45
|
-
*/
|
|
46
|
-
AnyMiddlewareFunction,
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated use `TRPCCombinedDataTransformer` instead
|
|
49
|
-
*/
|
|
50
|
-
CombinedDataTransformer,
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated This is a utility type will be removed in v12
|
|
54
|
-
*/
|
|
55
|
-
Dict,
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated This is a utility type will be removed in v12
|
|
59
|
-
*/
|
|
60
|
-
DeepPartial,
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated use `TRPCProcedureType` instead
|
|
63
|
-
*/
|
|
64
|
-
ProcedureType,
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated use `AnyTRPCMutationProcedure` instead
|
|
67
|
-
*/
|
|
68
|
-
AnyMutationProcedure,
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated use `AnyTRPCQueryProcedure` instead
|
|
72
|
-
*/
|
|
73
|
-
AnyQueryProcedure,
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated use `TRPCProcedureRouterRecord` instead
|
|
76
|
-
*/
|
|
77
|
-
ProcedureRouterRecord,
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated use `TRPCProcedureArgs` instead
|
|
80
|
-
*/
|
|
81
|
-
ProcedureArgs,
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated use `AnyTRPCSubscriptionProcedure` instead
|
|
84
|
-
*/
|
|
85
|
-
AnySubscriptionProcedure,
|
|
86
|
-
} from '@trpc/core';
|
|
87
|
-
|
|
88
|
-
export {
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated use `getTRPCErrorShape` instead
|
|
91
|
-
*/
|
|
92
|
-
getErrorShape,
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated use `callTRPCProcedure` instead
|
|
96
|
-
*/
|
|
97
|
-
callProcedure,
|
|
98
|
-
} from '@trpc/core';
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated
|
|
102
|
-
* Use `Awaited<ReturnType<typeof myFunction>>` instead
|
|
103
|
-
*/
|
|
104
|
-
export type inferAsyncReturnType<TFunction extends (...args: any[]) => any> =
|
|
105
|
-
Awaited<ReturnType<TFunction>>;
|