@trpc/server 11.0.0-rc.361 → 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 -5
- package/dist/@trpc/server/http.d.ts.map +1 -1
- package/dist/@trpc/server/index.d.ts +1 -2
- 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 +7 -76
- package/dist/adapters/aws-lambda/index.mjs +9 -72
- package/dist/adapters/express.js +1 -0
- package/dist/adapters/express.mjs +1 -0
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +19 -2
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyRequestHandler.js +12 -63
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +13 -64
- 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 +2 -2
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fetch/fetchRequestHandler.js +28 -85
- package/dist/adapters/fetch/fetchRequestHandler.mjs +29 -86
- package/dist/adapters/fetch/types.d.ts +2 -2
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/adapters/next.js +1 -1
- package/dist/adapters/next.mjs +1 -1
- 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 -70
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +28 -71
- package/dist/adapters/node-http/types.d.ts +7 -8
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/adapters/ws.js +1 -1
- package/dist/adapters/ws.mjs +1 -1
- package/dist/bundle-analysis.json +180 -277
- package/dist/http.js +4 -2
- package/dist/http.mjs +2 -1
- package/dist/index.js +2 -4
- package/dist/index.mjs +1 -2
- package/dist/unstable-core-do-not-import/http/contentType.d.ts +8 -20
- package/dist/unstable-core-do-not-import/http/contentType.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/contentType.js +180 -0
- package/dist/unstable-core-do-not-import/http/contentType.mjs +178 -0
- 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 +119 -134
- package/dist/unstable-core-do-not-import/http/resolveHTTPResponse.mjs +119 -134
- package/dist/unstable-core-do-not-import/http/types.d.ts +25 -27
- 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 +0 -9
- 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 -7
- package/dist/unstable-core-do-not-import.mjs +7 -5
- package/package.json +3 -13
- package/src/@trpc/server/http.ts +7 -12
- package/src/@trpc/server/index.ts +0 -3
- package/src/adapters/aws-lambda/getPlanner.ts +191 -0
- package/src/adapters/aws-lambda/index.ts +43 -107
- package/src/adapters/express.ts +1 -1
- package/src/adapters/fastify/fastifyRequestHandler.ts +40 -89
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +1 -1
- package/src/adapters/fetch/fetchRequestHandler.ts +35 -111
- package/src/adapters/fetch/types.ts +4 -2
- package/src/adapters/next.ts +1 -1
- 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 -97
- package/src/adapters/node-http/types.ts +27 -37
- package/src/adapters/standalone.ts +1 -1
- package/src/unstable-core-do-not-import/http/contentType.ts +214 -22
- 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 +135 -210
- package/src/unstable-core-do-not-import/http/types.ts +25 -30
- package/src/unstable-core-do-not-import/procedureBuilder.ts +2 -4
- package/src/unstable-core-do-not-import/rootConfig.ts +0 -10
- 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/content-type/json/index.d.ts +0 -10
- package/dist/adapters/aws-lambda/content-type/json/index.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/content-type/json/index.js +0 -62
- package/dist/adapters/aws-lambda/content-type/json/index.mjs +0 -60
- package/dist/adapters/aws-lambda/utils.d.ts +0 -31
- package/dist/adapters/aws-lambda/utils.d.ts.map +0 -1
- package/dist/adapters/aws-lambda/utils.js +0 -111
- package/dist/adapters/aws-lambda/utils.mjs +0 -103
- package/dist/adapters/content-handlers/concurrentCache.d.ts +0 -7
- package/dist/adapters/content-handlers/concurrentCache.d.ts.map +0 -1
- package/dist/adapters/content-handlers/concurrentCache.js +0 -17
- package/dist/adapters/content-handlers/concurrentCache.mjs +0 -15
- package/dist/adapters/content-handlers/selectContentHandlerOrUnsupportedMediaType.d.ts +0 -10
- package/dist/adapters/content-handlers/selectContentHandlerOrUnsupportedMediaType.d.ts.map +0 -1
- package/dist/adapters/content-handlers/selectContentHandlerOrUnsupportedMediaType.js +0 -33
- package/dist/adapters/content-handlers/selectContentHandlerOrUnsupportedMediaType.mjs +0 -31
- package/dist/adapters/fastify/content-type/json/index.d.ts +0 -8
- package/dist/adapters/fastify/content-type/json/index.d.ts.map +0 -1
- package/dist/adapters/fastify/content-type/json/index.js +0 -62
- package/dist/adapters/fastify/content-type/json/index.mjs +0 -60
- package/dist/adapters/fastify/types.d.ts +0 -11
- package/dist/adapters/fastify/types.d.ts.map +0 -1
- package/dist/adapters/fetch/content-type/json/index.d.ts +0 -9
- package/dist/adapters/fetch/content-type/json/index.d.ts.map +0 -1
- package/dist/adapters/fetch/content-type/json/index.js +0 -55
- package/dist/adapters/fetch/content-type/json/index.mjs +0 -53
- package/dist/adapters/node-http/content-type/form-data/index.d.ts +0 -5
- 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 -32
- package/dist/adapters/node-http/content-type/form-data/index.mjs +0 -30
- 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 -45
- package/dist/adapters/node-http/content-type/json/getPostBody.mjs +0 -43
- package/dist/adapters/node-http/content-type/json/index.d.ts +0 -5
- 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 -68
- package/dist/adapters/node-http/content-type/json/index.mjs +0 -66
- package/dist/adapters/node-http/content-type/octet/index.d.ts +0 -5
- package/dist/adapters/node-http/content-type/octet/index.d.ts.map +0 -1
- package/dist/adapters/node-http/content-type/octet/index.js +0 -19
- package/dist/adapters/node-http/content-type/octet/index.mjs +0 -17
- package/dist/adapters/node-http/content-type/types.d.ts +0 -8
- package/dist/adapters/node-http/content-type/types.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/contentTypeParsers.d.ts +0 -16
- package/dist/unstable-core-do-not-import/contentTypeParsers.d.ts.map +0 -1
- package/dist/unstable-core-do-not-import/contentTypeParsers.js +0 -23
- package/dist/unstable-core-do-not-import/contentTypeParsers.mjs +0 -21
- package/dist/unstable-core-do-not-import/http/index.d.ts +0 -11
- package/dist/unstable-core-do-not-import/http/index.d.ts.map +0 -1
- package/src/adapters/aws-lambda/content-type/json/index.ts +0 -108
- package/src/adapters/aws-lambda/utils.ts +0 -170
- package/src/adapters/content-handlers/concurrentCache.ts +0 -16
- package/src/adapters/content-handlers/selectContentHandlerOrUnsupportedMediaType.ts +0 -45
- package/src/adapters/fastify/content-type/json/index.ts +0 -106
- package/src/adapters/fastify/types.ts +0 -22
- package/src/adapters/fetch/content-type/json/index.ts +0 -90
- package/src/adapters/node-http/content-type/form-data/index.ts +0 -37
- package/src/adapters/node-http/content-type/json/getPostBody.ts +0 -49
- package/src/adapters/node-http/content-type/json/index.ts +0 -100
- package/src/adapters/node-http/content-type/octet/index.ts +0 -27
- package/src/adapters/node-http/content-type/types.ts +0 -19
- package/src/unstable-core-do-not-import/contentTypeParsers.ts +0 -37
- package/src/unstable-core-do-not-import/http/index.ts +0 -28
|
@@ -2,6 +2,8 @@ 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 { getBatchStreamFormatter } from './batchStreamFormatter.mjs';
|
|
6
|
+
import { getRequestInfo } from './contentType.mjs';
|
|
5
7
|
import { getHTTPStatusCode } from './getHTTPStatusCode.mjs';
|
|
6
8
|
|
|
7
9
|
const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
|
|
@@ -9,25 +11,45 @@ const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
|
|
|
9
11
|
POST: 'mutation'
|
|
10
12
|
};
|
|
11
13
|
function initResponse(initOpts) {
|
|
12
|
-
const { ctx ,
|
|
14
|
+
const { ctx , info , type , responseMeta , untransformedJSON , errors =[] , } = initOpts;
|
|
13
15
|
let status = untransformedJSON ? getHTTPStatusCode(untransformedJSON) : 200;
|
|
14
|
-
const headers =
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
const headers = new Headers([
|
|
17
|
+
[
|
|
18
|
+
'Content-Type',
|
|
19
|
+
'application/json'
|
|
20
|
+
]
|
|
21
|
+
]);
|
|
17
22
|
const eagerGeneration = !untransformedJSON;
|
|
18
23
|
const data = eagerGeneration ? [] : Array.isArray(untransformedJSON) ? untransformedJSON : [
|
|
19
24
|
untransformedJSON
|
|
20
25
|
];
|
|
21
26
|
const meta = responseMeta?.({
|
|
22
27
|
ctx,
|
|
23
|
-
|
|
28
|
+
info,
|
|
29
|
+
paths: info?.calls.map((call)=>call.path),
|
|
24
30
|
type,
|
|
25
31
|
data,
|
|
26
32
|
errors,
|
|
27
33
|
eagerGeneration
|
|
28
34
|
}) ?? {};
|
|
29
|
-
|
|
30
|
-
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
|
+
}
|
|
31
53
|
}
|
|
32
54
|
if (meta.status) {
|
|
33
55
|
status = meta.status;
|
|
@@ -66,79 +88,54 @@ function caughtErrorToData(cause, errorOpts) {
|
|
|
66
88
|
body
|
|
67
89
|
};
|
|
68
90
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const
|
|
91
|
+
async function resolveResponse(opts) {
|
|
92
|
+
const { router , req } = opts;
|
|
93
|
+
const url = new URL(req.url);
|
|
72
94
|
if (req.method === 'HEAD') {
|
|
73
95
|
// can be used for lambda warmup
|
|
74
|
-
|
|
96
|
+
return new Response(null, {
|
|
75
97
|
status: 204
|
|
76
|
-
};
|
|
77
|
-
unstable_onHead?.(headResponse, false);
|
|
78
|
-
unstable_onChunk?.([
|
|
79
|
-
-1,
|
|
80
|
-
''
|
|
81
|
-
]);
|
|
82
|
-
return headResponse;
|
|
98
|
+
});
|
|
83
99
|
}
|
|
84
100
|
const allowBatching = opts.allowBatching ?? opts.batching?.enabled ?? true;
|
|
85
|
-
const allowMethodOverride = opts.allowMethodOverride ?? false;
|
|
101
|
+
const allowMethodOverride = (opts.allowMethodOverride ?? false) && req.method === 'POST';
|
|
86
102
|
const type = HTTP_METHOD_PROCEDURE_TYPE_MAP[req.method] ?? 'unknown';
|
|
87
103
|
let ctx = undefined;
|
|
88
|
-
let
|
|
89
|
-
const
|
|
90
|
-
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';
|
|
91
106
|
try {
|
|
92
|
-
|
|
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
|
+
});
|
|
117
|
+
if (opts.error) {
|
|
118
|
+
throw opts.error;
|
|
119
|
+
}
|
|
120
|
+
if (info.isBatchCall && !allowBatching) {
|
|
93
121
|
throw new TRPCError({
|
|
94
122
|
code: 'BAD_REQUEST',
|
|
95
123
|
message: `Batching is not enabled on the server`
|
|
96
124
|
});
|
|
97
125
|
}
|
|
98
|
-
/* istanbul ignore if -- @preserve */ if (type === 'subscription') {
|
|
99
|
-
throw new TRPCError({
|
|
100
|
-
message: 'Subscriptions should use wsLink',
|
|
101
|
-
code: 'METHOD_NOT_SUPPORTED'
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
126
|
if (type === 'unknown') {
|
|
105
127
|
throw new TRPCError({
|
|
106
128
|
message: `Unexpected request method ${req.method}`,
|
|
107
129
|
code: 'METHOD_NOT_SUPPORTED'
|
|
108
130
|
});
|
|
109
131
|
}
|
|
110
|
-
paths = isBatchCall ? decodeURIComponent(opts.path).split(',') : [
|
|
111
|
-
opts.path
|
|
112
|
-
];
|
|
113
|
-
const info = {
|
|
114
|
-
isBatchCall,
|
|
115
|
-
calls: paths.map((path)=>({
|
|
116
|
-
path,
|
|
117
|
-
type
|
|
118
|
-
}))
|
|
119
|
-
};
|
|
120
|
-
ctx = await opts.createContext({
|
|
121
|
-
info
|
|
122
|
-
});
|
|
123
132
|
const errors = [];
|
|
124
|
-
const promises =
|
|
125
|
-
async function getRawInput() {
|
|
126
|
-
return await opts.getInput({
|
|
127
|
-
isBatchCall,
|
|
128
|
-
batch: index
|
|
129
|
-
});
|
|
130
|
-
}
|
|
133
|
+
const promises = info.calls.map(async (call)=>{
|
|
131
134
|
try {
|
|
132
|
-
if (opts.error) {
|
|
133
|
-
// sometimes an error may be generated above this function in the stack
|
|
134
|
-
// for instance a 405 error if the method is not supported
|
|
135
|
-
// But we need to handle it here to ensure the error is formatted correctly
|
|
136
|
-
throw opts.error;
|
|
137
|
-
}
|
|
138
135
|
const data = await callProcedure({
|
|
139
136
|
procedures: opts.router._def.procedures,
|
|
140
|
-
path,
|
|
141
|
-
getRawInput: getRawInput,
|
|
137
|
+
path: call.path,
|
|
138
|
+
getRawInput: call.getRawInput,
|
|
142
139
|
ctx,
|
|
143
140
|
type,
|
|
144
141
|
allowMethodOverride
|
|
@@ -151,16 +148,10 @@ async function resolveHTTPResponse(opts) {
|
|
|
151
148
|
} catch (cause) {
|
|
152
149
|
const error = getTRPCErrorFromUnknown(cause);
|
|
153
150
|
errors.push(error);
|
|
154
|
-
|
|
155
|
-
try {
|
|
156
|
-
input = await getRawInput();
|
|
157
|
-
} catch (e) {
|
|
158
|
-
// if `getRawInput` fails, we can't include the input in the error
|
|
159
|
-
input = undefined;
|
|
160
|
-
}
|
|
151
|
+
const input = call.result();
|
|
161
152
|
opts.onError?.({
|
|
162
153
|
error,
|
|
163
|
-
path,
|
|
154
|
+
path: call.path,
|
|
164
155
|
input,
|
|
165
156
|
ctx,
|
|
166
157
|
type: type,
|
|
@@ -171,7 +162,7 @@ async function resolveHTTPResponse(opts) {
|
|
|
171
162
|
config: opts.router._def._config,
|
|
172
163
|
error,
|
|
173
164
|
type,
|
|
174
|
-
path,
|
|
165
|
+
path: call.path,
|
|
175
166
|
input,
|
|
176
167
|
ctx
|
|
177
168
|
})
|
|
@@ -185,79 +176,79 @@ async function resolveHTTPResponse(opts) {
|
|
|
185
176
|
* - create headers with known response body
|
|
186
177
|
* - return a complete HTTPResponse
|
|
187
178
|
*/ const untransformedJSON = await Promise.all(promises);
|
|
188
|
-
const
|
|
179
|
+
const errors1 = untransformedJSON.flatMap((response)=>'error' in response ? [
|
|
180
|
+
response.error
|
|
181
|
+
] : []);
|
|
182
|
+
const headResponse = initResponse({
|
|
189
183
|
ctx,
|
|
190
|
-
|
|
184
|
+
info,
|
|
191
185
|
type,
|
|
192
186
|
responseMeta: opts.responseMeta,
|
|
193
187
|
untransformedJSON,
|
|
194
|
-
errors
|
|
188
|
+
errors: errors1
|
|
195
189
|
});
|
|
196
|
-
unstable_onHead?.(headResponse1, false);
|
|
197
190
|
// return body stuff
|
|
198
|
-
const result = isBatchCall ? untransformedJSON : untransformedJSON[0];
|
|
191
|
+
const result = info.isBatchCall ? untransformedJSON : untransformedJSON[0];
|
|
199
192
|
const transformedJSON = transformTRPCResponse(router._def._config, result);
|
|
200
193
|
const body = JSON.stringify(transformedJSON);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return {
|
|
206
|
-
status: headResponse1.status,
|
|
207
|
-
headers: headResponse1.headers,
|
|
208
|
-
body
|
|
209
|
-
};
|
|
194
|
+
return new Response(body, {
|
|
195
|
+
status: headResponse.status,
|
|
196
|
+
headers: headResponse.headers
|
|
197
|
+
});
|
|
210
198
|
}
|
|
211
199
|
/**
|
|
212
200
|
* Streaming response:
|
|
213
201
|
* - block on none, call `onChunk` as soon as each response is ready
|
|
214
202
|
* - create headers with minimal data (cannot know the response body in advance)
|
|
215
203
|
* - return void
|
|
216
|
-
*/ const
|
|
204
|
+
*/ const headResponse1 = initResponse({
|
|
217
205
|
ctx,
|
|
218
|
-
|
|
206
|
+
info,
|
|
219
207
|
type,
|
|
220
|
-
responseMeta: opts.responseMeta
|
|
208
|
+
responseMeta: opts.responseMeta,
|
|
209
|
+
errors: []
|
|
221
210
|
});
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
r
|
|
228
|
-
])
|
|
229
|
-
]));
|
|
230
|
-
for (const _ of paths){
|
|
231
|
-
const [index, untransformedJSON1] = await Promise.race(indexedPromises.values());
|
|
232
|
-
indexedPromises.delete(index);
|
|
233
|
-
try {
|
|
234
|
-
const transformedJSON1 = transformTRPCResponse(router._def._config, untransformedJSON1);
|
|
235
|
-
const body1 = JSON.stringify(transformedJSON1);
|
|
236
|
-
unstable_onChunk([
|
|
237
|
-
index,
|
|
238
|
-
body1
|
|
239
|
-
]);
|
|
240
|
-
} catch (cause) {
|
|
241
|
-
const path = paths[index];
|
|
242
|
-
const input = await opts.getInput({
|
|
243
|
-
isBatchCall,
|
|
244
|
-
batch: index
|
|
245
|
-
});
|
|
246
|
-
const { body: body2 } = caughtErrorToData(cause, {
|
|
247
|
-
opts,
|
|
248
|
-
ctx,
|
|
249
|
-
type,
|
|
250
|
-
path,
|
|
251
|
-
input
|
|
252
|
-
});
|
|
253
|
-
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)=>[
|
|
254
216
|
index,
|
|
255
|
-
|
|
256
|
-
|
|
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
|
+
}
|
|
257
242
|
}
|
|
243
|
+
await controller.write(formatter.end());
|
|
244
|
+
await controller.close();
|
|
258
245
|
}
|
|
259
|
-
|
|
260
|
-
|
|
246
|
+
exec().catch((err)=>controller.abort(err));
|
|
247
|
+
return new Response(stream, {
|
|
248
|
+
headers: headResponse1.headers,
|
|
249
|
+
status: headResponse1.status
|
|
250
|
+
});
|
|
251
|
+
} catch (cause) {
|
|
261
252
|
// we get here if
|
|
262
253
|
// - batching is called when it's not enabled
|
|
263
254
|
// - `createContext()` throws
|
|
@@ -265,32 +256,26 @@ async function resolveHTTPResponse(opts) {
|
|
|
265
256
|
// - post body is too large
|
|
266
257
|
// - input deserialization fails
|
|
267
258
|
// - `errorFormatter` return value is malformed
|
|
268
|
-
const { error , untransformedJSON:
|
|
259
|
+
const { error , untransformedJSON: untransformedJSON1 , body: body1 } = caughtErrorToData(cause, {
|
|
269
260
|
opts,
|
|
270
261
|
ctx,
|
|
271
262
|
type
|
|
272
263
|
});
|
|
273
|
-
const
|
|
264
|
+
const headResponse2 = initResponse({
|
|
274
265
|
ctx,
|
|
275
|
-
|
|
266
|
+
info,
|
|
276
267
|
type,
|
|
277
268
|
responseMeta: opts.responseMeta,
|
|
278
|
-
untransformedJSON:
|
|
269
|
+
untransformedJSON: untransformedJSON1,
|
|
279
270
|
errors: [
|
|
280
271
|
error
|
|
281
272
|
]
|
|
282
273
|
});
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
]);
|
|
288
|
-
return {
|
|
289
|
-
status: headResponse3.status,
|
|
290
|
-
headers: headResponse3.headers,
|
|
291
|
-
body: body3
|
|
292
|
-
};
|
|
274
|
+
return new Response(body1, {
|
|
275
|
+
status: headResponse2.status,
|
|
276
|
+
headers: headResponse2.headers
|
|
277
|
+
});
|
|
293
278
|
}
|
|
294
279
|
}
|
|
295
280
|
|
|
296
|
-
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,22 +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
|
-
}
|
|
41
33
|
/**
|
|
42
34
|
* Base interface for anything using HTTP
|
|
43
35
|
*/
|
|
@@ -49,21 +41,27 @@ export interface HTTPBaseHandlerOptions<TRouter extends AnyRouter, TRequest> ext
|
|
|
49
41
|
*/
|
|
50
42
|
responseMeta?: ResponseMetaFn<TRouter>;
|
|
51
43
|
}
|
|
52
|
-
|
|
53
|
-
export type ProcedureCall = {
|
|
54
|
-
type: ProcedureType;
|
|
44
|
+
interface TRPCRequestInfoProcedureCall {
|
|
55
45
|
path: string;
|
|
56
|
-
|
|
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
|
+
}
|
|
57
55
|
/**
|
|
58
56
|
* Information about the incoming request
|
|
59
|
-
* @
|
|
57
|
+
* @public
|
|
60
58
|
*/
|
|
61
|
-
export
|
|
59
|
+
export interface TRPCRequestInfo {
|
|
62
60
|
isBatchCall: boolean;
|
|
63
|
-
calls:
|
|
64
|
-
}
|
|
61
|
+
calls: TRPCRequestInfoProcedureCall[];
|
|
62
|
+
}
|
|
65
63
|
/**
|
|
66
|
-
* Inner createContext function for `
|
|
64
|
+
* Inner createContext function for `resolveResponse` used to forward `TRPCRequestInfo` to `createContext`
|
|
67
65
|
* @internal
|
|
68
66
|
*/
|
|
69
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,W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,IAAI,EAAE,eAAe,CAAA;CAAE,KAAK,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE5E,UAAU,uBAAuB,CAAC,OAAO,SAAS,SAAS,EAAE,QAAQ,CACnE,SAAQ,mBAAmB,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACxD,GAAG,EAAE,QAAQ,CAAC;CACf;AACD;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,SAAS,EAAE,QAAQ,IAAI,CAClE,IAAI,EAAE,uBAAuB,CAAC,OAAO,EAAE,QAAQ,CAAC,KAC7C,IAAI,CAAC;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,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S,CAAC,iBAAiB,CAAC,GAC5B,qBAAqB,CAAC;QACpB,KAAK,EAAE,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QACpC,MAAM,EAAE,YAAY,CAAC,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC;KACjE,CAAC,CAAC;IAEP;;;OAGG;IACH,mBAAmB,CACjB,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAC/B,gBAAgB,CACjB,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,IAAI,CACL,CAAC;IACF;;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 };
|
|
@@ -75,14 +75,5 @@ export type CreateContextCallback<TContext, TFunction extends (...args: any[]) =
|
|
|
75
75
|
**/
|
|
76
76
|
createContext: TFunction;
|
|
77
77
|
}>;
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
export type WrapCreateContext<TFunction extends (...args: any[]) => any> = {
|
|
82
|
-
/**
|
|
83
|
-
* @link https://trpc.io/docs/v11/context
|
|
84
|
-
**/
|
|
85
|
-
createContext?: TFunction;
|
|
86
|
-
};
|
|
87
78
|
export {};
|
|
88
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,KA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AEN"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/utils.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAO,MAAM,WAAW,eAAwB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACzE,IAAI,EAAE,KAAK,EACX,GAAG,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,GACxB,KAAK,CAYP;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAED,KAAK,KAAK,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;AACzC,wBAAgB,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,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"}
|