@trpc/server 11.0.0-next.324 → 11.0.0-next.326
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/adapters/next-app-dir/index.d.ts +1 -0
- package/adapters/next-app-dir/index.js +1 -0
- package/dist/adapters/aws-lambda/index.js +1 -0
- package/dist/adapters/aws-lambda/index.mjs +1 -0
- package/dist/adapters/aws-lambda/utils.js +1 -0
- package/dist/adapters/aws-lambda/utils.mjs +1 -0
- package/dist/adapters/fastify/fastifyRequestHandler.js +1 -0
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -0
- package/dist/adapters/fetch/fetchRequestHandler.js +1 -0
- package/dist/adapters/fetch/fetchRequestHandler.mjs +1 -0
- package/dist/adapters/next-app-dir/formDataToObject.d.ts +2 -0
- package/dist/adapters/next-app-dir/formDataToObject.d.ts.map +1 -0
- package/dist/adapters/next-app-dir/formDataToObject.js +34 -0
- package/dist/adapters/next-app-dir/formDataToObject.mjs +32 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts +24 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.d.ts.map +1 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.js +86 -0
- package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +84 -0
- package/dist/adapters/next-app-dir/notFound.d.ts +7 -0
- package/dist/adapters/next-app-dir/notFound.d.ts.map +1 -0
- package/dist/adapters/next-app-dir/notFound.js +16 -0
- package/dist/adapters/next-app-dir/notFound.mjs +14 -0
- package/dist/adapters/next-app-dir/redirect.d.ts +18 -0
- package/dist/adapters/next-app-dir/redirect.d.ts.map +1 -0
- package/dist/adapters/next-app-dir/redirect.js +34 -0
- package/dist/adapters/next-app-dir/redirect.mjs +31 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts +6 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.d.ts.map +1 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.js +23 -0
- package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +21 -0
- package/dist/adapters/next-app-dir.d.ts +4 -0
- package/dist/adapters/next-app-dir.d.ts.map +1 -0
- package/dist/adapters/next-app-dir.js +11 -0
- package/dist/adapters/next-app-dir.mjs +3 -0
- package/dist/adapters/next.js +1 -0
- package/dist/adapters/next.mjs +1 -0
- package/dist/adapters/node-http/content-type/json/getPostBody.js +1 -0
- package/dist/adapters/node-http/content-type/json/getPostBody.mjs +1 -0
- package/dist/adapters/node-http/content-type/json/index.js +1 -0
- package/dist/adapters/node-http/content-type/json/index.mjs +1 -0
- package/dist/adapters/node-http/nodeHTTPRequestHandler.js +1 -0
- package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +1 -0
- package/dist/adapters/standalone.js +1 -0
- package/dist/adapters/standalone.mjs +1 -0
- package/dist/adapters/ws.js +1 -0
- package/dist/adapters/ws.mjs +1 -0
- package/dist/bundle-analysis.json +158 -73
- package/dist/http.js +1 -0
- package/dist/http.mjs +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/rpc.js +1 -0
- package/dist/rpc.mjs +1 -0
- package/dist/shared.js +1 -0
- package/dist/shared.mjs +1 -0
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +3 -3
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/error/getErrorShape.js +1 -0
- package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +1 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.js +1 -0
- package/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +1 -0
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +2 -4
- package/dist/unstable-core-do-not-import/initTRPC.mjs +2 -4
- package/dist/unstable-core-do-not-import/procedure.d.ts +8 -7
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +9 -21
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +5 -6
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +6 -7
- package/dist/unstable-core-do-not-import/router.d.ts +3 -3
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.d.ts +5 -0
- package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.js +9 -0
- package/dist/unstable-core-do-not-import/utils.mjs +9 -1
- package/dist/unstable-core-do-not-import.js +1 -0
- package/dist/unstable-core-do-not-import.mjs +1 -1
- package/package.json +8 -3
- package/src/adapters/next-app-dir/formDataToObject.ts +36 -0
- package/src/adapters/next-app-dir/nextAppDirCaller.ts +129 -0
- package/src/adapters/next-app-dir/notFound.ts +12 -0
- package/src/adapters/next-app-dir/redirect.ts +30 -0
- package/src/adapters/next-app-dir/rethrowNextErrors.ts +25 -0
- package/src/adapters/next-app-dir.ts +3 -0
- package/src/unstable-core-do-not-import/clientish/inference.ts +9 -5
- package/src/unstable-core-do-not-import/initTRPC.ts +2 -6
- package/src/unstable-core-do-not-import/procedure.ts +10 -17
- package/src/unstable-core-do-not-import/procedureBuilder.ts +34 -49
- package/src/unstable-core-do-not-import/router.ts +4 -3
- package/src/unstable-core-do-not-import/utils.ts +12 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
|
+
import '../unstable-core-do-not-import/utils.mjs';
|
|
2
3
|
import { toURL } from '../unstable-core-do-not-import/http/toURL.mjs';
|
|
3
4
|
import '../unstable-core-do-not-import/rootConfig.mjs';
|
|
4
5
|
import { nodeHTTPRequestHandler } from './node-http/nodeHTTPRequestHandler.mjs';
|
package/dist/adapters/ws.js
CHANGED
|
@@ -5,6 +5,7 @@ var TRPCError = require('../unstable-core-do-not-import/error/TRPCError.js');
|
|
|
5
5
|
var parseTRPCMessage = require('../unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
6
6
|
var router = require('../unstable-core-do-not-import/router.js');
|
|
7
7
|
var transformer = require('../unstable-core-do-not-import/transformer.js');
|
|
8
|
+
require('../unstable-core-do-not-import/utils.js');
|
|
8
9
|
require('../unstable-core-do-not-import/rootConfig.js');
|
|
9
10
|
var observable = require('../observable/observable.js');
|
|
10
11
|
|
package/dist/adapters/ws.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { TRPCError, getTRPCErrorFromUnknown } from '../unstable-core-do-not-impo
|
|
|
3
3
|
import { parseTRPCMessage } from '../unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
|
|
4
4
|
import { callProcedure } from '../unstable-core-do-not-import/router.mjs';
|
|
5
5
|
import { transformTRPCResponse } from '../unstable-core-do-not-import/transformer.mjs';
|
|
6
|
+
import '../unstable-core-do-not-import/utils.mjs';
|
|
6
7
|
import '../unstable-core-do-not-import/rootConfig.mjs';
|
|
7
8
|
import { isObservable } from '../observable/observable.mjs';
|
|
8
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction":
|
|
2
|
+
"bundleSize": 98633,
|
|
3
|
+
"bundleOrigSize": 157790,
|
|
4
|
+
"bundleReduction": 37.49,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependents": [
|
|
16
16
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
17
17
|
],
|
|
18
|
-
"percent": 10.
|
|
18
|
+
"percent": 10.31,
|
|
19
19
|
"reduction": 0
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
],
|
|
28
28
|
"removedExports": [],
|
|
29
29
|
"dependents": [],
|
|
30
|
-
"percent":
|
|
30
|
+
"percent": 9.61,
|
|
31
31
|
"reduction": 20.86
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
35
|
-
"size":
|
|
36
|
-
"origSize":
|
|
35
|
+
"size": 6399,
|
|
36
|
+
"origSize": 15701,
|
|
37
37
|
"renderedExports": [
|
|
38
38
|
"unsetMarker",
|
|
39
39
|
"createBuilder"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"/src/unstable-core-do-not-import.ts",
|
|
44
44
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
45
45
|
],
|
|
46
|
-
"percent": 6.
|
|
47
|
-
"reduction": 59.
|
|
46
|
+
"percent": 6.49,
|
|
47
|
+
"reduction": 59.24
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
51
51
|
"size": 5831,
|
|
52
|
-
"origSize":
|
|
52
|
+
"origSize": 10003,
|
|
53
53
|
"renderedExports": [
|
|
54
54
|
"createRouterFactory",
|
|
55
55
|
"callProcedure",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
63
63
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
64
64
|
],
|
|
65
|
-
"percent":
|
|
66
|
-
"reduction": 41.
|
|
65
|
+
"percent": 5.91,
|
|
66
|
+
"reduction": 41.71
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dependents": [
|
|
79
79
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
80
80
|
],
|
|
81
|
-
"percent": 5.
|
|
81
|
+
"percent": 5.05,
|
|
82
82
|
"reduction": 38
|
|
83
83
|
},
|
|
84
84
|
{
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
],
|
|
93
93
|
"removedExports": [],
|
|
94
94
|
"dependents": [],
|
|
95
|
-
"percent": 4.
|
|
95
|
+
"percent": 4.48,
|
|
96
96
|
"reduction": 32.71
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"dependents": [
|
|
107
107
|
"/src/adapters/node-http/index.ts"
|
|
108
108
|
],
|
|
109
|
-
"percent":
|
|
109
|
+
"percent": 3.99,
|
|
110
110
|
"reduction": 13.56
|
|
111
111
|
},
|
|
112
112
|
{
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"dependents": [
|
|
121
121
|
"/src/adapters/fetch/index.ts"
|
|
122
122
|
],
|
|
123
|
-
"percent": 3.
|
|
123
|
+
"percent": 3.52,
|
|
124
124
|
"reduction": 9.9
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"dependents": [
|
|
140
140
|
"/src/adapters/aws-lambda/index.ts"
|
|
141
141
|
],
|
|
142
|
-
"percent": 3.
|
|
142
|
+
"percent": 3.35,
|
|
143
143
|
"reduction": 34.98
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -156,22 +156,22 @@
|
|
|
156
156
|
"/src/observable/index.ts",
|
|
157
157
|
"/src/observable/operators.ts"
|
|
158
158
|
],
|
|
159
|
-
"percent": 3.
|
|
159
|
+
"percent": 3.17,
|
|
160
160
|
"reduction": 0.67
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
"id": "/src/
|
|
164
|
-
"size":
|
|
165
|
-
"origSize":
|
|
163
|
+
"id": "/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
164
|
+
"size": 3050,
|
|
165
|
+
"origSize": 3903,
|
|
166
166
|
"renderedExports": [
|
|
167
|
-
"
|
|
167
|
+
"nextAppDirCaller"
|
|
168
168
|
],
|
|
169
169
|
"removedExports": [],
|
|
170
170
|
"dependents": [
|
|
171
|
-
"/src/
|
|
171
|
+
"/src/adapters/next-app-dir.ts"
|
|
172
172
|
],
|
|
173
|
-
"percent": 3.
|
|
174
|
-
"reduction":
|
|
173
|
+
"percent": 3.09,
|
|
174
|
+
"reduction": 21.85
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"id": "/src/observable/operators.ts",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"dependents": [
|
|
187
187
|
"/src/observable/index.ts"
|
|
188
188
|
],
|
|
189
|
-
"percent": 2.
|
|
189
|
+
"percent": 2.79,
|
|
190
190
|
"reduction": 0
|
|
191
191
|
},
|
|
192
192
|
{
|
|
@@ -206,9 +206,23 @@
|
|
|
206
206
|
"/src/unstable-core-do-not-import/router.ts",
|
|
207
207
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
208
208
|
],
|
|
209
|
-
"percent": 2.
|
|
209
|
+
"percent": 2.78,
|
|
210
210
|
"reduction": 45.94
|
|
211
211
|
},
|
|
212
|
+
{
|
|
213
|
+
"id": "/src/unstable-core-do-not-import/initTRPC.ts",
|
|
214
|
+
"size": 2665,
|
|
215
|
+
"origSize": 4540,
|
|
216
|
+
"renderedExports": [
|
|
217
|
+
"initTRPC"
|
|
218
|
+
],
|
|
219
|
+
"removedExports": [],
|
|
220
|
+
"dependents": [
|
|
221
|
+
"/src/unstable-core-do-not-import.ts"
|
|
222
|
+
],
|
|
223
|
+
"percent": 2.7,
|
|
224
|
+
"reduction": 41.3
|
|
225
|
+
},
|
|
212
226
|
{
|
|
213
227
|
"id": "/src/unstable-core-do-not-import/middleware.ts",
|
|
214
228
|
"size": 2627,
|
|
@@ -226,7 +240,7 @@
|
|
|
226
240
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
227
241
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
228
242
|
],
|
|
229
|
-
"percent": 2.
|
|
243
|
+
"percent": 2.66,
|
|
230
244
|
"reduction": 55.5
|
|
231
245
|
},
|
|
232
246
|
{
|
|
@@ -241,7 +255,7 @@
|
|
|
241
255
|
"/src/adapters/fastify/index.ts",
|
|
242
256
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
243
257
|
],
|
|
244
|
-
"percent": 2.
|
|
258
|
+
"percent": 2.51,
|
|
245
259
|
"reduction": 36.53
|
|
246
260
|
},
|
|
247
261
|
{
|
|
@@ -253,7 +267,7 @@
|
|
|
253
267
|
],
|
|
254
268
|
"removedExports": [],
|
|
255
269
|
"dependents": [],
|
|
256
|
-
"percent": 2.
|
|
270
|
+
"percent": 2.48,
|
|
257
271
|
"reduction": 32.42
|
|
258
272
|
},
|
|
259
273
|
{
|
|
@@ -274,7 +288,7 @@
|
|
|
274
288
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
275
289
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
276
290
|
],
|
|
277
|
-
"percent": 1.
|
|
291
|
+
"percent": 1.76,
|
|
278
292
|
"reduction": 19.47
|
|
279
293
|
},
|
|
280
294
|
{
|
|
@@ -288,7 +302,7 @@
|
|
|
288
302
|
"dependents": [
|
|
289
303
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
290
304
|
],
|
|
291
|
-
"percent": 1.
|
|
305
|
+
"percent": 1.66,
|
|
292
306
|
"reduction": 34.79
|
|
293
307
|
},
|
|
294
308
|
{
|
|
@@ -300,7 +314,7 @@
|
|
|
300
314
|
],
|
|
301
315
|
"removedExports": [],
|
|
302
316
|
"dependents": [],
|
|
303
|
-
"percent": 1.
|
|
317
|
+
"percent": 1.62,
|
|
304
318
|
"reduction": 29.12
|
|
305
319
|
},
|
|
306
320
|
{
|
|
@@ -314,7 +328,7 @@
|
|
|
314
328
|
"dependents": [
|
|
315
329
|
"/src/adapters/node-http/content-type/json/index.ts"
|
|
316
330
|
],
|
|
317
|
-
"percent": 1.
|
|
331
|
+
"percent": 1.61,
|
|
318
332
|
"reduction": 0.19
|
|
319
333
|
},
|
|
320
334
|
{
|
|
@@ -326,7 +340,7 @@
|
|
|
326
340
|
],
|
|
327
341
|
"removedExports": [],
|
|
328
342
|
"dependents": [],
|
|
329
|
-
"percent": 1.
|
|
343
|
+
"percent": 1.6,
|
|
330
344
|
"reduction": 21.04
|
|
331
345
|
},
|
|
332
346
|
{
|
|
@@ -339,7 +353,7 @@
|
|
|
339
353
|
],
|
|
340
354
|
"removedExports": [],
|
|
341
355
|
"dependents": [],
|
|
342
|
-
"percent": 1.
|
|
356
|
+
"percent": 1.55,
|
|
343
357
|
"reduction": 27.6
|
|
344
358
|
},
|
|
345
359
|
{
|
|
@@ -353,10 +367,10 @@
|
|
|
353
367
|
"removedExports": [],
|
|
354
368
|
"dependents": [
|
|
355
369
|
"/src/unstable-core-do-not-import.ts",
|
|
356
|
-
"/src/unstable-core-do-not-import/
|
|
357
|
-
"/src/unstable-core-do-not-import/
|
|
370
|
+
"/src/unstable-core-do-not-import/utils.ts",
|
|
371
|
+
"/src/unstable-core-do-not-import/router.ts"
|
|
358
372
|
],
|
|
359
|
-
"percent": 1.
|
|
373
|
+
"percent": 1.53,
|
|
360
374
|
"reduction": 5.58
|
|
361
375
|
},
|
|
362
376
|
{
|
|
@@ -370,7 +384,7 @@
|
|
|
370
384
|
"dependents": [
|
|
371
385
|
"/src/adapters/fastify/index.ts"
|
|
372
386
|
],
|
|
373
|
-
"percent": 1.
|
|
387
|
+
"percent": 1.51,
|
|
374
388
|
"reduction": 34.33
|
|
375
389
|
},
|
|
376
390
|
{
|
|
@@ -384,7 +398,7 @@
|
|
|
384
398
|
"dependents": [
|
|
385
399
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
|
|
386
400
|
],
|
|
387
|
-
"percent": 1.
|
|
401
|
+
"percent": 1.41,
|
|
388
402
|
"reduction": 0
|
|
389
403
|
},
|
|
390
404
|
{
|
|
@@ -400,9 +414,34 @@
|
|
|
400
414
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
401
415
|
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
402
416
|
],
|
|
403
|
-
"percent": 1.
|
|
417
|
+
"percent": 1.28,
|
|
404
418
|
"reduction": 22.76
|
|
405
419
|
},
|
|
420
|
+
{
|
|
421
|
+
"id": "/src/unstable-core-do-not-import/utils.ts",
|
|
422
|
+
"size": 1094,
|
|
423
|
+
"origSize": 1425,
|
|
424
|
+
"renderedExports": [
|
|
425
|
+
"mergeWithoutOverrides",
|
|
426
|
+
"isObject",
|
|
427
|
+
"isFunction",
|
|
428
|
+
"omitPrototype",
|
|
429
|
+
"$typesProxy"
|
|
430
|
+
],
|
|
431
|
+
"removedExports": [],
|
|
432
|
+
"dependents": [
|
|
433
|
+
"/src/unstable-core-do-not-import.ts",
|
|
434
|
+
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
435
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
436
|
+
"/src/unstable-core-do-not-import/transformer.ts",
|
|
437
|
+
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
438
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
439
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
440
|
+
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
441
|
+
],
|
|
442
|
+
"percent": 1.11,
|
|
443
|
+
"reduction": 23.23
|
|
444
|
+
},
|
|
406
445
|
{
|
|
407
446
|
"id": "/src/unstable-core-do-not-import/parser.ts",
|
|
408
447
|
"size": 992,
|
|
@@ -415,31 +454,39 @@
|
|
|
415
454
|
"/src/unstable-core-do-not-import.ts",
|
|
416
455
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
417
456
|
],
|
|
418
|
-
"percent": 1.
|
|
457
|
+
"percent": 1.01,
|
|
419
458
|
"reduction": 56.22
|
|
420
459
|
},
|
|
421
460
|
{
|
|
422
|
-
"id": "/src/
|
|
423
|
-
"size":
|
|
424
|
-
"origSize":
|
|
461
|
+
"id": "/src/adapters/next-app-dir/redirect.ts",
|
|
462
|
+
"size": 987,
|
|
463
|
+
"origSize": 1143,
|
|
425
464
|
"renderedExports": [
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"isFunction",
|
|
429
|
-
"omitPrototype"
|
|
465
|
+
"TRPCRedirectError",
|
|
466
|
+
"redirect"
|
|
430
467
|
],
|
|
431
468
|
"removedExports": [],
|
|
432
469
|
"dependents": [
|
|
433
|
-
"/src/
|
|
434
|
-
"/src/
|
|
435
|
-
"/src/
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
470
|
+
"/src/adapters/next-app-dir.ts",
|
|
471
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
472
|
+
"/src/adapters/next-app-dir/rethrowNextErrors.ts"
|
|
473
|
+
],
|
|
474
|
+
"percent": 1,
|
|
475
|
+
"reduction": 13.65
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"id": "/src/adapters/next-app-dir/formDataToObject.ts",
|
|
479
|
+
"size": 818,
|
|
480
|
+
"origSize": 826,
|
|
481
|
+
"renderedExports": [
|
|
482
|
+
"formDataToObject"
|
|
440
483
|
],
|
|
441
|
-
"
|
|
442
|
-
"
|
|
484
|
+
"removedExports": [],
|
|
485
|
+
"dependents": [
|
|
486
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
487
|
+
],
|
|
488
|
+
"percent": 0.83,
|
|
489
|
+
"reduction": 0.97
|
|
443
490
|
},
|
|
444
491
|
{
|
|
445
492
|
"id": "/src/adapters/node-http/content-type/form-data/uploadHandler.ts",
|
|
@@ -458,7 +505,7 @@
|
|
|
458
505
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
459
506
|
"/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
|
|
460
507
|
],
|
|
461
|
-
"percent": 0.
|
|
508
|
+
"percent": 0.74,
|
|
462
509
|
"reduction": 67.52
|
|
463
510
|
},
|
|
464
511
|
{
|
|
@@ -472,7 +519,7 @@
|
|
|
472
519
|
"dependents": [
|
|
473
520
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
474
521
|
],
|
|
475
|
-
"percent": 0.
|
|
522
|
+
"percent": 0.71,
|
|
476
523
|
"reduction": 71.21
|
|
477
524
|
},
|
|
478
525
|
{
|
|
@@ -484,7 +531,7 @@
|
|
|
484
531
|
],
|
|
485
532
|
"removedExports": [],
|
|
486
533
|
"dependents": [],
|
|
487
|
-
"percent": 0.
|
|
534
|
+
"percent": 0.68,
|
|
488
535
|
"reduction": 0.6
|
|
489
536
|
},
|
|
490
537
|
{
|
|
@@ -499,7 +546,7 @@
|
|
|
499
546
|
"/src/unstable-core-do-not-import.ts",
|
|
500
547
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
501
548
|
],
|
|
502
|
-
"percent": 0.
|
|
549
|
+
"percent": 0.63,
|
|
503
550
|
"reduction": 43.49
|
|
504
551
|
},
|
|
505
552
|
{
|
|
@@ -512,9 +559,23 @@
|
|
|
512
559
|
],
|
|
513
560
|
"removedExports": [],
|
|
514
561
|
"dependents": [],
|
|
515
|
-
"percent": 0.
|
|
562
|
+
"percent": 0.59,
|
|
516
563
|
"reduction": 65.23
|
|
517
564
|
},
|
|
565
|
+
{
|
|
566
|
+
"id": "/src/adapters/next-app-dir/rethrowNextErrors.ts",
|
|
567
|
+
"size": 422,
|
|
568
|
+
"origSize": 704,
|
|
569
|
+
"renderedExports": [
|
|
570
|
+
"rethrowNextErrors"
|
|
571
|
+
],
|
|
572
|
+
"removedExports": [],
|
|
573
|
+
"dependents": [
|
|
574
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
575
|
+
],
|
|
576
|
+
"percent": 0.43,
|
|
577
|
+
"reduction": 40.06
|
|
578
|
+
},
|
|
518
579
|
{
|
|
519
580
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
520
581
|
"size": 343,
|
|
@@ -527,7 +588,7 @@
|
|
|
527
588
|
"/src/unstable-core-do-not-import.ts",
|
|
528
589
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
529
590
|
],
|
|
530
|
-
"percent": 0.
|
|
591
|
+
"percent": 0.35,
|
|
531
592
|
"reduction": 83.97
|
|
532
593
|
},
|
|
533
594
|
{
|
|
@@ -539,7 +600,7 @@
|
|
|
539
600
|
],
|
|
540
601
|
"removedExports": [],
|
|
541
602
|
"dependents": [],
|
|
542
|
-
"percent": 0.
|
|
603
|
+
"percent": 0.34,
|
|
543
604
|
"reduction": 71.37
|
|
544
605
|
},
|
|
545
606
|
{
|
|
@@ -553,7 +614,7 @@
|
|
|
553
614
|
"dependents": [
|
|
554
615
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
555
616
|
],
|
|
556
|
-
"percent": 0.
|
|
617
|
+
"percent": 0.3,
|
|
557
618
|
"reduction": 35.11
|
|
558
619
|
},
|
|
559
620
|
{
|
|
@@ -567,9 +628,23 @@
|
|
|
567
628
|
"dependents": [
|
|
568
629
|
"/src/unstable-core-do-not-import.ts"
|
|
569
630
|
],
|
|
570
|
-
"percent": 0.
|
|
631
|
+
"percent": 0.22,
|
|
571
632
|
"reduction": 94.55
|
|
572
633
|
},
|
|
634
|
+
{
|
|
635
|
+
"id": "/src/adapters/next-app-dir/notFound.ts",
|
|
636
|
+
"size": 218,
|
|
637
|
+
"origSize": 342,
|
|
638
|
+
"renderedExports": [
|
|
639
|
+
"notFound"
|
|
640
|
+
],
|
|
641
|
+
"removedExports": [],
|
|
642
|
+
"dependents": [
|
|
643
|
+
"/src/adapters/next-app-dir.ts"
|
|
644
|
+
],
|
|
645
|
+
"percent": 0.22,
|
|
646
|
+
"reduction": 36.26
|
|
647
|
+
},
|
|
573
648
|
{
|
|
574
649
|
"id": "/src/unstable-core-do-not-import/http/toURL.ts",
|
|
575
650
|
"size": 158,
|
|
@@ -579,7 +654,7 @@
|
|
|
579
654
|
],
|
|
580
655
|
"removedExports": [],
|
|
581
656
|
"dependents": [],
|
|
582
|
-
"percent": 0.
|
|
657
|
+
"percent": 0.16,
|
|
583
658
|
"reduction": 14.13
|
|
584
659
|
},
|
|
585
660
|
{
|
|
@@ -600,7 +675,7 @@
|
|
|
600
675
|
{
|
|
601
676
|
"id": "/src/unstable-core-do-not-import/procedure.ts",
|
|
602
677
|
"size": 75,
|
|
603
|
-
"origSize":
|
|
678
|
+
"origSize": 2301,
|
|
604
679
|
"renderedExports": [
|
|
605
680
|
"procedureTypes"
|
|
606
681
|
],
|
|
@@ -610,7 +685,7 @@
|
|
|
610
685
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
|
|
611
686
|
],
|
|
612
687
|
"percent": 0.08,
|
|
613
|
-
"reduction": 96.
|
|
688
|
+
"reduction": 96.74
|
|
614
689
|
},
|
|
615
690
|
{
|
|
616
691
|
"id": "/src/unstable-core-do-not-import/error/formatter.ts",
|
|
@@ -625,7 +700,7 @@
|
|
|
625
700
|
"/src/unstable-core-do-not-import/router.ts",
|
|
626
701
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
627
702
|
],
|
|
628
|
-
"percent": 0.
|
|
703
|
+
"percent": 0.06,
|
|
629
704
|
"reduction": 93.8
|
|
630
705
|
},
|
|
631
706
|
{
|
|
@@ -678,6 +753,16 @@
|
|
|
678
753
|
"percent": 0,
|
|
679
754
|
"reduction": 100
|
|
680
755
|
},
|
|
756
|
+
{
|
|
757
|
+
"id": "/src/adapters/next-app-dir.ts",
|
|
758
|
+
"size": 0,
|
|
759
|
+
"origSize": 255,
|
|
760
|
+
"renderedExports": [],
|
|
761
|
+
"removedExports": [],
|
|
762
|
+
"dependents": [],
|
|
763
|
+
"percent": 0,
|
|
764
|
+
"reduction": 100
|
|
765
|
+
},
|
|
681
766
|
{
|
|
682
767
|
"id": "/src/observable/index.ts",
|
|
683
768
|
"size": 0,
|
|
@@ -725,5 +810,5 @@
|
|
|
725
810
|
"reduction": 100
|
|
726
811
|
}
|
|
727
812
|
],
|
|
728
|
-
"moduleCount":
|
|
813
|
+
"moduleCount": 56
|
|
729
814
|
}
|
package/dist/http.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var getHTTPStatusCode = require('./unstable-core-do-not-import/http/getHTTPStatusCode.js');
|
|
4
|
+
require('./unstable-core-do-not-import/utils.js');
|
|
4
5
|
var resolveHTTPResponse = require('./unstable-core-do-not-import/http/resolveHTTPResponse.js');
|
|
5
6
|
var batchStreamFormatter = require('./unstable-core-do-not-import/http/batchStreamFormatter.js');
|
|
6
7
|
var contentType = require('./unstable-core-do-not-import/http/contentType.js');
|
package/dist/http.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { getHTTPStatusCode, getHTTPStatusCodeFromError } from './unstable-core-do-not-import/http/getHTTPStatusCode.mjs';
|
|
2
|
+
import './unstable-core-do-not-import/utils.mjs';
|
|
2
3
|
export { resolveHTTPResponse } from './unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
3
4
|
export { getBatchStreamFormatter } from './unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
4
5
|
export { getJsonContentTypeInputs } from './unstable-core-do-not-import/http/contentType.mjs';
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var createProxy = require('./unstable-core-do-not-import/createProxy.js');
|
|
4
4
|
var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
5
|
var TRPCError = require('./unstable-core-do-not-import/error/TRPCError.js');
|
|
6
|
+
require('./unstable-core-do-not-import/utils.js');
|
|
6
7
|
var router = require('./unstable-core-do-not-import/router.js');
|
|
7
8
|
var transformer = require('./unstable-core-do-not-import/transformer.js');
|
|
8
9
|
var initTRPC = require('./unstable-core-do-not-import/initTRPC.js');
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createFlatProxy as createTRPCFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
|
|
2
2
|
export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
3
3
|
export { TRPCError, getTRPCErrorFromUnknown } from './unstable-core-do-not-import/error/TRPCError.mjs';
|
|
4
|
+
import './unstable-core-do-not-import/utils.mjs';
|
|
4
5
|
export { callProcedure, callProcedure as callTRPCProcedure } from './unstable-core-do-not-import/router.mjs';
|
|
5
6
|
export { transformTRPCResponse } from './unstable-core-do-not-import/transformer.mjs';
|
|
6
7
|
export { initTRPC } from './unstable-core-do-not-import/initTRPC.mjs';
|
package/dist/rpc.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var codes = require('./unstable-core-do-not-import/rpc/codes.js');
|
|
4
4
|
var parseTRPCMessage = require('./unstable-core-do-not-import/rpc/parseTRPCMessage.js');
|
|
5
|
+
require('./unstable-core-do-not-import/utils.js');
|
|
5
6
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
6
7
|
|
|
7
8
|
|
package/dist/rpc.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { TRPC_ERROR_CODES_BY_KEY, TRPC_ERROR_CODES_BY_NUMBER } from './unstable-core-do-not-import/rpc/codes.mjs';
|
|
2
2
|
export { parseTRPCMessage } from './unstable-core-do-not-import/rpc/parseTRPCMessage.mjs';
|
|
3
|
+
import './unstable-core-do-not-import/utils.mjs';
|
|
3
4
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
package/dist/shared.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var createProxy = require('./unstable-core-do-not-import/createProxy.js');
|
|
4
4
|
var getErrorShape = require('./unstable-core-do-not-import/error/getErrorShape.js');
|
|
5
|
+
require('./unstable-core-do-not-import/utils.js');
|
|
5
6
|
require('./unstable-core-do-not-import/rootConfig.js');
|
|
6
7
|
|
|
7
8
|
|
package/dist/shared.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { createFlatProxy } from './unstable-core-do-not-import/createProxy.mjs';
|
|
2
2
|
export { getErrorShape } from './unstable-core-do-not-import/error/getErrorShape.mjs';
|
|
3
|
+
import './unstable-core-do-not-import/utils.mjs';
|
|
3
4
|
import './unstable-core-do-not-import/rootConfig.mjs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { inferObservableValue } from '../../observable';
|
|
2
|
-
import type { AnyProcedure, inferProcedureInput } from '../procedure';
|
|
2
|
+
import type { AnyProcedure, inferProcedureInput, inferProcedureOutput } from '../procedure';
|
|
3
3
|
import type { AnyRouter, RouterRecord } from '../router';
|
|
4
4
|
import type { AnyClientTypes, inferClientTypes, InferrableClientTypes } from './inferrable';
|
|
5
5
|
import type { Serialize } from './serialize';
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
|
-
export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<TProcedure
|
|
9
|
+
export type inferTransformedProcedureOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferProcedureOutput<TProcedure>> : inferProcedureOutput<TProcedure>;
|
|
10
10
|
/** @internal */
|
|
11
|
-
export type inferTransformedSubscriptionOutput<TInferrable extends InferrableClientTypes, TProcedure extends AnyProcedure> = inferClientTypes<TInferrable>['transformer'] extends false ? Serialize<inferObservableValue<TProcedure
|
|
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> = {
|
|
13
13
|
[TKey in keyof TRecord]: TRecord[TKey] extends infer $Value ? $Value extends RouterRecord ? GetInferenceHelpers<TType, TRoot, $Value> : $Value extends AnyProcedure ? TType extends 'input' ? inferProcedureInput<$Value> : inferTransformedProcedureOutput<TRoot, $Value> : never : never;
|
|
14
14
|
};
|
|
@@ -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,
|
|
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,CAAC,CAAC,aAAa,CAAC,SAAS,KAAK,GAC1D,SAAS,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,GACjE,oBAAoB,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC;AAE3D,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,OAAO,GAAG,QAAQ,EAChC,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,YAAY,IAC1B;KACD,IAAI,IAAI,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,GACvD,MAAM,SAAS,YAAY,GACzB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,GACzC,MAAM,SAAS,YAAY,GAC3B,KAAK,SAAS,OAAO,GACnB,mBAAmB,CAAC,MAAM,CAAC,GAC3B,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,GAChD,KAAK,GACP,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IAAI,mBAAmB,CAC5E,OAAO,EACP,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,mBAAmB,CAC7E,QAAQ,EACR,OAAO,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACpC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAC1B,CAAC"}
|