@trpc/server 11.0.0-rc.359 → 11.0.0-rc.362
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/@trpc/server/http.d.ts +7 -6
- package/dist/@trpc/server/http.d.ts.map +1 -1
- package/dist/@trpc/server/index.d.ts +1 -1
- package/dist/@trpc/server/index.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/getPlanner.d.ts +13 -0
- package/dist/adapters/aws-lambda/getPlanner.d.ts.map +1 -0
- package/dist/adapters/aws-lambda/getPlanner.js +143 -0
- package/dist/adapters/aws-lambda/getPlanner.mjs +141 -0
- package/dist/adapters/aws-lambda/index.d.ts +12 -9
- package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/index.js +6 -65
- package/dist/adapters/aws-lambda/index.mjs +8 -61
- package/dist/adapters/express.d.ts.map +1 -1
- package/dist/adapters/express.js +1 -1
- package/dist/adapters/express.mjs +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +10 -1
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +12 -55
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +13 -56
- 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 -5
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +28 -71
- package/dist/adapters/fetch/fetchRequestHandler.mjs +29 -72
- package/dist/adapters/fetch/types.d.ts +9 -12
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +2 -7
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +1 -1
- package/dist/adapters/next.d.ts.map +1 -1
- package/dist/adapters/next.js +1 -2
- package/dist/adapters/next.mjs +1 -2
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts +18 -0
- package/dist/adapters/node-http/incomingMessageToRequest.d.ts.map +1 -0
- package/dist/adapters/node-http/incomingMessageToRequest.js +71 -0
- package/dist/adapters/node-http/incomingMessageToRequest.mjs +69 -0
- package/dist/adapters/node-http/index.d.ts +1 -0
- package/dist/adapters/node-http/index.d.ts.map +1 -1
- package/dist/adapters/node-http/index.js +2 -0
- package/dist/adapters/node-http/index.mjs +1 -0
- 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/nodeHTTPRequestHandler.js +27 -72
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +28 -73
- package/dist/adapters/node-http/types.d.ts +2 -14
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/adapters/standalone.d.ts.map +1 -1
- package/dist/adapters/standalone.js +0 -1
- package/dist/adapters/standalone.mjs +0 -1
- package/dist/adapters/ws.d.ts +2 -12
- package/dist/adapters/ws.d.ts.map +1 -1
- package/dist/adapters/ws.js +1 -1
- package/dist/adapters/ws.mjs +1 -1
- package/dist/bundle-analysis.json +173 -259
- package/dist/http.js +4 -4
- package/dist/http.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +8 -28
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +164 -38
- package/dist/unstable-core-do-not-import/http/contentType.mjs +164 -38
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts +14 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.d.ts.map +1 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.js +14 -0
- package/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +12 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts +1 -1
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.d.ts +7 -43
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.js +115 -124
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs +116 -125
- package/dist/unstable-core-do-not-import/http/types.d.ts +25 -29
- package/dist/unstable-core-do-not-import/http/types.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +1 -3
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +0 -2
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +1 -2
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +12 -0
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.d.ts +3 -0
- package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.js +2 -0
- package/dist/unstable-core-do-not-import/utils.mjs +2 -1
- package/dist/unstable-core-do-not-import.d.ts +9 -3
- package/dist/unstable-core-do-not-import.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import.js +11 -9
- package/dist/unstable-core-do-not-import.mjs +7 -6
- package/package.json +3 -14
- package/src/@trpc/server/http.ts +7 -13
- package/src/@trpc/server/index.ts +1 -0
- package/src/adapters/aws-lambda/getPlanner.ts +191 -0
- package/src/adapters/aws-lambda/index.ts +43 -92
- package/src/adapters/express.ts +1 -6
- package/src/adapters/fastify/fastifyRequestHandler.ts +22 -77
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +1 -1
- package/src/adapters/fetch/fetchRequestHandler.ts +34 -98
- package/src/adapters/fetch/types.ts +24 -15
- package/src/adapters/next-app-dir/nextAppDirCaller.ts +2 -9
- package/src/adapters/next.ts +1 -6
- package/src/adapters/node-http/incomingMessageToRequest.ts +94 -0
- package/src/adapters/node-http/index.ts +1 -0
- package/src/adapters/node-http/nodeHTTPRequestHandler.ts +31 -110
- package/src/adapters/node-http/types.ts +9 -19
- package/src/adapters/standalone.ts +1 -2
- package/src/adapters/ws.ts +9 -14
- package/src/unstable-core-do-not-import/http/contentType.ts +199 -82
- package/src/unstable-core-do-not-import/http/contentTypeParsers.ts +29 -0
- package/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts +2 -2
- package/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts +133 -205
- package/src/unstable-core-do-not-import/http/types.ts +25 -32
- package/src/unstable-core-do-not-import/procedureBuilder.ts +2 -4
- package/src/unstable-core-do-not-import/rootConfig.ts +21 -0
- package/src/unstable-core-do-not-import/utils.ts +4 -0
- package/src/unstable-core-do-not-import.ts +9 -3
- package/adapters/node-http/content-type/form-data/index.d.ts +0 -1
- package/adapters/node-http/content-type/form-data/index.js +0 -1
- package/adapters/node-http/content-type/json/index.d.ts +0 -1
- package/adapters/node-http/content-type/json/index.js +0 -1
- package/dist/adapters/aws-lambda/utils.d.ts +0 -40
- package/dist/adapters/aws-lambda/utils.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/utils.js +0 -100
- package/dist/adapters/aws-lambda/utils.mjs +0 -93
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts +0 -73
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.js +0 -161
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.mjs +0 -157
- package/dist/adapters/node-http/content-type/form-data/index.d.ts +0 -26
- package/dist/adapters/node-http/content-type/form-data/index.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/form-data/index.js +0 -135
- package/dist/adapters/node-http/content-type/form-data/index.mjs +0 -108
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts +0 -31
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.js +0 -29
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.mjs +0 -27
- package/dist/adapters/node-http/content-type/form-data/streamSlice.d.ts +0 -16
- package/dist/adapters/node-http/content-type/form-data/streamSlice.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/form-data/streamSlice.js +0 -46
- package/dist/adapters/node-http/content-type/form-data/streamSlice.mjs +0 -44
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts +0 -45
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.js +0 -30
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.mjs +0 -26
- package/dist/adapters/node-http/content-type/json/getPostBody.d.ts +0 -7
- package/dist/adapters/node-http/content-type/json/getPostBody.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/json/getPostBody.js +0 -53
- package/dist/adapters/node-http/content-type/json/getPostBody.mjs +0 -51
- package/dist/adapters/node-http/content-type/json/index.d.ts +0 -2
- package/dist/adapters/node-http/content-type/json/index.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/json/index.js +0 -16
- package/dist/adapters/node-http/content-type/json/index.mjs +0 -14
- package/dist/adapters/node-http/internals/contentType.d.ts +0 -9
- package/dist/adapters/node-http/internals/contentType.d.ts.map +0 -1
- package/dist/adapters/node-http/internals/contentType.js +0 -8
- package/dist/adapters/node-http/internals/contentType.mjs +0 -6
- package/dist/unstable-core-do-not-import/http/index.d.ts +0 -12
- package/dist/unstable-core-do-not-import/http/index.d.ts.map +0 -1
- package/src/adapters/aws-lambda/utils.ts +0 -164
- package/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts +0 -277
- package/src/adapters/node-http/content-type/form-data/index.ts +0 -163
- package/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts +0 -56
- package/src/adapters/node-http/content-type/form-data/streamSlice.ts +0 -56
- package/src/adapters/node-http/content-type/form-data/uploadHandler.ts +0 -89
- package/src/adapters/node-http/content-type/json/getPostBody.ts +0 -58
- package/src/adapters/node-http/content-type/json/index.ts +0 -11
- package/src/adapters/node-http/internals/contentType.ts +0 -31
- package/src/unstable-core-do-not-import/http/index.ts +0 -29
|
@@ -2,36 +2,54 @@ import { getErrorShape } from '../error/getErrorShape.mjs';
|
|
|
2
2
|
import { TRPCError, getTRPCErrorFromUnknown } from '../error/TRPCError.mjs';
|
|
3
3
|
import { callProcedure } from '../router.mjs';
|
|
4
4
|
import { transformTRPCResponse } from '../transformer.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { getBatchStreamFormatter } from './batchStreamFormatter.mjs';
|
|
6
|
+
import { getRequestInfo } from './contentType.mjs';
|
|
6
7
|
import { getHTTPStatusCode } from './getHTTPStatusCode.mjs';
|
|
7
8
|
|
|
8
9
|
const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
|
|
9
10
|
GET: 'query',
|
|
10
11
|
POST: 'mutation'
|
|
11
12
|
};
|
|
12
|
-
const fallbackContentTypeHandler = {
|
|
13
|
-
getInputs: getJsonContentTypeInputs
|
|
14
|
-
};
|
|
15
13
|
function initResponse(initOpts) {
|
|
16
|
-
const { ctx ,
|
|
14
|
+
const { ctx , info , type , responseMeta , untransformedJSON , errors =[] , } = initOpts;
|
|
17
15
|
let status = untransformedJSON ? getHTTPStatusCode(untransformedJSON) : 200;
|
|
18
|
-
const headers =
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const headers = new Headers([
|
|
17
|
+
[
|
|
18
|
+
'Content-Type',
|
|
19
|
+
'application/json'
|
|
20
|
+
]
|
|
21
|
+
]);
|
|
21
22
|
const eagerGeneration = !untransformedJSON;
|
|
22
23
|
const data = eagerGeneration ? [] : Array.isArray(untransformedJSON) ? untransformedJSON : [
|
|
23
24
|
untransformedJSON
|
|
24
25
|
];
|
|
25
26
|
const meta = responseMeta?.({
|
|
26
27
|
ctx,
|
|
27
|
-
|
|
28
|
+
info,
|
|
29
|
+
paths: info?.calls.map((call)=>call.path),
|
|
28
30
|
type,
|
|
29
31
|
data,
|
|
30
32
|
errors,
|
|
31
33
|
eagerGeneration
|
|
32
34
|
}) ?? {};
|
|
33
|
-
|
|
34
|
-
headers
|
|
35
|
+
if (meta.headers) {
|
|
36
|
+
if (meta.headers instanceof Headers) {
|
|
37
|
+
for (const [key, value] of meta.headers.entries()){
|
|
38
|
+
headers.append(key, value);
|
|
39
|
+
}
|
|
40
|
+
} else {
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated, delete in v12
|
|
43
|
+
*/ for (const [key1, value1] of Object.entries(meta.headers)){
|
|
44
|
+
if (Array.isArray(value1)) {
|
|
45
|
+
for (const v of value1){
|
|
46
|
+
headers.append(key1, v);
|
|
47
|
+
}
|
|
48
|
+
} else if (typeof value1 === 'string') {
|
|
49
|
+
headers.set(key1, value1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
35
53
|
}
|
|
36
54
|
if (meta.status) {
|
|
37
55
|
status = meta.status;
|
|
@@ -70,79 +88,54 @@ function caughtErrorToData(cause, errorOpts) {
|
|
|
70
88
|
body
|
|
71
89
|
};
|
|
72
90
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const
|
|
91
|
+
async function resolveResponse(opts) {
|
|
92
|
+
const { router , req } = opts;
|
|
93
|
+
const url = new URL(req.url);
|
|
76
94
|
if (req.method === 'HEAD') {
|
|
77
95
|
// can be used for lambda warmup
|
|
78
|
-
|
|
96
|
+
return new Response(null, {
|
|
79
97
|
status: 204
|
|
80
|
-
};
|
|
81
|
-
unstable_onHead?.(headResponse, false);
|
|
82
|
-
unstable_onChunk?.([
|
|
83
|
-
-1,
|
|
84
|
-
''
|
|
85
|
-
]);
|
|
86
|
-
return headResponse;
|
|
98
|
+
});
|
|
87
99
|
}
|
|
88
|
-
const contentTypeHandler = opts.contentTypeHandler ?? fallbackContentTypeHandler;
|
|
89
100
|
const allowBatching = opts.allowBatching ?? opts.batching?.enabled ?? true;
|
|
90
|
-
const allowMethodOverride = opts.allowMethodOverride ?? false;
|
|
101
|
+
const allowMethodOverride = (opts.allowMethodOverride ?? false) && req.method === 'POST';
|
|
91
102
|
const type = HTTP_METHOD_PROCEDURE_TYPE_MAP[req.method] ?? 'unknown';
|
|
92
103
|
let ctx = undefined;
|
|
93
|
-
let
|
|
94
|
-
const
|
|
95
|
-
const isStreamCall = isBatchCall && unstable_onHead && unstable_onChunk && req.headers['trpc-batch-mode'] === 'stream';
|
|
104
|
+
let info = undefined;
|
|
105
|
+
const isStreamCall = req.headers.get('trpc-batch-mode') === 'stream';
|
|
96
106
|
try {
|
|
107
|
+
info = getRequestInfo({
|
|
108
|
+
req,
|
|
109
|
+
path: decodeURIComponent(opts.path),
|
|
110
|
+
config: router._def._config,
|
|
111
|
+
searchParams: url.searchParams
|
|
112
|
+
});
|
|
113
|
+
// we create context early so that error handlers may access context information
|
|
114
|
+
ctx = await opts.createContext({
|
|
115
|
+
info
|
|
116
|
+
});
|
|
97
117
|
if (opts.error) {
|
|
98
118
|
throw opts.error;
|
|
99
119
|
}
|
|
100
|
-
if (isBatchCall && !allowBatching) {
|
|
120
|
+
if (info.isBatchCall && !allowBatching) {
|
|
101
121
|
throw new TRPCError({
|
|
102
122
|
code: 'BAD_REQUEST',
|
|
103
123
|
message: `Batching is not enabled on the server`
|
|
104
124
|
});
|
|
105
125
|
}
|
|
106
|
-
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
107
|
-
throw new TRPCError({
|
|
108
|
-
message: 'Subscriptions should use wsLink',
|
|
109
|
-
code: 'METHOD_NOT_SUPPORTED'
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
126
|
if (type === 'unknown') {
|
|
113
127
|
throw new TRPCError({
|
|
114
128
|
message: `Unexpected request method ${req.method}`,
|
|
115
129
|
code: 'METHOD_NOT_SUPPORTED'
|
|
116
130
|
});
|
|
117
131
|
}
|
|
118
|
-
const inputs = await contentTypeHandler.getInputs({
|
|
119
|
-
isBatchCall,
|
|
120
|
-
req,
|
|
121
|
-
router,
|
|
122
|
-
preprocessedBody: opts.preprocessedBody ?? false
|
|
123
|
-
});
|
|
124
|
-
paths = isBatchCall ? decodeURIComponent(opts.path).split(',') : [
|
|
125
|
-
opts.path
|
|
126
|
-
];
|
|
127
|
-
const info = {
|
|
128
|
-
isBatchCall,
|
|
129
|
-
calls: paths.map((path, idx)=>({
|
|
130
|
-
path,
|
|
131
|
-
type,
|
|
132
|
-
input: inputs[idx] ?? undefined
|
|
133
|
-
}))
|
|
134
|
-
};
|
|
135
|
-
ctx = await opts.createContext({
|
|
136
|
-
info
|
|
137
|
-
});
|
|
138
132
|
const errors = [];
|
|
139
|
-
const promises =
|
|
140
|
-
const input = inputs[index];
|
|
133
|
+
const promises = info.calls.map(async (call)=>{
|
|
141
134
|
try {
|
|
142
135
|
const data = await callProcedure({
|
|
143
136
|
procedures: opts.router._def.procedures,
|
|
144
|
-
path,
|
|
145
|
-
getRawInput:
|
|
137
|
+
path: call.path,
|
|
138
|
+
getRawInput: call.getRawInput,
|
|
146
139
|
ctx,
|
|
147
140
|
type,
|
|
148
141
|
allowMethodOverride
|
|
@@ -155,9 +148,10 @@ async function resolveHTTPResponse(opts) {
|
|
|
155
148
|
} catch (cause) {
|
|
156
149
|
const error = getTRPCErrorFromUnknown(cause);
|
|
157
150
|
errors.push(error);
|
|
151
|
+
const input = call.result();
|
|
158
152
|
opts.onError?.({
|
|
159
153
|
error,
|
|
160
|
-
path,
|
|
154
|
+
path: call.path,
|
|
161
155
|
input,
|
|
162
156
|
ctx,
|
|
163
157
|
type: type,
|
|
@@ -168,7 +162,7 @@ async function resolveHTTPResponse(opts) {
|
|
|
168
162
|
config: opts.router._def._config,
|
|
169
163
|
error,
|
|
170
164
|
type,
|
|
171
|
-
path,
|
|
165
|
+
path: call.path,
|
|
172
166
|
input,
|
|
173
167
|
ctx
|
|
174
168
|
})
|
|
@@ -182,76 +176,79 @@ async function resolveHTTPResponse(opts) {
|
|
|
182
176
|
* - create headers with known response body
|
|
183
177
|
* - return a complete HTTPResponse
|
|
184
178
|
*/ const untransformedJSON = await Promise.all(promises);
|
|
185
|
-
const
|
|
179
|
+
const errors1 = untransformedJSON.flatMap((response)=>'error' in response ? [
|
|
180
|
+
response.error
|
|
181
|
+
] : []);
|
|
182
|
+
const headResponse = initResponse({
|
|
186
183
|
ctx,
|
|
187
|
-
|
|
184
|
+
info,
|
|
188
185
|
type,
|
|
189
186
|
responseMeta: opts.responseMeta,
|
|
190
187
|
untransformedJSON,
|
|
191
|
-
errors
|
|
188
|
+
errors: errors1
|
|
192
189
|
});
|
|
193
|
-
unstable_onHead?.(headResponse1, false);
|
|
194
190
|
// return body stuff
|
|
195
|
-
const result = isBatchCall ? untransformedJSON : untransformedJSON[0];
|
|
191
|
+
const result = info.isBatchCall ? untransformedJSON : untransformedJSON[0];
|
|
196
192
|
const transformedJSON = transformTRPCResponse(router._def._config, result);
|
|
197
193
|
const body = JSON.stringify(transformedJSON);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return {
|
|
203
|
-
status: headResponse1.status,
|
|
204
|
-
headers: headResponse1.headers,
|
|
205
|
-
body
|
|
206
|
-
};
|
|
194
|
+
return new Response(body, {
|
|
195
|
+
status: headResponse.status,
|
|
196
|
+
headers: headResponse.headers
|
|
197
|
+
});
|
|
207
198
|
}
|
|
208
199
|
/**
|
|
209
200
|
* Streaming response:
|
|
210
201
|
* - block on none, call `onChunk` as soon as each response is ready
|
|
211
202
|
* - create headers with minimal data (cannot know the response body in advance)
|
|
212
203
|
* - return void
|
|
213
|
-
*/ const
|
|
204
|
+
*/ const headResponse1 = initResponse({
|
|
214
205
|
ctx,
|
|
215
|
-
|
|
206
|
+
info,
|
|
216
207
|
type,
|
|
217
|
-
responseMeta: opts.responseMeta
|
|
208
|
+
responseMeta: opts.responseMeta,
|
|
209
|
+
errors: []
|
|
218
210
|
});
|
|
219
|
-
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
r
|
|
225
|
-
])
|
|
226
|
-
]));
|
|
227
|
-
for (const _ of paths){
|
|
228
|
-
const [index, untransformedJSON1] = await Promise.race(indexedPromises.values());
|
|
229
|
-
indexedPromises.delete(index);
|
|
230
|
-
try {
|
|
231
|
-
const transformedJSON1 = transformTRPCResponse(router._def._config, untransformedJSON1);
|
|
232
|
-
const body1 = JSON.stringify(transformedJSON1);
|
|
233
|
-
unstable_onChunk([
|
|
211
|
+
const encoder = new TextEncoderStream();
|
|
212
|
+
const stream = encoder.readable;
|
|
213
|
+
const controller = encoder.writable.getWriter();
|
|
214
|
+
async function exec() {
|
|
215
|
+
const indexedPromises = new Map(promises.map((promise, index)=>[
|
|
234
216
|
index,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
217
|
+
promise.then((r)=>[
|
|
218
|
+
index,
|
|
219
|
+
r
|
|
220
|
+
])
|
|
221
|
+
]));
|
|
222
|
+
const formatter = getBatchStreamFormatter();
|
|
223
|
+
while(indexedPromises.size > 0){
|
|
224
|
+
const [index, untransformedJSON] = await Promise.race(indexedPromises.values());
|
|
225
|
+
indexedPromises.delete(index);
|
|
226
|
+
try {
|
|
227
|
+
const transformedJSON = transformTRPCResponse(router._def._config, untransformedJSON);
|
|
228
|
+
const body = JSON.stringify(transformedJSON);
|
|
229
|
+
await controller.write(formatter(index, body));
|
|
230
|
+
} catch (cause) {
|
|
231
|
+
const call = info.calls[index];
|
|
232
|
+
const input = call.result();
|
|
233
|
+
const { body: body1 } = caughtErrorToData(cause, {
|
|
234
|
+
opts,
|
|
235
|
+
ctx,
|
|
236
|
+
type,
|
|
237
|
+
path: call.path,
|
|
238
|
+
input
|
|
239
|
+
});
|
|
240
|
+
await controller.write(formatter(index, body1));
|
|
241
|
+
}
|
|
251
242
|
}
|
|
243
|
+
await controller.write(formatter.end());
|
|
244
|
+
await controller.close();
|
|
252
245
|
}
|
|
253
|
-
|
|
254
|
-
|
|
246
|
+
exec().catch((err)=>controller.abort(err));
|
|
247
|
+
return new Response(stream, {
|
|
248
|
+
headers: headResponse1.headers,
|
|
249
|
+
status: headResponse1.status
|
|
250
|
+
});
|
|
251
|
+
} catch (cause) {
|
|
255
252
|
// we get here if
|
|
256
253
|
// - batching is called when it's not enabled
|
|
257
254
|
// - `createContext()` throws
|
|
@@ -259,32 +256,26 @@ async function resolveHTTPResponse(opts) {
|
|
|
259
256
|
// - post body is too large
|
|
260
257
|
// - input deserialization fails
|
|
261
258
|
// - `errorFormatter` return value is malformed
|
|
262
|
-
const { error , untransformedJSON:
|
|
259
|
+
const { error , untransformedJSON: untransformedJSON1 , body: body1 } = caughtErrorToData(cause, {
|
|
263
260
|
opts,
|
|
264
261
|
ctx,
|
|
265
262
|
type
|
|
266
263
|
});
|
|
267
|
-
const
|
|
264
|
+
const headResponse2 = initResponse({
|
|
268
265
|
ctx,
|
|
269
|
-
|
|
266
|
+
info,
|
|
270
267
|
type,
|
|
271
268
|
responseMeta: opts.responseMeta,
|
|
272
|
-
untransformedJSON:
|
|
269
|
+
untransformedJSON: untransformedJSON1,
|
|
273
270
|
errors: [
|
|
274
271
|
error
|
|
275
272
|
]
|
|
276
273
|
});
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
]);
|
|
282
|
-
return {
|
|
283
|
-
status: headResponse3.status,
|
|
284
|
-
headers: headResponse3.headers,
|
|
285
|
-
body: body3
|
|
286
|
-
};
|
|
274
|
+
return new Response(body1, {
|
|
275
|
+
status: headResponse2.status,
|
|
276
|
+
headers: headResponse2.headers
|
|
277
|
+
});
|
|
287
278
|
}
|
|
288
279
|
}
|
|
289
280
|
|
|
290
|
-
export {
|
|
281
|
+
export { resolveResponse };
|
|
@@ -3,16 +3,13 @@ import type { ErrorHandlerOptions, ProcedureType } from '../procedure';
|
|
|
3
3
|
import type { AnyRouter, inferRouterContext, inferRouterError } from '../router';
|
|
4
4
|
import type { TRPCResponse } from '../rpc';
|
|
5
5
|
import type { Dict } from '../types';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
body?: string;
|
|
11
|
-
}
|
|
12
|
-
export type ResponseChunk = [procedureIndex: number, responseBody: string];
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use `Headers` instead, this will be removed in v12
|
|
8
|
+
*/
|
|
9
|
+
type HTTPHeaders = Dict<string[] | string>;
|
|
13
10
|
export interface ResponseMeta {
|
|
14
11
|
status?: number;
|
|
15
|
-
headers?: HTTPHeaders;
|
|
12
|
+
headers?: Headers | HTTPHeaders;
|
|
16
13
|
}
|
|
17
14
|
/**
|
|
18
15
|
* @internal
|
|
@@ -22,23 +19,17 @@ export type ResponseMetaFn<TRouter extends AnyRouter> = (opts: {
|
|
|
22
19
|
ctx?: inferRouterContext<TRouter>;
|
|
23
20
|
/**
|
|
24
21
|
* The different tRPC paths requested
|
|
22
|
+
* @deprecated use `info` instead, this will be removed in v12
|
|
25
23
|
**/
|
|
26
|
-
paths
|
|
24
|
+
paths: string[] | undefined;
|
|
25
|
+
info: TRPCRequestInfo | undefined;
|
|
27
26
|
type: ProcedureType | 'unknown';
|
|
28
27
|
errors: TRPCError[];
|
|
29
28
|
/**
|
|
30
|
-
* `true` if the `ResponseMeta`
|
|
31
|
-
* generated without knowing the response data
|
|
32
|
-
* (e.g. for streaming requests).
|
|
29
|
+
* `true` if the `ResponseMeta` is being generated without knowing the response data (e.g. for streamed requests).
|
|
33
30
|
*/
|
|
34
|
-
eagerGeneration
|
|
31
|
+
eagerGeneration: boolean;
|
|
35
32
|
}) => ResponseMeta;
|
|
36
|
-
export interface HTTPRequest {
|
|
37
|
-
method: string;
|
|
38
|
-
query: URLSearchParams;
|
|
39
|
-
headers: HTTPHeaders;
|
|
40
|
-
body: unknown;
|
|
41
|
-
}
|
|
42
33
|
/**
|
|
43
34
|
* Base interface for anything using HTTP
|
|
44
35
|
*/
|
|
@@ -50,22 +41,27 @@ export interface HTTPBaseHandlerOptions<TRouter extends AnyRouter, TRequest> ext
|
|
|
50
41
|
*/
|
|
51
42
|
responseMeta?: ResponseMetaFn<TRouter>;
|
|
52
43
|
}
|
|
53
|
-
|
|
54
|
-
export type ProcedureCall = {
|
|
55
|
-
type: ProcedureType;
|
|
56
|
-
input?: unknown;
|
|
44
|
+
interface TRPCRequestInfoProcedureCall {
|
|
57
45
|
path: string;
|
|
58
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Read the raw input (deduped and memoized)
|
|
48
|
+
*/
|
|
49
|
+
getRawInput: () => Promise<unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* Get already parsed inputs - won't trigger reading the body or parsing the inputs
|
|
52
|
+
*/
|
|
53
|
+
result: () => unknown;
|
|
54
|
+
}
|
|
59
55
|
/**
|
|
60
56
|
* Information about the incoming request
|
|
61
|
-
* @
|
|
57
|
+
* @public
|
|
62
58
|
*/
|
|
63
|
-
export
|
|
59
|
+
export interface TRPCRequestInfo {
|
|
64
60
|
isBatchCall: boolean;
|
|
65
|
-
calls:
|
|
66
|
-
}
|
|
61
|
+
calls: TRPCRequestInfoProcedureCall[];
|
|
62
|
+
}
|
|
67
63
|
/**
|
|
68
|
-
* Inner createContext function for `
|
|
64
|
+
* Inner createContext function for `resolveResponse` used to forward `TRPCRequestInfo` to `createContext`
|
|
69
65
|
* @internal
|
|
70
66
|
*/
|
|
71
67
|
export type ResolveHTTPRequestOptionsContextFn<TRouter extends AnyRouter> = (opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAErC;;GAEG;AACH,KAAK,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC;AAE3C,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,SAAS,IAAI,CAAC,IAAI,EAAE;IAC7D,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;IACzD,GAAG,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAA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AAEV;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAAC,OAAO,SAAS,SAAS,EAAE,QAAQ;IACrE,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -47,7 +47,7 @@ declare class TRPCBuilder<TContext extends object, TMeta extends object> {
|
|
|
47
47
|
* Builder object for creating procedures
|
|
48
48
|
* @link https://trpc.io/docs/v11/server/procedures
|
|
49
49
|
*/
|
|
50
|
-
procedure: import("./procedureBuilder").ProcedureBuilder<TContext, TMeta, object, typeof import("./
|
|
50
|
+
procedure: import("./procedureBuilder").ProcedureBuilder<TContext, TMeta, object, typeof import("./utils").unsetMarker, typeof import("./utils").unsetMarker, typeof import("./utils").unsetMarker, typeof import("./utils").unsetMarker, false>;
|
|
51
51
|
/**
|
|
52
52
|
* Create reusable middlewares
|
|
53
53
|
* @link https://trpc.io/docs/v11/server/middlewares
|
|
@@ -3,10 +3,8 @@ import type { AnyMiddlewareFunction, MiddlewareBuilder, MiddlewareFunction } fro
|
|
|
3
3
|
import type { inferParser, Parser } from './parser';
|
|
4
4
|
import type { AnyProcedure, MutationProcedure, ProcedureType, QueryProcedure, SubscriptionProcedure } from './procedure';
|
|
5
5
|
import type { GetRawInputFn, MaybePromise, Overwrite, Simplify, TypeError } from './types';
|
|
6
|
+
import type { UnsetMarker } from './utils';
|
|
6
7
|
type IntersectIfDefined<TType, TWith> = TType extends UnsetMarker ? TWith : TWith extends UnsetMarker ? TType : Simplify<TType & TWith>;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const unsetMarker: unique symbol;
|
|
9
|
-
type UnsetMarker = typeof unsetMarker;
|
|
10
8
|
type DefaultValue<TValue, TFallback> = TValue extends UnsetMarker ? TFallback : TValue;
|
|
11
9
|
export type CallerOverride<TContext> = (opts: {
|
|
12
10
|
args: unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedureBuilder.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/procedureBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAEV,YAAY,EAGZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACV,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"procedureBuilder.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/procedureBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAEV,YAAY,EAGZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACV,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,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;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CAClC;AAED,KAAK,wBAAwB,GAAG,CAC9B,IAAI,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAC/C,OAAO,CAAC,OAAO,CAAC,CAAC;AAiBtB,wBAAgB,aAAa,CAAC,QAAQ,EAAE,KAAK,EAC3C,OAAO,GAAE,OAAO,CAAC,sBAAsB,CAAM,GAC5C,gBAAgB,CACjB,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,CACN,CAqEA;AA6CD;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,QAAQ;IAC5C,GAAG,EAAE,QAAQ,CAAC;IACd,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;CACrB"}
|
|
@@ -5,7 +5,6 @@ var middleware = require('./middleware.js');
|
|
|
5
5
|
var parser = require('./parser.js');
|
|
6
6
|
var utils = require('./utils.js');
|
|
7
7
|
|
|
8
|
-
/** @internal */ const unsetMarker = Symbol('unsetMarker');
|
|
9
8
|
function createNewBuilder(def1, def2) {
|
|
10
9
|
const { middlewares =[] , inputs , meta , ...rest } = def2;
|
|
11
10
|
// TODO: maybe have a fn here to warn about calls
|
|
@@ -201,4 +200,3 @@ function createProcedureCaller(_def) {
|
|
|
201
200
|
}
|
|
202
201
|
|
|
203
202
|
exports.createBuilder = createBuilder;
|
|
204
|
-
exports.unsetMarker = unsetMarker;
|
|
@@ -3,7 +3,6 @@ import { createInputMiddleware, createOutputMiddleware, middlewareMarker } from
|
|
|
3
3
|
import { getParseFn } from './parser.mjs';
|
|
4
4
|
import { mergeWithoutOverrides } from './utils.mjs';
|
|
5
5
|
|
|
6
|
-
/** @internal */ const unsetMarker = Symbol('unsetMarker');
|
|
7
6
|
function createNewBuilder(def1, def2) {
|
|
8
7
|
const { middlewares =[] , inputs , meta , ...rest } = def2;
|
|
9
8
|
// TODO: maybe have a fn here to warn about calls
|
|
@@ -198,4 +197,4 @@ function createProcedureCaller(_def) {
|
|
|
198
197
|
return procedure;
|
|
199
198
|
}
|
|
200
199
|
|
|
201
|
-
export { createBuilder
|
|
200
|
+
export { createBuilder };
|
|
@@ -64,4 +64,16 @@ export type AnyRootTypes = CreateRootTypes<{
|
|
|
64
64
|
errorShape: any;
|
|
65
65
|
transformer: any;
|
|
66
66
|
}>;
|
|
67
|
+
type PartialIf<TCondition extends boolean, TType> = TCondition extends true ? Partial<TType> : TType;
|
|
68
|
+
/**
|
|
69
|
+
* Adds a `createContext` option with a given callback function
|
|
70
|
+
* If context is the default value, then the `createContext` option is optional
|
|
71
|
+
*/
|
|
72
|
+
export type CreateContextCallback<TContext, TFunction extends (...args: any[]) => any> = PartialIf<object extends TContext ? true : false, {
|
|
73
|
+
/**
|
|
74
|
+
* @link https://trpc.io/docs/v11/context
|
|
75
|
+
**/
|
|
76
|
+
createContext: TFunction;
|
|
77
|
+
}>;
|
|
78
|
+
export {};
|
|
67
79
|
//# sourceMappingURL=rootConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootConfig.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/rootConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OA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,IAAI,KAAK,CAEnD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChE,GAAG,EAAE,IAAI,GACR,IAAI,CAEN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
/** @internal */ const unsetMarker = Symbol('unsetMarker');
|
|
3
4
|
/**
|
|
4
5
|
* Ensures there are no duplicate keys when building a procedure.
|
|
5
6
|
* @internal
|
|
@@ -35,3 +36,4 @@ exports.isFunction = isFunction;
|
|
|
35
36
|
exports.isObject = isObject;
|
|
36
37
|
exports.mergeWithoutOverrides = mergeWithoutOverrides;
|
|
37
38
|
exports.omitPrototype = omitPrototype;
|
|
39
|
+
exports.unsetMarker = unsetMarker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @internal */ const unsetMarker = Symbol('unsetMarker');
|
|
1
2
|
/**
|
|
2
3
|
* Ensures there are no duplicate keys when building a procedure.
|
|
3
4
|
* @internal
|
|
@@ -29,4 +30,4 @@ function isFunction(fn) {
|
|
|
29
30
|
return Object.assign(Object.create(null), obj);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
export { isFunction, isObject, mergeWithoutOverrides, omitPrototype };
|
|
33
|
+
export { isFunction, isObject, mergeWithoutOverrides, omitPrototype, unsetMarker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* **DO NOT IMPORT FROM
|
|
2
|
+
* **DO NOT IMPORT FROM THIS FILE**
|
|
3
3
|
*
|
|
4
4
|
* This file is here to:
|
|
5
5
|
* - make TypeScript happy and prevent _"The inferred type of 'createContext' cannot be named without a reference to [...]"_.
|
|
@@ -12,10 +12,16 @@ export * from './unstable-core-do-not-import/clientish/inference';
|
|
|
12
12
|
export * from './unstable-core-do-not-import/clientish/inferrable';
|
|
13
13
|
export * from './unstable-core-do-not-import/clientish/serialize';
|
|
14
14
|
export * from './unstable-core-do-not-import/createProxy';
|
|
15
|
+
export * from './unstable-core-do-not-import/error/TRPCError';
|
|
15
16
|
export * from './unstable-core-do-not-import/error/formatter';
|
|
16
17
|
export * from './unstable-core-do-not-import/error/getErrorShape';
|
|
17
|
-
export * from './unstable-core-do-not-import/
|
|
18
|
-
export * from './unstable-core-do-not-import/http';
|
|
18
|
+
export * from './unstable-core-do-not-import/http/batchStreamFormatter';
|
|
19
|
+
export * from './unstable-core-do-not-import/http/contentType';
|
|
20
|
+
export * from './unstable-core-do-not-import/http/contentTypeParsers';
|
|
21
|
+
export * from './unstable-core-do-not-import/http/getHTTPStatusCode';
|
|
22
|
+
export * from './unstable-core-do-not-import/http/resolveHTTPResponse';
|
|
23
|
+
export * from './unstable-core-do-not-import/http/toURL';
|
|
24
|
+
export * from './unstable-core-do-not-import/http/types';
|
|
19
25
|
export * from './unstable-core-do-not-import/initTRPC';
|
|
20
26
|
export * from './unstable-core-do-not-import/middleware';
|
|
21
27
|
export * from './unstable-core-do-not-import/parser';
|
|
@@ -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,mDAAmD,CAAC;AAClE,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,wDAAwD,CAAC;AACvE,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"}
|