@trpc/server 11.0.0-alpha-tmp-02-12-response-types-idea.839 → 11.0.0-alpha-tmp-issues-6554.823
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/getPlanner.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/getPlanner.js +3 -1
- package/dist/adapters/aws-lambda/getPlanner.mjs +3 -1
- package/dist/adapters/fetch/types.d.ts +2 -8
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/bundle-analysis.json +86 -72
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +1 -1
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +1 -20
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +1 -20
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.mjs +0 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +2 -4
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +3 -9
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +3 -9
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +1 -3
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/transformer.d.ts +1 -1
- package/dist/vendor/cookie-es/set-cookie/split.d.ts +18 -0
- package/dist/vendor/cookie-es/set-cookie/split.d.ts.map +1 -0
- package/dist/vendor/cookie-es/set-cookie/split.js +79 -0
- package/dist/vendor/cookie-es/set-cookie/split.mjs +77 -0
- package/package.json +182 -47
- package/src/adapters/aws-lambda/getPlanner.ts +4 -4
- package/src/adapters/fetch/types.ts +2 -8
- package/src/unstable-core-do-not-import/clientish/inference.ts +3 -8
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +4 -31
- package/src/unstable-core-do-not-import/initTRPC.ts +0 -1
- package/src/unstable-core-do-not-import/procedureBuilder.ts +2 -15
- package/src/unstable-core-do-not-import/rootConfig.ts +1 -3
- package/src/vendor/cookie-es/set-cookie/split.ts +91 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPlanner.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/getPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"getPlanner.d.ts","sourceRoot":"","sources":["../../../src/adapters/aws-lambda/getPlanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,YAAY,CAAC;AAGpB,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAExE,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,iCAAiC,CAAC;AActC;;IAEI;AACJ,MAAM,MAAM,gBAAgB,CAAC,MAAM,IAAI,MAAM,SAAS,oBAAoB,GACtE,qBAAqB,GACrB,MAAM,SAAS,sBAAsB,GACnC,iCAAiC,GACjC,KAAK,CAAC;AA4IZ,wBAAgB,UAAU,CAAC,MAAM,SAAS,WAAW,EAAE,KAAK,EAAE,MAAM;;;yBArI7C,QAAQ;EAyK9B"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var split = require('../../vendor/cookie-es/set-cookie/split.js');
|
|
4
|
+
|
|
3
5
|
function determinePayloadFormat(event) {
|
|
4
6
|
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
5
7
|
// According to AWS support, version is is extracted from the version property in the event.
|
|
@@ -13,7 +15,7 @@ function determinePayloadFormat(event) {
|
|
|
13
15
|
}
|
|
14
16
|
function getHeadersAndCookiesFromResponse(response) {
|
|
15
17
|
const headers = Object.fromEntries(response.headers.entries());
|
|
16
|
-
const cookies = response.headers.getSetCookie()
|
|
18
|
+
const cookies = split.splitSetCookieString(response.headers.getSetCookie()).map((cookie)=>cookie.trim());
|
|
17
19
|
delete headers['set-cookie'];
|
|
18
20
|
return {
|
|
19
21
|
headers,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitSetCookieString } from '../../vendor/cookie-es/set-cookie/split.mjs';
|
|
2
|
+
|
|
1
3
|
function determinePayloadFormat(event) {
|
|
2
4
|
// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
3
5
|
// According to AWS support, version is is extracted from the version property in the event.
|
|
@@ -11,7 +13,7 @@ function determinePayloadFormat(event) {
|
|
|
11
13
|
}
|
|
12
14
|
function getHeadersAndCookiesFromResponse(response) {
|
|
13
15
|
const headers = Object.fromEntries(response.headers.entries());
|
|
14
|
-
const cookies = response.headers.getSetCookie()
|
|
16
|
+
const cookies = splitSetCookieString(response.headers.getSetCookie()).map((cookie)=>cookie.trim());
|
|
15
17
|
delete headers['set-cookie'];
|
|
16
18
|
return {
|
|
17
19
|
headers,
|
|
@@ -9,17 +9,11 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { AnyRouter, CreateContextCallback, inferRouterContext } from '../../@trpc/server';
|
|
11
11
|
import type { HTTPBaseHandlerOptions, TRPCRequestInfo } from '../../@trpc/server/http';
|
|
12
|
-
export
|
|
12
|
+
export type FetchCreateContextFnOptions = {
|
|
13
13
|
req: Request;
|
|
14
|
-
/**
|
|
15
|
-
* Used for setting headers on the `Response`
|
|
16
|
-
*/
|
|
17
14
|
resHeaders: Headers;
|
|
18
|
-
/**
|
|
19
|
-
* Info about the request
|
|
20
|
-
*/
|
|
21
15
|
info: TRPCRequestInfo;
|
|
22
|
-
}
|
|
16
|
+
};
|
|
23
17
|
export type FetchCreateContextFn<TRouter extends AnyRouter> = (opts: FetchCreateContextFnOptions) => inferRouterContext<TRouter> | Promise<inferRouterContext<TRouter>>;
|
|
24
18
|
export type FetchCreateContextOption<TRouter extends AnyRouter> = CreateContextCallback<inferRouterContext<TRouter>, FetchCreateContextFn<TRouter>>;
|
|
25
19
|
export type FetchHandlerOptions<TRouter extends AnyRouter> = FetchCreateContextOption<TRouter> & HTTPBaseHandlerOptions<TRouter, Request> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/fetch/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC5D,IAAI,EAAE,2BAA2B,KAC9B,kBAAkB,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,wBAAwB,CAAC,OAAO,SAAS,SAAS,IAC5D,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,oBAAoB,CAAC,OAAO,CAAC,CAC9B,CAAC;AAEJ,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,SAAS,IACvD,wBAAwB,CAAC,OAAO,CAAC,GAC/B,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;IACzC,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEN,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,GACtC,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,oBAAoB,CAAC,OAAO,CAAC,CAC9B,GAAG;IACF,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 13.
|
|
2
|
+
"bundleSize": 201851,
|
|
3
|
+
"bundleOrigSize": 233664,
|
|
4
|
+
"bundleReduction": 13.61,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
8
|
-
"size":
|
|
9
|
-
"origSize":
|
|
8
|
+
"size": 21089,
|
|
9
|
+
"origSize": 19447,
|
|
10
10
|
"renderedExports": [
|
|
11
11
|
"resolveResponse"
|
|
12
12
|
],
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/unstable-core-do-not-import.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent":
|
|
17
|
+
"percent": 10.45,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependents": [
|
|
31
31
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
32
32
|
],
|
|
33
|
-
"percent":
|
|
33
|
+
"percent": 9.98,
|
|
34
34
|
"reduction": 0
|
|
35
35
|
},
|
|
36
36
|
{
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"/src/unstable-core-do-not-import.ts",
|
|
48
48
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
49
49
|
],
|
|
50
|
-
"percent": 9.
|
|
50
|
+
"percent": 9.88,
|
|
51
51
|
"reduction": 0
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"/src/unstable-core-do-not-import.ts",
|
|
65
65
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
66
66
|
],
|
|
67
|
-
"percent": 6.
|
|
67
|
+
"percent": 6.42,
|
|
68
68
|
"reduction": 0
|
|
69
69
|
},
|
|
70
70
|
{
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
],
|
|
78
78
|
"removedExports": [],
|
|
79
79
|
"dependents": [],
|
|
80
|
-
"percent": 6.
|
|
80
|
+
"percent": 6.02,
|
|
81
81
|
"reduction": 11.62
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
99
99
|
"/src/unstable-core-do-not-import/http/contentType.ts"
|
|
100
100
|
],
|
|
101
|
-
"percent": 5.
|
|
101
|
+
"percent": 5.04,
|
|
102
102
|
"reduction": 29.51
|
|
103
103
|
},
|
|
104
104
|
{
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"dependents": [
|
|
113
113
|
"/src/unstable-core-do-not-import/stream/jsonl.ts"
|
|
114
114
|
],
|
|
115
|
-
"percent": 4.
|
|
115
|
+
"percent": 4.02,
|
|
116
116
|
"reduction": 0
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
"/src/unstable-core-do-not-import.ts",
|
|
128
128
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
129
129
|
],
|
|
130
|
-
"percent": 3.
|
|
130
|
+
"percent": 3.9,
|
|
131
131
|
"reduction": 0.83
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
135
|
-
"size":
|
|
136
|
-
"origSize":
|
|
135
|
+
"size": 5825,
|
|
136
|
+
"origSize": 16584,
|
|
137
137
|
"renderedExports": [
|
|
138
138
|
"createBuilder"
|
|
139
139
|
],
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
"/src/unstable-core-do-not-import.ts",
|
|
143
143
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
144
144
|
],
|
|
145
|
-
"percent":
|
|
146
|
-
"reduction": 64.
|
|
145
|
+
"percent": 2.89,
|
|
146
|
+
"reduction": 64.88
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
|
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
"/src/unstable-core-do-not-import/stream/sse.ts",
|
|
163
163
|
"/src/unstable-core-do-not-import/stream/utils/withPing.ts"
|
|
164
164
|
],
|
|
165
|
-
"percent": 2.
|
|
165
|
+
"percent": 2.83,
|
|
166
166
|
"reduction": 0
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"id": "/src/adapters/aws-lambda/getPlanner.ts",
|
|
170
|
-
"size":
|
|
171
|
-
"origSize":
|
|
170
|
+
"size": 5407,
|
|
171
|
+
"origSize": 6177,
|
|
172
172
|
"renderedExports": [
|
|
173
173
|
"getPlanner"
|
|
174
174
|
],
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
"dependents": [
|
|
177
177
|
"/src/adapters/aws-lambda/index.ts"
|
|
178
178
|
],
|
|
179
|
-
"percent": 2.
|
|
180
|
-
"reduction":
|
|
179
|
+
"percent": 2.68,
|
|
180
|
+
"reduction": 12.47
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"id": "/src/observable/observable.ts",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"/src/observable/operators.ts",
|
|
197
197
|
"/src/observable/behaviorSubject.ts"
|
|
198
198
|
],
|
|
199
|
-
"percent": 2.
|
|
199
|
+
"percent": 2.4,
|
|
200
200
|
"reduction": 0
|
|
201
201
|
},
|
|
202
202
|
{
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
213
213
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
214
214
|
],
|
|
215
|
-
"percent": 2.
|
|
215
|
+
"percent": 2.2,
|
|
216
216
|
"reduction": 0
|
|
217
217
|
},
|
|
218
218
|
{
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"/src/adapters/node-http/index.ts",
|
|
229
229
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
230
230
|
],
|
|
231
|
-
"percent": 2.
|
|
231
|
+
"percent": 2.01,
|
|
232
232
|
"reduction": 6.81
|
|
233
233
|
},
|
|
234
234
|
{
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"dependents": [
|
|
247
247
|
"/src/observable/index.ts"
|
|
248
248
|
],
|
|
249
|
-
"percent": 1.
|
|
249
|
+
"percent": 1.94,
|
|
250
250
|
"reduction": 1.66
|
|
251
251
|
},
|
|
252
252
|
{
|
|
@@ -260,9 +260,23 @@
|
|
|
260
260
|
"dependents": [
|
|
261
261
|
"/src/adapters/next-app-dir.ts"
|
|
262
262
|
],
|
|
263
|
-
"percent": 1.
|
|
263
|
+
"percent": 1.61,
|
|
264
264
|
"reduction": 22.52
|
|
265
265
|
},
|
|
266
|
+
{
|
|
267
|
+
"id": "/src/vendor/cookie-es/set-cookie/split.ts",
|
|
268
|
+
"size": 2798,
|
|
269
|
+
"origSize": 2750,
|
|
270
|
+
"renderedExports": [
|
|
271
|
+
"splitSetCookieString"
|
|
272
|
+
],
|
|
273
|
+
"removedExports": [],
|
|
274
|
+
"dependents": [
|
|
275
|
+
"/src/adapters/aws-lambda/getPlanner.ts"
|
|
276
|
+
],
|
|
277
|
+
"percent": 1.39,
|
|
278
|
+
"reduction": 0
|
|
279
|
+
},
|
|
266
280
|
{
|
|
267
281
|
"id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
268
282
|
"size": 2742,
|
|
@@ -275,7 +289,7 @@
|
|
|
275
289
|
"dependents": [
|
|
276
290
|
"/src/adapters/node-http/index.ts"
|
|
277
291
|
],
|
|
278
|
-
"percent": 1.
|
|
292
|
+
"percent": 1.36,
|
|
279
293
|
"reduction": 16.3
|
|
280
294
|
},
|
|
281
295
|
{
|
|
@@ -291,17 +305,17 @@
|
|
|
291
305
|
"removedExports": [],
|
|
292
306
|
"dependents": [
|
|
293
307
|
"/src/unstable-core-do-not-import.ts",
|
|
294
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
295
308
|
"/src/unstable-core-do-not-import/router.ts",
|
|
296
|
-
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
309
|
+
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
310
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
297
311
|
],
|
|
298
|
-
"percent": 1.
|
|
312
|
+
"percent": 1.36,
|
|
299
313
|
"reduction": 45.98
|
|
300
314
|
},
|
|
301
315
|
{
|
|
302
316
|
"id": "/src/unstable-core-do-not-import/initTRPC.ts",
|
|
303
|
-
"size":
|
|
304
|
-
"origSize":
|
|
317
|
+
"size": 2664,
|
|
318
|
+
"origSize": 4501,
|
|
305
319
|
"renderedExports": [
|
|
306
320
|
"initTRPC"
|
|
307
321
|
],
|
|
@@ -309,8 +323,8 @@
|
|
|
309
323
|
"dependents": [
|
|
310
324
|
"/src/unstable-core-do-not-import.ts"
|
|
311
325
|
],
|
|
312
|
-
"percent": 1.
|
|
313
|
-
"reduction": 40.
|
|
326
|
+
"percent": 1.32,
|
|
327
|
+
"reduction": 40.81
|
|
314
328
|
},
|
|
315
329
|
{
|
|
316
330
|
"id": "/src/unstable-core-do-not-import/middleware.ts",
|
|
@@ -329,7 +343,7 @@
|
|
|
329
343
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
330
344
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
331
345
|
],
|
|
332
|
-
"percent": 1.
|
|
346
|
+
"percent": 1.3,
|
|
333
347
|
"reduction": 55.79
|
|
334
348
|
},
|
|
335
349
|
{
|
|
@@ -353,13 +367,13 @@
|
|
|
353
367
|
"removedExports": [],
|
|
354
368
|
"dependents": [
|
|
355
369
|
"/src/unstable-core-do-not-import.ts",
|
|
356
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
357
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
358
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
359
370
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
360
371
|
"/src/unstable-core-do-not-import/router.ts",
|
|
361
372
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
362
373
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
374
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
375
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
376
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
363
377
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
364
378
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
365
379
|
"/src/unstable-core-do-not-import/http/abortError.ts",
|
|
@@ -367,7 +381,7 @@
|
|
|
367
381
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
368
382
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
369
383
|
],
|
|
370
|
-
"percent": 1.
|
|
384
|
+
"percent": 1.22,
|
|
371
385
|
"reduction": 17.51
|
|
372
386
|
},
|
|
373
387
|
{
|
|
@@ -382,15 +396,15 @@
|
|
|
382
396
|
"removedExports": [],
|
|
383
397
|
"dependents": [
|
|
384
398
|
"/src/unstable-core-do-not-import.ts",
|
|
385
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
386
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
387
399
|
"/src/unstable-core-do-not-import/router.ts",
|
|
388
400
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
401
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
402
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
389
403
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
390
404
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
391
405
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
392
406
|
],
|
|
393
|
-
"percent": 1.
|
|
407
|
+
"percent": 1.2,
|
|
394
408
|
"reduction": 0
|
|
395
409
|
},
|
|
396
410
|
{
|
|
@@ -406,7 +420,7 @@
|
|
|
406
420
|
"/src/unstable-core-do-not-import.ts",
|
|
407
421
|
"/src/unstable-core-do-not-import/router.ts"
|
|
408
422
|
],
|
|
409
|
-
"percent": 1.
|
|
423
|
+
"percent": 1.14,
|
|
410
424
|
"reduction": 0
|
|
411
425
|
},
|
|
412
426
|
{
|
|
@@ -420,7 +434,7 @@
|
|
|
420
434
|
"dependents": [
|
|
421
435
|
"/src/adapters/fetch/index.ts"
|
|
422
436
|
],
|
|
423
|
-
"percent": 1.
|
|
437
|
+
"percent": 1.11,
|
|
424
438
|
"reduction": 2.48
|
|
425
439
|
},
|
|
426
440
|
{
|
|
@@ -435,7 +449,7 @@
|
|
|
435
449
|
"/src/adapters/next-app-dir.ts",
|
|
436
450
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
437
451
|
],
|
|
438
|
-
"percent": 1.
|
|
452
|
+
"percent": 1.05,
|
|
439
453
|
"reduction": 5.4
|
|
440
454
|
},
|
|
441
455
|
{
|
|
@@ -453,10 +467,10 @@
|
|
|
453
467
|
"removedExports": [],
|
|
454
468
|
"dependents": [
|
|
455
469
|
"/src/unstable-core-do-not-import.ts",
|
|
456
|
-
"/src/unstable-core-do-not-import/
|
|
457
|
-
"/src/unstable-core-do-not-import/
|
|
470
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
471
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
458
472
|
],
|
|
459
|
-
"percent": 1.
|
|
473
|
+
"percent": 1.03,
|
|
460
474
|
"reduction": 18.54
|
|
461
475
|
},
|
|
462
476
|
{
|
|
@@ -471,7 +485,7 @@
|
|
|
471
485
|
"dependents": [
|
|
472
486
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
473
487
|
],
|
|
474
|
-
"percent": 1
|
|
488
|
+
"percent": 1,
|
|
475
489
|
"reduction": 3.8
|
|
476
490
|
},
|
|
477
491
|
{
|
|
@@ -485,7 +499,7 @@
|
|
|
485
499
|
"dependents": [
|
|
486
500
|
"/src/adapters/fastify/index.ts"
|
|
487
501
|
],
|
|
488
|
-
"percent": 0.
|
|
502
|
+
"percent": 0.88,
|
|
489
503
|
"reduction": 30.2
|
|
490
504
|
},
|
|
491
505
|
{
|
|
@@ -505,7 +519,7 @@
|
|
|
505
519
|
"/src/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.ts",
|
|
506
520
|
"/src/unstable-core-do-not-import/stream/utils/timerResource.ts"
|
|
507
521
|
],
|
|
508
|
-
"percent": 0.
|
|
522
|
+
"percent": 0.87,
|
|
509
523
|
"reduction": 4.41
|
|
510
524
|
},
|
|
511
525
|
{
|
|
@@ -647,7 +661,7 @@
|
|
|
647
661
|
],
|
|
648
662
|
"removedExports": [],
|
|
649
663
|
"dependents": [],
|
|
650
|
-
"percent": 0.
|
|
664
|
+
"percent": 0.47,
|
|
651
665
|
"reduction": 69.13
|
|
652
666
|
},
|
|
653
667
|
{
|
|
@@ -703,7 +717,7 @@
|
|
|
703
717
|
"/src/unstable-core-do-not-import.ts",
|
|
704
718
|
"/src/unstable-core-do-not-import/parser.ts"
|
|
705
719
|
],
|
|
706
|
-
"percent": 0.
|
|
720
|
+
"percent": 0.34,
|
|
707
721
|
"reduction": 0
|
|
708
722
|
},
|
|
709
723
|
{
|
|
@@ -718,7 +732,7 @@
|
|
|
718
732
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
719
733
|
"/src/unstable-core-do-not-import/stream/sse.ts"
|
|
720
734
|
],
|
|
721
|
-
"percent": 0.
|
|
735
|
+
"percent": 0.32,
|
|
722
736
|
"reduction": 1.36
|
|
723
737
|
},
|
|
724
738
|
{
|
|
@@ -756,7 +770,7 @@
|
|
|
756
770
|
{
|
|
757
771
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
758
772
|
"size": 343,
|
|
759
|
-
"origSize":
|
|
773
|
+
"origSize": 3318,
|
|
760
774
|
"renderedExports": [
|
|
761
775
|
"isServerDefault"
|
|
762
776
|
],
|
|
@@ -766,7 +780,7 @@
|
|
|
766
780
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
767
781
|
],
|
|
768
782
|
"percent": 0.17,
|
|
769
|
-
"reduction": 89.
|
|
783
|
+
"reduction": 89.66
|
|
770
784
|
},
|
|
771
785
|
{
|
|
772
786
|
"id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
|
|
@@ -861,24 +875,24 @@
|
|
|
861
875
|
"reduction": 93.9
|
|
862
876
|
},
|
|
863
877
|
{
|
|
864
|
-
"id": "/src/
|
|
878
|
+
"id": "/src/index.ts",
|
|
865
879
|
"size": 0,
|
|
866
|
-
"origSize":
|
|
880
|
+
"origSize": 32,
|
|
867
881
|
"renderedExports": [],
|
|
868
882
|
"removedExports": [],
|
|
869
|
-
"dependents": [
|
|
870
|
-
"/src/adapters/ws.ts"
|
|
871
|
-
],
|
|
883
|
+
"dependents": [],
|
|
872
884
|
"percent": 0,
|
|
873
885
|
"reduction": 100
|
|
874
886
|
},
|
|
875
887
|
{
|
|
876
|
-
"id": "/src/
|
|
888
|
+
"id": "/src/http.ts",
|
|
877
889
|
"size": 0,
|
|
878
|
-
"origSize":
|
|
890
|
+
"origSize": 37,
|
|
879
891
|
"renderedExports": [],
|
|
880
892
|
"removedExports": [],
|
|
881
|
-
"dependents": [
|
|
893
|
+
"dependents": [
|
|
894
|
+
"/src/adapters/ws.ts"
|
|
895
|
+
],
|
|
882
896
|
"percent": 0,
|
|
883
897
|
"reduction": 100
|
|
884
898
|
},
|
|
@@ -911,8 +925,8 @@
|
|
|
911
925
|
"dependents": [
|
|
912
926
|
"/src/adapters/express.ts",
|
|
913
927
|
"/src/adapters/next.ts",
|
|
914
|
-
"/src/adapters/standalone.ts",
|
|
915
928
|
"/src/adapters/ws.ts",
|
|
929
|
+
"/src/adapters/standalone.ts",
|
|
916
930
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
917
931
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
918
932
|
"/src/adapters/node-http/writeResponse.ts"
|
|
@@ -943,9 +957,9 @@
|
|
|
943
957
|
"reduction": 100
|
|
944
958
|
},
|
|
945
959
|
{
|
|
946
|
-
"id": "/src/adapters/
|
|
960
|
+
"id": "/src/adapters/fastify/index.ts",
|
|
947
961
|
"size": 0,
|
|
948
|
-
"origSize":
|
|
962
|
+
"origSize": 78,
|
|
949
963
|
"renderedExports": [],
|
|
950
964
|
"removedExports": [],
|
|
951
965
|
"dependents": [],
|
|
@@ -953,9 +967,9 @@
|
|
|
953
967
|
"reduction": 100
|
|
954
968
|
},
|
|
955
969
|
{
|
|
956
|
-
"id": "/src/adapters/
|
|
970
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
957
971
|
"size": 0,
|
|
958
|
-
"origSize":
|
|
972
|
+
"origSize": 64,
|
|
959
973
|
"renderedExports": [],
|
|
960
974
|
"removedExports": [],
|
|
961
975
|
"dependents": [],
|
|
@@ -971,13 +985,13 @@
|
|
|
971
985
|
"dependents": [
|
|
972
986
|
"/src/adapters/express.ts",
|
|
973
987
|
"/src/adapters/next.ts",
|
|
974
|
-
"/src/adapters/standalone.ts",
|
|
975
988
|
"/src/adapters/ws.ts",
|
|
989
|
+
"/src/adapters/standalone.ts",
|
|
976
990
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
977
991
|
],
|
|
978
992
|
"percent": 0,
|
|
979
993
|
"reduction": 100
|
|
980
994
|
}
|
|
981
995
|
],
|
|
982
|
-
"moduleCount":
|
|
996
|
+
"moduleCount": 64
|
|
983
997
|
}
|
|
@@ -6,7 +6,7 @@ import type { Serialize } from './serialize';
|
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> =
|
|
9
|
+
export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferProcedureOutput<TProcedure>> : inferProcedureOutput<TProcedure>;
|
|
10
10
|
/** @internal */
|
|
11
11
|
export type inferTransformedSubscriptionOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferObservableValue<inferProcedureOutput<TProcedure>>> : inferObservableValue<inferProcedureOutput<TProcedure>>;
|
|
12
12
|
export type GetInferenceHelpers<TType extends 'input' | 'output', TRoot extends AnyClientTypes, TRecord extends RouterRecord> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/clientish/inference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AAEH,MAAM,MAAM,+BAA+B,CACzC,WAAW,SAAS,qBAAqB,EACzC,UAAU,SAAS,YAAY,
|
|
1
|
+
{"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/clientish/inference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AAEH,MAAM,MAAM,+BAA+B,CACzC,WAAW,SAAS,qBAAqB,EACzC,UAAU,SAAS,YAAY,IAC7B,gBAAgB,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,SAAS,KAAK,GAC1D,SAAS,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,GAC3C,oBAAoB,CAAC,UAAU,CAAC,CAAC;AACrC,gBAAgB;AAEhB,MAAM,MAAM,kCAAkC,CAC5C,WAAW,SAAS,qBAAqB,EACzC,UAAU,SAAS,YAAY,IAC7B,gBAAgB,CAAC,WAAW,CA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f,MAAM,WAAW,CAAC;AAQnB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AA+BjB,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;AA2ID,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"resolveResponse.d.ts","sourceRoot":"","sources":["../../../src/unstable-core-do-not-import/http/resolveResponse.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,WAAW,CAAC;AAQnB,OAAO,KAAK,EACV,sBAAsB,EACtB,kCAAkC,EAEnC,MAAM,SAAS,CAAC;AA+BjB,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;AA2ID,wBAAsB,eAAe,CAAC,OAAO,SAAS,SAAS,EAC7D,IAAI,EAAE,yBAAyB,CAAC,OAAO,CAAC,GACvC,OAAO,CAAC,QAAQ,CAAC,CAqfnB"}
|
|
@@ -255,12 +255,6 @@ async function resolveResponse(opts) {
|
|
|
255
255
|
type: proc._def.type,
|
|
256
256
|
signal: opts.req.signal
|
|
257
257
|
});
|
|
258
|
-
if (info.isBatchCall && data instanceof Response) {
|
|
259
|
-
throw new TRPCError.TRPCError({
|
|
260
|
-
code: 'BAD_REQUEST',
|
|
261
|
-
message: 'This procedure cannot be batched - use httpLink instead'
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
258
|
return [
|
|
265
259
|
undefined,
|
|
266
260
|
{
|
|
@@ -286,21 +280,8 @@ async function resolveResponse(opts) {
|
|
|
286
280
|
});
|
|
287
281
|
// ----------- response handlers -----------
|
|
288
282
|
if (!info.isBatchCall) {
|
|
289
|
-
const call = info.calls
|
|
283
|
+
const [call] = info.calls;
|
|
290
284
|
const [error, result] = await rpcCalls[0];
|
|
291
|
-
if (!error && result?.data instanceof Response) {
|
|
292
|
-
const response = result.data;
|
|
293
|
-
if (!config.experimental?.outputResponse) {
|
|
294
|
-
throw new Error('You need to activate outputResponse in the root config to use this feature - e.g. `initTRPC.create({ experimental: { outputResponse: true } })`');
|
|
295
|
-
}
|
|
296
|
-
const headers = new Headers(response.headers);
|
|
297
|
-
headers.set('trpc-response-output', '1');
|
|
298
|
-
return new Response(response.body, {
|
|
299
|
-
status: response.status,
|
|
300
|
-
statusText: response.statusText,
|
|
301
|
-
headers
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
285
|
switch(info.type){
|
|
305
286
|
case 'unknown':
|
|
306
287
|
case 'mutation':
|
|
@@ -253,12 +253,6 @@ async function resolveResponse(opts) {
|
|
|
253
253
|
type: proc._def.type,
|
|
254
254
|
signal: opts.req.signal
|
|
255
255
|
});
|
|
256
|
-
if (info.isBatchCall && data instanceof Response) {
|
|
257
|
-
throw new TRPCError({
|
|
258
|
-
code: 'BAD_REQUEST',
|
|
259
|
-
message: 'This procedure cannot be batched - use httpLink instead'
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
256
|
return [
|
|
263
257
|
undefined,
|
|
264
258
|
{
|
|
@@ -284,21 +278,8 @@ async function resolveResponse(opts) {
|
|
|
284
278
|
});
|
|
285
279
|
// ----------- response handlers -----------
|
|
286
280
|
if (!info.isBatchCall) {
|
|
287
|
-
const call = info.calls
|
|
281
|
+
const [call] = info.calls;
|
|
288
282
|
const [error, result] = await rpcCalls[0];
|
|
289
|
-
if (!error && result?.data instanceof Response) {
|
|
290
|
-
const response = result.data;
|
|
291
|
-
if (!config.experimental?.outputResponse) {
|
|
292
|
-
throw new Error('You need to activate outputResponse in the root config to use this feature - e.g. `initTRPC.create({ experimental: { outputResponse: true } })`');
|
|
293
|
-
}
|
|
294
|
-
const headers = new Headers(response.headers);
|
|
295
|
-
headers.set('trpc-response-output', '1');
|
|
296
|
-
return new Response(response.body, {
|
|
297
|
-
status: response.status,
|
|
298
|
-
statusText: response.statusText,
|
|
299
|
-
headers
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
283
|
switch(info.type){
|
|
303
284
|
case 'unknown':
|
|
304
285
|
case 'mutation':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initTRPC.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/initTRPC.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAGL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,IACjC,KAAK,SAAS,cAAc,CAAC,GAAG,EAAE,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,iBAAiB,CAAC;AAC/E,UAAU,oBAAoB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,CAC1E,SAAQ,OAAO,CAC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