@trpc/server 11.0.0-rc.362 → 11.0.0-rc.364
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.js +2 -2
- package/dist/adapters/aws-lambda/index.mjs +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +2 -2
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +11 -2
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +10 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.js +1 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +1 -0
- package/dist/adapters/fetch/fetchRequestHandler.js +2 -2
- package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -1
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +2 -2
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -1
- package/dist/bundle-analysis.json +76 -76
- package/dist/http.js +2 -2
- package/dist/http.mjs +1 -1
- package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.d.ts → resolveResponse.d.ts} +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import.d.ts +1 -1
- package/dist/unstable-core-do-not-import.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import.js +2 -2
- package/dist/unstable-core-do-not-import.mjs +1 -1
- package/package.json +2 -2
- package/src/adapters/fastify/fastifyRequestHandler.ts +10 -8
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +3 -2
- package/src/unstable-core-do-not-import.ts +1 -1
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.d.ts.map +0 -1
- /package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.js → resolveResponse.js} +0 -0
- /package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.mjs → resolveResponse.mjs} +0 -0
- /package/src/unstable-core-do-not-import/http/{resolveHTTPResponse.ts → resolveResponse.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
|
|
4
4
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
5
5
|
var getPlanner = require('./getPlanner.js');
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ function awsLambdaRequestHandler(opts) {
|
|
|
14
14
|
...innerOpts
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
|
-
const response = await
|
|
17
|
+
const response = await resolveResponse.resolveResponse({
|
|
18
18
|
...opts,
|
|
19
19
|
createContext,
|
|
20
20
|
req: planner.request,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveResponse } from '../../unstable-core-do-not-import/http/
|
|
1
|
+
import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
2
2
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
3
3
|
import { getPlanner } from './getPlanner.mjs';
|
|
4
4
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { FastifyReply, FastifyRequest } from 'fastify';
|
|
11
11
|
import type { AnyRouter } from '../../@trpc/server';
|
|
12
|
-
import type
|
|
13
|
-
import type
|
|
12
|
+
import { type HTTPBaseHandlerOptions } from '../../@trpc/server/http';
|
|
13
|
+
import { type NodeHTTPCreateContextOption } from '../node-http';
|
|
14
14
|
export type FastifyHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = HTTPBaseHandlerOptions<TRouter, TRequest> & NodeHTTPCreateContextOption<TRouter, TRequest, TResponse>;
|
|
15
15
|
type FastifyRequestHandlerOptions<TRouter extends AnyRouter, TRequest extends FastifyRequest, TResponse extends FastifyReply> = FastifyHandlerOptions<TRouter, TRequest, TResponse> & {
|
|
16
16
|
req: TRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"fastifyRequestHandler.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyRequestHandler.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,cAAc,CAAC;AAEtB,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,iBAkCjE"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
|
|
4
4
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
5
5
|
var incomingMessageToRequest = require('../node-http/incomingMessageToRequest.js');
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import type { AnyTRPCRouter } from '@trpc/server'
|
|
13
|
+
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
14
|
+
* ```
|
|
15
|
+
*/ // @trpc/server/http
|
|
7
16
|
async function fastifyRequestHandler(opts) {
|
|
8
17
|
const createContext = async (innerOpts)=>{
|
|
9
18
|
return await opts.createContext?.({
|
|
@@ -19,7 +28,7 @@ async function fastifyRequestHandler(opts) {
|
|
|
19
28
|
const req = incomingMessageToRequest.incomingMessageToRequest(incomingMessage, {
|
|
20
29
|
maxBodySize: null
|
|
21
30
|
});
|
|
22
|
-
const res = await
|
|
31
|
+
const res = await resolveResponse.resolveResponse({
|
|
23
32
|
...opts,
|
|
24
33
|
req,
|
|
25
34
|
error: null,
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import { resolveResponse } from '../../unstable-core-do-not-import/http/
|
|
1
|
+
import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
2
2
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
3
3
|
import { incomingMessageToRequest } from '../node-http/incomingMessageToRequest.mjs';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* If you're making an adapter for tRPC and looking at this file for reference, you should import types and functions from `@trpc/server` and `@trpc/server/http`
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import type { AnyTRPCRouter } from '@trpc/server'
|
|
11
|
+
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
12
|
+
* ```
|
|
13
|
+
*/ // @trpc/server/http
|
|
5
14
|
async function fastifyRequestHandler(opts) {
|
|
6
15
|
const createContext = async (innerOpts)=>{
|
|
7
16
|
return await opts.createContext?.({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"fastifyTRPCPlugin.d.ts","sourceRoot":"","sources":["../../../src/adapters/fastify/fastifyTRPCPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAGnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGrE,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,QAmC5B"}
|
|
@@ -12,6 +12,7 @@ var fastifyRequestHandler = require('./fastifyRequestHandler.js');
|
|
|
12
12
|
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
13
13
|
* ```
|
|
14
14
|
*/ /// <reference types="@fastify/websocket" />
|
|
15
|
+
// @trpc/server/ws
|
|
15
16
|
function fastifyTRPCPlugin(fastify, opts, done) {
|
|
16
17
|
fastify.removeContentTypeParser('application/json');
|
|
17
18
|
fastify.addContentTypeParser('application/json', {
|
|
@@ -10,6 +10,7 @@ import { fastifyRequestHandler } from './fastifyRequestHandler.mjs';
|
|
|
10
10
|
* import type { HTTPBaseHandlerOptions } from '@trpc/server/http'
|
|
11
11
|
* ```
|
|
12
12
|
*/ /// <reference types="@fastify/websocket" />
|
|
13
|
+
// @trpc/server/ws
|
|
13
14
|
function fastifyTRPCPlugin(fastify, opts, done) {
|
|
14
15
|
fastify.removeContentTypeParser('application/json');
|
|
15
16
|
fastify.addContentTypeParser('application/json', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
|
|
4
4
|
var toURL = require('../../unstable-core-do-not-import/http/toURL.js');
|
|
5
5
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ async function fetchRequestHandler(opts) {
|
|
|
31
31
|
const pathname = trimSlashes(url.pathname);
|
|
32
32
|
const endpoint = trimSlashes(opts.endpoint);
|
|
33
33
|
const path = trimSlashes(pathname.slice(endpoint.length));
|
|
34
|
-
return await
|
|
34
|
+
return await resolveResponse.resolveResponse({
|
|
35
35
|
...opts,
|
|
36
36
|
req: opts.req,
|
|
37
37
|
createContext,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveResponse } from '../../unstable-core-do-not-import/http/
|
|
1
|
+
import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
2
2
|
import { toURL } from '../../unstable-core-do-not-import/http/toURL.mjs';
|
|
3
3
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var TRPCError = require('../../unstable-core-do-not-import/error/TRPCError.js');
|
|
4
|
-
var
|
|
4
|
+
var resolveResponse = require('../../unstable-core-do-not-import/http/resolveResponse.js');
|
|
5
5
|
require('../../unstable-core-do-not-import/rootConfig.js');
|
|
6
6
|
var incomingMessageToRequest = require('./incomingMessageToRequest.js');
|
|
7
7
|
|
|
@@ -32,7 +32,7 @@ async function nodeHTTPRequestHandler(opts) {
|
|
|
32
32
|
...innerOpts
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
const response = await
|
|
35
|
+
const response = await resolveResponse.resolveResponse({
|
|
36
36
|
...opts,
|
|
37
37
|
req,
|
|
38
38
|
error: err ? TRPCError.getTRPCErrorFromUnknown(err) : null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getTRPCErrorFromUnknown } from '../../unstable-core-do-not-import/error/TRPCError.mjs';
|
|
2
|
-
import { resolveResponse } from '../../unstable-core-do-not-import/http/
|
|
2
|
+
import { resolveResponse } from '../../unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
3
3
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
4
|
import { incomingMessageToRequest } from './incomingMessageToRequest.mjs';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
2
|
+
"bundleSize": 86140,
|
|
3
3
|
"bundleOrigSize": 132897,
|
|
4
|
-
"bundleReduction": 35.
|
|
4
|
+
"bundleReduction": 35.18,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"dependents": [
|
|
16
16
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
17
17
|
],
|
|
18
|
-
"percent": 11.
|
|
18
|
+
"percent": 11.81,
|
|
19
19
|
"reduction": 0
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"id": "/src/unstable-core-do-not-import/http/
|
|
22
|
+
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
23
23
|
"size": 9493,
|
|
24
24
|
"origSize": 9989,
|
|
25
25
|
"renderedExports": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependents": [
|
|
30
30
|
"/src/unstable-core-do-not-import.ts"
|
|
31
31
|
],
|
|
32
|
-
"percent": 11.
|
|
32
|
+
"percent": 11.02,
|
|
33
33
|
"reduction": 4.97
|
|
34
34
|
},
|
|
35
35
|
{
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"/src/unstable-core-do-not-import.ts",
|
|
45
45
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
46
46
|
],
|
|
47
|
-
"percent": 7.
|
|
47
|
+
"percent": 7.34,
|
|
48
48
|
"reduction": 59.52
|
|
49
49
|
},
|
|
50
50
|
{
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"removedExports": [],
|
|
61
61
|
"dependents": [
|
|
62
62
|
"/src/unstable-core-do-not-import.ts",
|
|
63
|
-
"/src/unstable-core-do-not-import/http/
|
|
63
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
64
64
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
65
65
|
],
|
|
66
|
-
"percent": 6.
|
|
66
|
+
"percent": 6.95,
|
|
67
67
|
"reduction": 41.05
|
|
68
68
|
},
|
|
69
69
|
{
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"removedExports": [],
|
|
77
77
|
"dependents": [
|
|
78
78
|
"/src/unstable-core-do-not-import.ts",
|
|
79
|
-
"/src/unstable-core-do-not-import/http/
|
|
79
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
80
80
|
],
|
|
81
|
-
"percent": 6.
|
|
81
|
+
"percent": 6.44,
|
|
82
82
|
"reduction": 0
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"dependents": [
|
|
93
93
|
"/src/adapters/aws-lambda/index.ts"
|
|
94
94
|
],
|
|
95
|
-
"percent": 5.
|
|
95
|
+
"percent": 5.63,
|
|
96
96
|
"reduction": 13.62
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"/src/observable/index.ts",
|
|
110
110
|
"/src/observable/operators.ts"
|
|
111
111
|
],
|
|
112
|
-
"percent": 3.
|
|
112
|
+
"percent": 3.63,
|
|
113
113
|
"reduction": 0.67
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"dependents": [
|
|
124
124
|
"/src/adapters/next-app-dir.ts"
|
|
125
125
|
],
|
|
126
|
-
"percent": 3.
|
|
126
|
+
"percent": 3.54,
|
|
127
127
|
"reduction": 20.12
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"dependents": [
|
|
140
140
|
"/src/observable/index.ts"
|
|
141
141
|
],
|
|
142
|
-
"percent": 3.
|
|
142
|
+
"percent": 3.2,
|
|
143
143
|
"reduction": 0
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
"removedExports": [],
|
|
156
156
|
"dependents": [
|
|
157
157
|
"/src/unstable-core-do-not-import.ts",
|
|
158
|
-
"/src/unstable-core-do-not-import/http/
|
|
158
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
159
159
|
"/src/unstable-core-do-not-import/router.ts",
|
|
160
160
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
161
161
|
],
|
|
162
|
-
"percent": 3.
|
|
162
|
+
"percent": 3.19,
|
|
163
163
|
"reduction": 45.94
|
|
164
164
|
},
|
|
165
165
|
{
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"dependents": [
|
|
174
174
|
"/src/unstable-core-do-not-import.ts"
|
|
175
175
|
],
|
|
176
|
-
"percent": 3.
|
|
176
|
+
"percent": 3.08,
|
|
177
177
|
"reduction": 41.46
|
|
178
178
|
},
|
|
179
179
|
{
|
|
@@ -193,12 +193,12 @@
|
|
|
193
193
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
194
194
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
195
195
|
],
|
|
196
|
-
"percent": 3.
|
|
196
|
+
"percent": 3.05,
|
|
197
197
|
"reduction": 55.5
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"id": "/src/adapters/fetch/fetchRequestHandler.ts",
|
|
201
|
-
"size":
|
|
201
|
+
"size": 2255,
|
|
202
202
|
"origSize": 2305,
|
|
203
203
|
"renderedExports": [
|
|
204
204
|
"fetchRequestHandler"
|
|
@@ -207,8 +207,8 @@
|
|
|
207
207
|
"dependents": [
|
|
208
208
|
"/src/adapters/fetch/index.ts"
|
|
209
209
|
],
|
|
210
|
-
"percent": 2.
|
|
211
|
-
"reduction": 2
|
|
210
|
+
"percent": 2.62,
|
|
211
|
+
"reduction": 2.17
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"id": "/src/unstable-core-do-not-import/createProxy.ts",
|
|
@@ -223,12 +223,12 @@
|
|
|
223
223
|
"/src/unstable-core-do-not-import.ts",
|
|
224
224
|
"/src/unstable-core-do-not-import/router.ts"
|
|
225
225
|
],
|
|
226
|
-
"percent": 2.
|
|
226
|
+
"percent": 2.32,
|
|
227
227
|
"reduction": 0
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
231
|
-
"size":
|
|
231
|
+
"size": 1956,
|
|
232
232
|
"origSize": 2390,
|
|
233
233
|
"renderedExports": [
|
|
234
234
|
"nodeHTTPRequestHandler"
|
|
@@ -237,8 +237,8 @@
|
|
|
237
237
|
"dependents": [
|
|
238
238
|
"/src/adapters/node-http/index.ts"
|
|
239
239
|
],
|
|
240
|
-
"percent": 2.
|
|
241
|
-
"reduction":
|
|
240
|
+
"percent": 2.27,
|
|
241
|
+
"reduction": 18.16
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
"id": "/src/adapters/node-http/incomingMessageToRequest.ts",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"/src/adapters/node-http/index.ts",
|
|
253
253
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
254
254
|
],
|
|
255
|
-
"percent": 2.
|
|
255
|
+
"percent": 2.27,
|
|
256
256
|
"reduction": 20.5
|
|
257
257
|
},
|
|
258
258
|
{
|
|
@@ -267,13 +267,13 @@
|
|
|
267
267
|
"removedExports": [],
|
|
268
268
|
"dependents": [
|
|
269
269
|
"/src/unstable-core-do-not-import.ts",
|
|
270
|
-
"/src/unstable-core-do-not-import/http/
|
|
270
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
271
271
|
"/src/unstable-core-do-not-import/router.ts",
|
|
272
272
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
273
273
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
274
274
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
275
275
|
],
|
|
276
|
-
"percent": 2.
|
|
276
|
+
"percent": 2.01,
|
|
277
277
|
"reduction": 19.47
|
|
278
278
|
},
|
|
279
279
|
{
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
],
|
|
286
286
|
"removedExports": [],
|
|
287
287
|
"dependents": [],
|
|
288
|
-
"percent": 1.
|
|
288
|
+
"percent": 1.83,
|
|
289
289
|
"reduction": 21.04
|
|
290
290
|
},
|
|
291
291
|
{
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
],
|
|
298
298
|
"removedExports": [],
|
|
299
299
|
"dependents": [],
|
|
300
|
-
"percent": 1.
|
|
300
|
+
"percent": 1.79,
|
|
301
301
|
"reduction": 26.94
|
|
302
302
|
},
|
|
303
303
|
{
|
|
@@ -310,13 +310,13 @@
|
|
|
310
310
|
],
|
|
311
311
|
"removedExports": [],
|
|
312
312
|
"dependents": [],
|
|
313
|
-
"percent": 1.
|
|
313
|
+
"percent": 1.77,
|
|
314
314
|
"reduction": 27.6
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
|
|
318
|
-
"size":
|
|
319
|
-
"origSize":
|
|
318
|
+
"size": 1500,
|
|
319
|
+
"origSize": 2297,
|
|
320
320
|
"renderedExports": [
|
|
321
321
|
"fastifyTRPCPlugin"
|
|
322
322
|
],
|
|
@@ -324,8 +324,8 @@
|
|
|
324
324
|
"dependents": [
|
|
325
325
|
"/src/adapters/fastify/index.ts"
|
|
326
326
|
],
|
|
327
|
-
"percent": 1.
|
|
328
|
-
"reduction":
|
|
327
|
+
"percent": 1.74,
|
|
328
|
+
"reduction": 34.7
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
"id": "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
@@ -338,12 +338,27 @@
|
|
|
338
338
|
"removedExports": [],
|
|
339
339
|
"dependents": [
|
|
340
340
|
"/src/unstable-core-do-not-import.ts",
|
|
341
|
-
"/src/unstable-core-do-not-import/http/
|
|
341
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
342
342
|
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
343
343
|
],
|
|
344
|
-
"percent": 1.
|
|
344
|
+
"percent": 1.47,
|
|
345
345
|
"reduction": 23.5
|
|
346
346
|
},
|
|
347
|
+
{
|
|
348
|
+
"id": "/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
349
|
+
"size": 1132,
|
|
350
|
+
"origSize": 2160,
|
|
351
|
+
"renderedExports": [
|
|
352
|
+
"fastifyRequestHandler"
|
|
353
|
+
],
|
|
354
|
+
"removedExports": [],
|
|
355
|
+
"dependents": [
|
|
356
|
+
"/src/adapters/fastify/index.ts",
|
|
357
|
+
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
358
|
+
],
|
|
359
|
+
"percent": 1.31,
|
|
360
|
+
"reduction": 47.59
|
|
361
|
+
},
|
|
347
362
|
{
|
|
348
363
|
"id": "/src/unstable-core-do-not-import/parser.ts",
|
|
349
364
|
"size": 992,
|
|
@@ -356,7 +371,7 @@
|
|
|
356
371
|
"/src/unstable-core-do-not-import.ts",
|
|
357
372
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
358
373
|
],
|
|
359
|
-
"percent": 1.
|
|
374
|
+
"percent": 1.15,
|
|
360
375
|
"reduction": 56.22
|
|
361
376
|
},
|
|
362
377
|
{
|
|
@@ -398,7 +413,7 @@
|
|
|
398
413
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
399
414
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
400
415
|
],
|
|
401
|
-
"percent": 1.
|
|
416
|
+
"percent": 1.09,
|
|
402
417
|
"reduction": 25.69
|
|
403
418
|
},
|
|
404
419
|
{
|
|
@@ -415,32 +430,17 @@
|
|
|
415
430
|
"percent": 0.95,
|
|
416
431
|
"reduction": 0.97
|
|
417
432
|
},
|
|
418
|
-
{
|
|
419
|
-
"id": "/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
420
|
-
"size": 794,
|
|
421
|
-
"origSize": 2172,
|
|
422
|
-
"renderedExports": [
|
|
423
|
-
"fastifyRequestHandler"
|
|
424
|
-
],
|
|
425
|
-
"removedExports": [],
|
|
426
|
-
"dependents": [
|
|
427
|
-
"/src/adapters/fastify/index.ts",
|
|
428
|
-
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
429
|
-
],
|
|
430
|
-
"percent": 0.93,
|
|
431
|
-
"reduction": 63.44
|
|
432
|
-
},
|
|
433
433
|
{
|
|
434
434
|
"id": "/src/adapters/aws-lambda/index.ts",
|
|
435
|
-
"size":
|
|
435
|
+
"size": 759,
|
|
436
436
|
"origSize": 2293,
|
|
437
437
|
"renderedExports": [
|
|
438
438
|
"awsLambdaRequestHandler"
|
|
439
439
|
],
|
|
440
440
|
"removedExports": [],
|
|
441
441
|
"dependents": [],
|
|
442
|
-
"percent": 0.
|
|
443
|
-
"reduction": 66.
|
|
442
|
+
"percent": 0.88,
|
|
443
|
+
"reduction": 66.9
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"id": "/src/unstable-core-do-not-import/http/batchStreamFormatter.ts",
|
|
@@ -452,9 +452,9 @@
|
|
|
452
452
|
"removedExports": [],
|
|
453
453
|
"dependents": [
|
|
454
454
|
"/src/unstable-core-do-not-import.ts",
|
|
455
|
-
"/src/unstable-core-do-not-import/http/
|
|
455
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
456
456
|
],
|
|
457
|
-
"percent": 0.
|
|
457
|
+
"percent": 0.77,
|
|
458
458
|
"reduction": 0.6
|
|
459
459
|
},
|
|
460
460
|
{
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"removedExports": [],
|
|
468
468
|
"dependents": [
|
|
469
469
|
"/src/unstable-core-do-not-import.ts",
|
|
470
|
-
"/src/unstable-core-do-not-import/http/
|
|
470
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
471
471
|
],
|
|
472
472
|
"percent": 0.73,
|
|
473
473
|
"reduction": 43.49
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
],
|
|
483
483
|
"removedExports": [],
|
|
484
484
|
"dependents": [],
|
|
485
|
-
"percent": 0.
|
|
485
|
+
"percent": 0.6,
|
|
486
486
|
"reduction": 67.09
|
|
487
487
|
},
|
|
488
488
|
{
|
|
@@ -644,9 +644,9 @@
|
|
|
644
644
|
"reduction": 100
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
|
-
"id": "/src/
|
|
647
|
+
"id": "/src/unstable-core-do-not-import.ts",
|
|
648
648
|
"size": 0,
|
|
649
|
-
"origSize":
|
|
649
|
+
"origSize": 1908,
|
|
650
650
|
"renderedExports": [],
|
|
651
651
|
"removedExports": [],
|
|
652
652
|
"dependents": [],
|
|
@@ -654,9 +654,9 @@
|
|
|
654
654
|
"reduction": 100
|
|
655
655
|
},
|
|
656
656
|
{
|
|
657
|
-
"id": "/src/
|
|
657
|
+
"id": "/src/shared.ts",
|
|
658
658
|
"size": 0,
|
|
659
|
-
"origSize":
|
|
659
|
+
"origSize": 653,
|
|
660
660
|
"renderedExports": [],
|
|
661
661
|
"removedExports": [],
|
|
662
662
|
"dependents": [],
|
|
@@ -696,27 +696,27 @@
|
|
|
696
696
|
"reduction": 100
|
|
697
697
|
},
|
|
698
698
|
{
|
|
699
|
-
"id": "/src/adapters/
|
|
699
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
700
700
|
"size": 0,
|
|
701
|
-
"origSize":
|
|
701
|
+
"origSize": 64,
|
|
702
702
|
"renderedExports": [],
|
|
703
703
|
"removedExports": [],
|
|
704
|
-
"dependents": [
|
|
705
|
-
"/src/adapters/express.ts",
|
|
706
|
-
"/src/adapters/standalone.ts",
|
|
707
|
-
"/src/adapters/next.ts",
|
|
708
|
-
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
709
|
-
],
|
|
704
|
+
"dependents": [],
|
|
710
705
|
"percent": 0,
|
|
711
706
|
"reduction": 100
|
|
712
707
|
},
|
|
713
708
|
{
|
|
714
|
-
"id": "/src/adapters/
|
|
709
|
+
"id": "/src/adapters/node-http/index.ts",
|
|
715
710
|
"size": 0,
|
|
716
|
-
"origSize":
|
|
711
|
+
"origSize": 111,
|
|
717
712
|
"renderedExports": [],
|
|
718
713
|
"removedExports": [],
|
|
719
|
-
"dependents": [
|
|
714
|
+
"dependents": [
|
|
715
|
+
"/src/adapters/express.ts",
|
|
716
|
+
"/src/adapters/next.ts",
|
|
717
|
+
"/src/adapters/standalone.ts",
|
|
718
|
+
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
719
|
+
],
|
|
720
720
|
"percent": 0,
|
|
721
721
|
"reduction": 100
|
|
722
722
|
}
|
package/dist/http.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
|
|
4
4
|
var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
5
5
|
var contentTypeParsers = require('./unstable-core-do-not-import/http/contentTypeParsers.js');
|
|
6
|
-
var
|
|
6
|
+
var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
|
|
7
7
|
var toURL = require('./unstable-core-do-not-import/http/toURL.js');
|
|
8
8
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
9
9
|
|
|
@@ -13,5 +13,5 @@ exports.getHTTPStatusCode = getHTTPStatusCode.getHTTPStatusCode;
|
|
|
13
13
|
exports.getHTTPStatusCodeFromError = getHTTPStatusCode.getHTTPStatusCodeFromError;
|
|
14
14
|
exports.getBatchStreamFormatter = batchStreamFormatter.getBatchStreamFormatter;
|
|
15
15
|
exports.octetInputParser = contentTypeParsers.octetInputParser;
|
|
16
|
-
exports.resolveResponse =
|
|
16
|
+
exports.resolveResponse = resolveResponse.resolveResponse;
|
|
17
17
|
exports.toURL = toURL.toURL;
|
package/dist/http.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getHTTPStatusCode, getHTTPStatusCodeFromError } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
|
|
2
2
|
export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
3
3
|
export { octetInputParser } from './unstable-core-do-not-import/http/contentTypeParsers.mjs';
|
|
4
|
-
export { resolveResponse } from './unstable-core-do-not-import/http/
|
|
4
|
+
export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
5
5
|
export { toURL } from './unstable-core-do-not-import/http/toURL.mjs';
|
|
6
6
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.d.ts → resolveResponse.d.ts}
RENAMED
|
@@ -12,4 +12,4 @@ interface ResolveHTTPRequestOptions<TRouter extends AnyRouter> extends HTTPBaseH
|
|
|
12
12
|
}
|
|
13
13
|
export declare function resolveResponse<TRouter extends AnyRouter>(opts: ResolveHTTPRequestOptions<TRouter>): Promise<Response>;
|
|
14
14
|
export {};
|
|
15
|
-
//# sourceMappingURL=
|
|
15
|
+
//# sourceMappingURL=resolveResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAMnB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AAUjB,UAAU,yBAAyB,CAAC,OAAO,SAAS,SAAS,CAC3D,SAAQ,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAC3D,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAuHD,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAkOnB"}
|
|
@@ -19,7 +19,7 @@ export * from './unstable-core-do-not-import/http/batchStreamFormatter';
|
|
|
19
19
|
export * from './unstable-core-do-not-import/http/contentType';
|
|
20
20
|
export * from './unstable-core-do-not-import/http/contentTypeParsers';
|
|
21
21
|
export * from './unstable-core-do-not-import/http/getHTTPStatusCode';
|
|
22
|
-
export * from './unstable-core-do-not-import/http/
|
|
22
|
+
export * from './unstable-core-do-not-import/http/resolveResponse';
|
|
23
23
|
export * from './unstable-core-do-not-import/http/toURL';
|
|
24
24
|
export * from './unstable-core-do-not-import/http/types';
|
|
25
25
|
export * from './unstable-core-do-not-import/initTRPC';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,
|
|
1
|
+
{"version":3,"file":"unstable-core-do-not-import.d.ts","sourceRoot":"","sources":["../src/unstable-core-do-not-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yDAAyD,CAAC;AACxE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
|
|
@@ -8,7 +8,7 @@ var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStre
|
|
|
8
8
|
var contentType = require('./unstable-core-do-not-import/http/contentType.js');
|
|
9
9
|
var contentTypeParsers = require('./unstable-core-do-not-import/http/contentTypeParsers.js');
|
|
10
10
|
var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
|
|
11
|
-
var
|
|
11
|
+
var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
|
|
12
12
|
var toURL = require('./unstable-core-do-not-import/http/toURL.js');
|
|
13
13
|
var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
|
|
14
14
|
var middleware = require('./unstable-core-do-not-import/middleware.js');
|
|
@@ -37,7 +37,7 @@ exports.getRequestInfo = contentType.getRequestInfo;
|
|
|
37
37
|
exports.octetInputParser = contentTypeParsers.octetInputParser;
|
|
38
38
|
exports.getHTTPStatusCode = getHTTPStatusCode.getHTTPStatusCode;
|
|
39
39
|
exports.getHTTPStatusCodeFromError = getHTTPStatusCode.getHTTPStatusCodeFromError;
|
|
40
|
-
exports.resolveResponse =
|
|
40
|
+
exports.resolveResponse = resolveResponse.resolveResponse;
|
|
41
41
|
exports.toURL = toURL.toURL;
|
|
42
42
|
exports.initTRPC = initTRPC.initTRPC;
|
|
43
43
|
exports.createInputMiddleware = middleware.createInputMiddleware;
|
|
@@ -6,7 +6,7 @@ export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batc
|
|
|
6
6
|
export { getRequestInfo } from './unstable-core-do-not-import/http/contentType.mjs';
|
|
7
7
|
export { octetInputParser } from './unstable-core-do-not-import/http/contentTypeParsers.mjs';
|
|
8
8
|
export { getHTTPStatusCode, getHTTPStatusCodeFromError } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
|
|
9
|
-
export { resolveResponse } from './unstable-core-do-not-import/http/
|
|
9
|
+
export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
|
|
10
10
|
export { toURL } from './unstable-core-do-not-import/http/toURL.mjs';
|
|
11
11
|
export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
|
|
12
12
|
export { createInputMiddleware, createMiddlewareFactory, createOutputMiddleware, experimental_standaloneMiddleware, middlewareMarker } from './unstable-core-do-not-import/middleware.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.364+d95fb467b",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"funding": [
|
|
150
150
|
"https://trpc.io/sponsor"
|
|
151
151
|
],
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "d95fb467b966558ade5d1e2065faa33c9821ab6c"
|
|
153
153
|
}
|
|
@@ -10,16 +10,18 @@
|
|
|
10
10
|
import type { FastifyReply, FastifyRequest } from 'fastify';
|
|
11
11
|
// @trpc/server
|
|
12
12
|
import type { AnyRouter } from '../../@trpc/server';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// @trpc/server/http
|
|
14
|
+
import {
|
|
15
|
+
resolveResponse,
|
|
16
|
+
type HTTPBaseHandlerOptions,
|
|
17
|
+
type ResolveHTTPRequestOptionsContextFn,
|
|
16
18
|
} from '../../@trpc/server/http';
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// @trpc/server/node-http
|
|
20
|
+
import {
|
|
21
|
+
incomingMessageToRequest,
|
|
22
|
+
type IncomingMessageWithBody,
|
|
23
|
+
type NodeHTTPCreateContextOption,
|
|
21
24
|
} from '../node-http';
|
|
22
|
-
import { incomingMessageToRequest } from '../node-http';
|
|
23
25
|
|
|
24
26
|
export type FastifyHandlerOptions<
|
|
25
27
|
TRouter extends AnyRouter,
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
|
|
12
12
|
// @trpc/server
|
|
13
13
|
import type { AnyRouter } from '../../@trpc/server';
|
|
14
|
+
// @trpc/server/http
|
|
14
15
|
import type { NodeHTTPCreateContextFnOptions } from '../node-http';
|
|
15
|
-
|
|
16
|
-
import { getWSConnectionHandler } from '../ws';
|
|
16
|
+
// @trpc/server/ws
|
|
17
|
+
import { getWSConnectionHandler, type WSSHandlerOptions } from '../ws';
|
|
17
18
|
import type { FastifyHandlerOptions } from './fastifyRequestHandler';
|
|
18
19
|
import { fastifyRequestHandler } from './fastifyRequestHandler';
|
|
19
20
|
|
|
@@ -19,7 +19,7 @@ export * from './unstable-core-do-not-import/http/batchStreamFormatter';
|
|
|
19
19
|
export * from './unstable-core-do-not-import/http/contentType';
|
|
20
20
|
export * from './unstable-core-do-not-import/http/contentTypeParsers';
|
|
21
21
|
export * from './unstable-core-do-not-import/http/getHTTPStatusCode';
|
|
22
|
-
export * from './unstable-core-do-not-import/http/
|
|
22
|
+
export * from './unstable-core-do-not-import/http/resolveResponse';
|
|
23
23
|
export * from './unstable-core-do-not-import/http/toURL';
|
|
24
24
|
export * from './unstable-core-do-not-import/http/types';
|
|
25
25
|
export * from './unstable-core-do-not-import/initTRPC';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolveHTTPResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAEL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAMnB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AAUjB,UAAU,yBAAyB,CAAC,OAAO,SAAS,SAAS,CAC3D,SAAQ,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC;IAChD,aAAa,EAAE,kCAAkC,CAAC,OAAO,CAAC,CAAC;IAC3D,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB;AAuHD,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAkOnB"}
|
/package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.js → resolveResponse.js}
RENAMED
|
File without changes
|
/package/dist/unstable-core-do-not-import/http/{resolveHTTPResponse.mjs → resolveResponse.mjs}
RENAMED
|
File without changes
|
|
File without changes
|