@trpc/server 11.0.0-alpha-tmp-issues-5557-types-node-wut.324 → 11.0.0-alpha-tmp-04-02-no-typesProxy.331
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/fastify/fastifyTRPCPlugin.js +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +1 -1
- 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 +178 -92
- 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/http/index.d.ts +5 -1
- package/dist/unstable-core-do-not-import/http/index.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/types.d.ts +7 -10
- package/dist/unstable-core-do-not-import/http/types.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.d.ts +3 -3
- 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 +23 -5
- package/dist/unstable-core-do-not-import/procedure.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +36 -15
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +28 -3
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +29 -4
- package/dist/unstable-core-do-not-import/router.d.ts +12 -6
- package/dist/unstable-core-do-not-import/router.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/router.js +18 -23
- package/dist/unstable-core-do-not-import/router.mjs +20 -25
- package/dist/unstable-core-do-not-import/utils.d.ts +8 -0
- package/dist/unstable-core-do-not-import/utils.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/utils.js +16 -0
- package/dist/unstable-core-do-not-import/utils.mjs +15 -1
- package/dist/unstable-core-do-not-import.js +2 -0
- package/dist/unstable-core-do-not-import.mjs +1 -1
- package/package.json +10 -5
- package/src/adapters/fastify/fastifyTRPCPlugin.ts +1 -1
- 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/http/index.ts +5 -1
- package/src/unstable-core-do-not-import/http/types.ts +9 -10
- package/src/unstable-core-do-not-import/initTRPC.ts +2 -6
- package/src/unstable-core-do-not-import/procedure.ts +27 -7
- package/src/unstable-core-do-not-import/procedureBuilder.ts +106 -27
- package/src/unstable-core-do-not-import/router.ts +49 -35
- package/src/unstable-core-do-not-import/utils.ts +20 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../../unstable-core-do-not-import/utils.mjs';
|
|
1
2
|
import { resolveHTTPResponse } from '../../unstable-core-do-not-import/http/resolveHTTPResponse.mjs';
|
|
2
3
|
import { getBatchStreamFormatter } from '../../unstable-core-do-not-import/http/batchStreamFormatter.mjs';
|
|
3
4
|
import '../../unstable-core-do-not-import/rootConfig.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var http = require('node:http');
|
|
4
|
+
require('../unstable-core-do-not-import/utils.js');
|
|
4
5
|
var toURL = require('../unstable-core-do-not-import/http/toURL.js');
|
|
5
6
|
require('../unstable-core-do-not-import/rootConfig.js');
|
|
6
7
|
var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
|
|
@@ -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": 37.
|
|
2
|
+
"bundleSize": 98691,
|
|
3
|
+
"bundleOrigSize": 157933,
|
|
4
|
+
"bundleReduction": 37.51,
|
|
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.3,
|
|
19
19
|
"reduction": 0
|
|
20
20
|
},
|
|
21
21
|
{
|
|
@@ -27,43 +27,43 @@
|
|
|
27
27
|
],
|
|
28
28
|
"removedExports": [],
|
|
29
29
|
"dependents": [],
|
|
30
|
-
"percent":
|
|
30
|
+
"percent": 9.6,
|
|
31
31
|
"reduction": 20.86
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"id": "/src/unstable-core-do-not-import/
|
|
35
|
-
"size":
|
|
36
|
-
"origSize":
|
|
34
|
+
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
35
|
+
"size": 6399,
|
|
36
|
+
"origSize": 15701,
|
|
37
37
|
"renderedExports": [
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"createCallerFactory",
|
|
41
|
-
"mergeRouters"
|
|
38
|
+
"unsetMarker",
|
|
39
|
+
"createBuilder"
|
|
42
40
|
],
|
|
43
41
|
"removedExports": [],
|
|
44
42
|
"dependents": [
|
|
45
43
|
"/src/unstable-core-do-not-import.ts",
|
|
46
|
-
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts",
|
|
47
44
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
48
45
|
],
|
|
49
|
-
"percent": 6.
|
|
50
|
-
"reduction":
|
|
46
|
+
"percent": 6.48,
|
|
47
|
+
"reduction": 59.24
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
|
-
"id": "/src/unstable-core-do-not-import/
|
|
54
|
-
"size":
|
|
55
|
-
"origSize":
|
|
50
|
+
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
51
|
+
"size": 5831,
|
|
52
|
+
"origSize": 10003,
|
|
56
53
|
"renderedExports": [
|
|
57
|
-
"
|
|
58
|
-
"
|
|
54
|
+
"createRouterFactory",
|
|
55
|
+
"callProcedure",
|
|
56
|
+
"createCallerFactory",
|
|
57
|
+
"mergeRouters"
|
|
59
58
|
],
|
|
60
59
|
"removedExports": [],
|
|
61
60
|
"dependents": [
|
|
62
61
|
"/src/unstable-core-do-not-import.ts",
|
|
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":
|
|
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.04,
|
|
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.51,
|
|
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.54,
|
|
343
357
|
"reduction": 27.6
|
|
344
358
|
},
|
|
345
359
|
{
|
|
@@ -353,16 +367,16 @@
|
|
|
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
|
{
|
|
363
377
|
"id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
|
|
364
|
-
"size":
|
|
365
|
-
"origSize":
|
|
378
|
+
"size": 1481,
|
|
379
|
+
"origSize": 2259,
|
|
366
380
|
"renderedExports": [
|
|
367
381
|
"fastifyTRPCPlugin"
|
|
368
382
|
],
|
|
@@ -370,8 +384,8 @@
|
|
|
370
384
|
"dependents": [
|
|
371
385
|
"/src/adapters/fastify/index.ts"
|
|
372
386
|
],
|
|
373
|
-
"percent": 1.
|
|
374
|
-
"reduction": 34.
|
|
387
|
+
"percent": 1.5,
|
|
388
|
+
"reduction": 34.44
|
|
375
389
|
},
|
|
376
390
|
{
|
|
377
391
|
"id": "/src/adapters/node-http/content-type/form-data/streamSlice.ts",
|
|
@@ -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": 1157,
|
|
423
|
+
"origSize": 1480,
|
|
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.17,
|
|
443
|
+
"reduction": 21.82
|
|
444
|
+
},
|
|
406
445
|
{
|
|
407
446
|
"id": "/src/unstable-core-do-not-import/parser.ts",
|
|
408
447
|
"size": 992,
|
|
@@ -415,30 +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
|
-
"omitPrototype"
|
|
465
|
+
"TRPCRedirectError",
|
|
466
|
+
"redirect"
|
|
429
467
|
],
|
|
430
468
|
"removedExports": [],
|
|
431
469
|
"dependents": [
|
|
432
|
-
"/src/
|
|
433
|
-
"/src/
|
|
434
|
-
"/src/
|
|
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/middleware.ts",
|
|
438
|
-
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
470
|
+
"/src/adapters/next-app-dir.ts",
|
|
471
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts",
|
|
472
|
+
"/src/adapters/next-app-dir/rethrowNextErrors.ts"
|
|
439
473
|
],
|
|
440
|
-
"percent":
|
|
441
|
-
"reduction":
|
|
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"
|
|
483
|
+
],
|
|
484
|
+
"removedExports": [],
|
|
485
|
+
"dependents": [
|
|
486
|
+
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
487
|
+
],
|
|
488
|
+
"percent": 0.83,
|
|
489
|
+
"reduction": 0.97
|
|
442
490
|
},
|
|
443
491
|
{
|
|
444
492
|
"id": "/src/adapters/node-http/content-type/form-data/uploadHandler.ts",
|
|
@@ -457,7 +505,7 @@
|
|
|
457
505
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
458
506
|
"/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
|
|
459
507
|
],
|
|
460
|
-
"percent": 0.
|
|
508
|
+
"percent": 0.74,
|
|
461
509
|
"reduction": 67.52
|
|
462
510
|
},
|
|
463
511
|
{
|
|
@@ -471,7 +519,7 @@
|
|
|
471
519
|
"dependents": [
|
|
472
520
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
473
521
|
],
|
|
474
|
-
"percent": 0.
|
|
522
|
+
"percent": 0.71,
|
|
475
523
|
"reduction": 71.21
|
|
476
524
|
},
|
|
477
525
|
{
|
|
@@ -483,7 +531,7 @@
|
|
|
483
531
|
],
|
|
484
532
|
"removedExports": [],
|
|
485
533
|
"dependents": [],
|
|
486
|
-
"percent": 0.
|
|
534
|
+
"percent": 0.68,
|
|
487
535
|
"reduction": 0.6
|
|
488
536
|
},
|
|
489
537
|
{
|
|
@@ -498,7 +546,7 @@
|
|
|
498
546
|
"/src/unstable-core-do-not-import.ts",
|
|
499
547
|
"/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
|
|
500
548
|
],
|
|
501
|
-
"percent": 0.
|
|
549
|
+
"percent": 0.63,
|
|
502
550
|
"reduction": 43.49
|
|
503
551
|
},
|
|
504
552
|
{
|
|
@@ -511,9 +559,23 @@
|
|
|
511
559
|
],
|
|
512
560
|
"removedExports": [],
|
|
513
561
|
"dependents": [],
|
|
514
|
-
"percent": 0.
|
|
562
|
+
"percent": 0.59,
|
|
515
563
|
"reduction": 65.23
|
|
516
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
|
+
},
|
|
517
579
|
{
|
|
518
580
|
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
519
581
|
"size": 343,
|
|
@@ -526,7 +588,7 @@
|
|
|
526
588
|
"/src/unstable-core-do-not-import.ts",
|
|
527
589
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
528
590
|
],
|
|
529
|
-
"percent": 0.
|
|
591
|
+
"percent": 0.35,
|
|
530
592
|
"reduction": 83.97
|
|
531
593
|
},
|
|
532
594
|
{
|
|
@@ -538,7 +600,7 @@
|
|
|
538
600
|
],
|
|
539
601
|
"removedExports": [],
|
|
540
602
|
"dependents": [],
|
|
541
|
-
"percent": 0.
|
|
603
|
+
"percent": 0.34,
|
|
542
604
|
"reduction": 71.37
|
|
543
605
|
},
|
|
544
606
|
{
|
|
@@ -552,7 +614,7 @@
|
|
|
552
614
|
"dependents": [
|
|
553
615
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
554
616
|
],
|
|
555
|
-
"percent": 0.
|
|
617
|
+
"percent": 0.3,
|
|
556
618
|
"reduction": 35.11
|
|
557
619
|
},
|
|
558
620
|
{
|
|
@@ -566,9 +628,23 @@
|
|
|
566
628
|
"dependents": [
|
|
567
629
|
"/src/unstable-core-do-not-import.ts"
|
|
568
630
|
],
|
|
569
|
-
"percent": 0.
|
|
631
|
+
"percent": 0.22,
|
|
570
632
|
"reduction": 94.55
|
|
571
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
|
+
},
|
|
572
648
|
{
|
|
573
649
|
"id": "/src/unstable-core-do-not-import/http/toURL.ts",
|
|
574
650
|
"size": 158,
|
|
@@ -578,7 +654,7 @@
|
|
|
578
654
|
],
|
|
579
655
|
"removedExports": [],
|
|
580
656
|
"dependents": [],
|
|
581
|
-
"percent": 0.
|
|
657
|
+
"percent": 0.16,
|
|
582
658
|
"reduction": 14.13
|
|
583
659
|
},
|
|
584
660
|
{
|
|
@@ -590,16 +666,16 @@
|
|
|
590
666
|
],
|
|
591
667
|
"removedExports": [],
|
|
592
668
|
"dependents": [
|
|
593
|
-
"/src/adapters/node-http/content-type/
|
|
594
|
-
"/src/adapters/node-http/content-type/
|
|
669
|
+
"/src/adapters/node-http/content-type/form-data/index.ts",
|
|
670
|
+
"/src/adapters/node-http/content-type/json/index.ts"
|
|
595
671
|
],
|
|
596
|
-
"percent": 0.
|
|
672
|
+
"percent": 0.12,
|
|
597
673
|
"reduction": 86.68
|
|
598
674
|
},
|
|
599
675
|
{
|
|
600
676
|
"id": "/src/unstable-core-do-not-import/procedure.ts",
|
|
601
677
|
"size": 75,
|
|
602
|
-
"origSize":
|
|
678
|
+
"origSize": 2393,
|
|
603
679
|
"renderedExports": [
|
|
604
680
|
"procedureTypes"
|
|
605
681
|
],
|
|
@@ -609,7 +685,7 @@
|
|
|
609
685
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts"
|
|
610
686
|
],
|
|
611
687
|
"percent": 0.08,
|
|
612
|
-
"reduction": 96.
|
|
688
|
+
"reduction": 96.87
|
|
613
689
|
},
|
|
614
690
|
{
|
|
615
691
|
"id": "/src/unstable-core-do-not-import/error/formatter.ts",
|
|
@@ -624,7 +700,7 @@
|
|
|
624
700
|
"/src/unstable-core-do-not-import/router.ts",
|
|
625
701
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
626
702
|
],
|
|
627
|
-
"percent": 0.
|
|
703
|
+
"percent": 0.06,
|
|
628
704
|
"reduction": 93.8
|
|
629
705
|
},
|
|
630
706
|
{
|
|
@@ -638,9 +714,9 @@
|
|
|
638
714
|
"reduction": 100
|
|
639
715
|
},
|
|
640
716
|
{
|
|
641
|
-
"id": "/src/
|
|
717
|
+
"id": "/src/index.ts",
|
|
642
718
|
"size": 0,
|
|
643
|
-
"origSize":
|
|
719
|
+
"origSize": 32,
|
|
644
720
|
"renderedExports": [],
|
|
645
721
|
"removedExports": [],
|
|
646
722
|
"dependents": [],
|
|
@@ -648,9 +724,9 @@
|
|
|
648
724
|
"reduction": 100
|
|
649
725
|
},
|
|
650
726
|
{
|
|
651
|
-
"id": "/src/
|
|
727
|
+
"id": "/src/rpc.ts",
|
|
652
728
|
"size": 0,
|
|
653
|
-
"origSize":
|
|
729
|
+
"origSize": 36,
|
|
654
730
|
"renderedExports": [],
|
|
655
731
|
"removedExports": [],
|
|
656
732
|
"dependents": [],
|
|
@@ -677,6 +753,16 @@
|
|
|
677
753
|
"percent": 0,
|
|
678
754
|
"reduction": 100
|
|
679
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
|
+
},
|
|
680
766
|
{
|
|
681
767
|
"id": "/src/observable/index.ts",
|
|
682
768
|
"size": 0,
|
|
@@ -724,5 +810,5 @@
|
|
|
724
810
|
"reduction": 100
|
|
725
811
|
}
|
|
726
812
|
],
|
|
727
|
-
"moduleCount":
|
|
813
|
+
"moduleCount": 56
|
|
728
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';
|