@trpc/server 11.0.0-next-beta.206 → 11.0.0-next-beta.216
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/index.js +14 -105
- package/dist/adapters/aws-lambda/index.mjs +1 -90
- package/dist/adapters/aws-lambda/utils.js +100 -0
- package/dist/adapters/aws-lambda/utils.mjs +93 -0
- package/dist/adapters/express.js +1 -7
- package/dist/adapters/express.mjs +1 -5
- package/dist/adapters/fastify/fastifyRequestHandler.js +81 -0
- package/dist/adapters/fastify/fastifyRequestHandler.mjs +79 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.js +51 -0
- package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +49 -0
- package/dist/adapters/fastify/index.js +4 -128
- package/dist/adapters/fastify/index.mjs +2 -128
- package/dist/adapters/fetch/fetchRequestHandler.js +118 -0
- package/dist/adapters/fetch/fetchRequestHandler.mjs +116 -0
- package/dist/adapters/fetch/index.js +2 -115
- package/dist/adapters/fetch/index.mjs +1 -116
- package/dist/adapters/next.js +1 -6
- package/dist/adapters/next.mjs +1 -4
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.js +161 -0
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.mjs +157 -0
- package/dist/adapters/node-http/content-type/form-data/index.js +20 -646
- package/dist/adapters/node-http/content-type/form-data/index.mjs +9 -631
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.js +29 -0
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.mjs +27 -0
- package/dist/adapters/node-http/content-type/form-data/streamSlice.js +46 -0
- package/dist/adapters/node-http/content-type/form-data/streamSlice.mjs +44 -0
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.js +30 -0
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.mjs +26 -0
- package/dist/adapters/node-http/content-type/json/getPostBody.js +42 -0
- package/dist/adapters/node-http/content-type/json/getPostBody.mjs +40 -0
- package/dist/adapters/node-http/content-type/json/index.js +3 -42
- package/dist/adapters/node-http/content-type/json/index.mjs +2 -39
- package/dist/adapters/node-http/index.js +1 -7
- package/dist/adapters/node-http/index.mjs +1 -5
- package/dist/{contentType-72ed9df5.mjs → adapters/node-http/internals/contentType.mjs} +1 -1
- package/dist/{nodeHTTPRequestHandler-83441c73.js → adapters/node-http/nodeHTTPRequestHandler.js} +2 -2
- package/dist/{nodeHTTPRequestHandler-0223fac5.mjs → adapters/node-http/nodeHTTPRequestHandler.mjs} +2 -2
- package/dist/adapters/standalone.js +2 -12
- package/dist/adapters/standalone.mjs +1 -5
- package/dist/adapters/ws.js +0 -2
- package/dist/bundle-analysis.json +97 -97
- package/dist/http.js +1 -3
- package/dist/index.js +10 -12
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js +203 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.mjs +201 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js +167 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.mjs +163 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.js +35 -0
- package/dist/node_modules/.pnpm/@web3-storage_multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.mjs +30 -0
- package/dist/observable.js +1 -3
- package/dist/rpc.js +1 -3
- package/dist/shared.js +2 -4
- package/package.json +4 -4
- package/dist/contentType-24c44bba.js +0 -5
- package/dist/nodeHTTPRequestHandler-aa0dce4e.js +0 -105
- /package/dist/{contentType-d9d22104.js → adapters/node-http/internals/contentType.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
2
|
+
"bundleSize": 54718,
|
|
3
3
|
"bundleOrigSize": 76085,
|
|
4
|
-
"bundleReduction": 28.
|
|
4
|
+
"bundleReduction": 28.08,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/adapters/ws.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"dependents": [
|
|
15
15
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
16
16
|
],
|
|
17
|
-
"percent": 17.
|
|
17
|
+
"percent": 17.8,
|
|
18
18
|
"reduction": 0
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js",
|
|
22
|
-
"size":
|
|
22
|
+
"size": 6004,
|
|
23
23
|
"origSize": 6352,
|
|
24
24
|
"renderedExports": [
|
|
25
25
|
"streamMultipart"
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"dependents": [
|
|
31
31
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
32
32
|
],
|
|
33
|
-
"percent": 10.
|
|
34
|
-
"reduction":
|
|
33
|
+
"percent": 10.97,
|
|
34
|
+
"reduction": 5.48
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"id": "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
38
|
-
"size":
|
|
38
|
+
"size": 4977,
|
|
39
39
|
"origSize": 7871,
|
|
40
40
|
"renderedExports": [
|
|
41
41
|
"readableStreamToString",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"dependents": [
|
|
47
47
|
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
48
48
|
],
|
|
49
|
-
"percent": 9.
|
|
50
|
-
"reduction":
|
|
49
|
+
"percent": 9.1,
|
|
50
|
+
"reduction": 36.77
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js",
|
|
54
|
-
"size":
|
|
54
|
+
"size": 4459,
|
|
55
55
|
"origSize": 6918,
|
|
56
56
|
"renderedExports": [
|
|
57
57
|
"MATCH",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"dependents": [
|
|
71
71
|
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js"
|
|
72
72
|
],
|
|
73
|
-
"percent": 8.
|
|
74
|
-
"reduction": 35.
|
|
73
|
+
"percent": 8.15,
|
|
74
|
+
"reduction": 35.54
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"id": "/src/adapters/node-http/content-type/form-data/index.ts",
|
|
78
|
-
"size":
|
|
78
|
+
"size": 4410,
|
|
79
79
|
"origSize": 6716,
|
|
80
80
|
"renderedExports": [
|
|
81
81
|
"nodeHTTPFormDataContentTypeHandler",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
],
|
|
85
85
|
"removedExports": [],
|
|
86
86
|
"dependents": [],
|
|
87
|
-
"percent":
|
|
88
|
-
"reduction":
|
|
87
|
+
"percent": 8.06,
|
|
88
|
+
"reduction": 34.34
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
92
|
-
"size":
|
|
92
|
+
"size": 3942,
|
|
93
93
|
"origSize": 4513,
|
|
94
94
|
"renderedExports": [
|
|
95
95
|
"nodeHTTPRequestHandler"
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"dependents": [
|
|
99
99
|
"/src/adapters/node-http/index.ts"
|
|
100
100
|
],
|
|
101
|
-
"percent": 7.
|
|
102
|
-
"reduction":
|
|
101
|
+
"percent": 7.2,
|
|
102
|
+
"reduction": 12.65
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"id": "/src/adapters/fetch/fetchRequestHandler.ts",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"dependents": [
|
|
113
113
|
"/src/adapters/fetch/index.ts"
|
|
114
114
|
],
|
|
115
|
-
"percent": 6.
|
|
115
|
+
"percent": 6.5,
|
|
116
116
|
"reduction": 9.4
|
|
117
117
|
},
|
|
118
118
|
{
|
|
@@ -131,9 +131,21 @@
|
|
|
131
131
|
"dependents": [
|
|
132
132
|
"/src/adapters/aws-lambda/index.ts"
|
|
133
133
|
],
|
|
134
|
-
"percent": 6.
|
|
134
|
+
"percent": 6.1,
|
|
135
135
|
"reduction": 36.24
|
|
136
136
|
},
|
|
137
|
+
{
|
|
138
|
+
"id": "/src/adapters/aws-lambda/index.ts",
|
|
139
|
+
"size": 2559,
|
|
140
|
+
"origSize": 3714,
|
|
141
|
+
"renderedExports": [
|
|
142
|
+
"awsLambdaRequestHandler"
|
|
143
|
+
],
|
|
144
|
+
"removedExports": [],
|
|
145
|
+
"dependents": [],
|
|
146
|
+
"percent": 4.68,
|
|
147
|
+
"reduction": 31.1
|
|
148
|
+
},
|
|
137
149
|
{
|
|
138
150
|
"id": "/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
139
151
|
"size": 2559,
|
|
@@ -143,24 +155,12 @@
|
|
|
143
155
|
],
|
|
144
156
|
"removedExports": [],
|
|
145
157
|
"dependents": [
|
|
146
|
-
"/src/adapters/fastify/
|
|
147
|
-
"/src/adapters/fastify/
|
|
158
|
+
"/src/adapters/fastify/index.ts",
|
|
159
|
+
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
148
160
|
],
|
|
149
|
-
"percent": 4.
|
|
161
|
+
"percent": 4.68,
|
|
150
162
|
"reduction": 36.23
|
|
151
163
|
},
|
|
152
|
-
{
|
|
153
|
-
"id": "/src/adapters/aws-lambda/index.ts",
|
|
154
|
-
"size": 2517,
|
|
155
|
-
"origSize": 3714,
|
|
156
|
-
"renderedExports": [
|
|
157
|
-
"awsLambdaRequestHandler"
|
|
158
|
-
],
|
|
159
|
-
"removedExports": [],
|
|
160
|
-
"dependents": [],
|
|
161
|
-
"percent": 4.62,
|
|
162
|
-
"reduction": 32.23
|
|
163
|
-
},
|
|
164
164
|
{
|
|
165
165
|
"id": "/src/adapters/next.ts",
|
|
166
166
|
"size": 1627,
|
|
@@ -170,12 +170,12 @@
|
|
|
170
170
|
],
|
|
171
171
|
"removedExports": [],
|
|
172
172
|
"dependents": [],
|
|
173
|
-
"percent": 2.
|
|
173
|
+
"percent": 2.97,
|
|
174
174
|
"reduction": 24.71
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
|
|
178
|
-
"size":
|
|
178
|
+
"size": 1569,
|
|
179
179
|
"origSize": 2317,
|
|
180
180
|
"renderedExports": [
|
|
181
181
|
"fastifyTRPCPlugin"
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
"dependents": [
|
|
185
185
|
"/src/adapters/fastify/index.ts"
|
|
186
186
|
],
|
|
187
|
-
"percent": 2.
|
|
188
|
-
"reduction": 32.
|
|
187
|
+
"percent": 2.87,
|
|
188
|
+
"reduction": 32.28
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
"id": "/src/adapters/node-http/content-type/form-data/streamSlice.ts",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"dependents": [
|
|
199
199
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"
|
|
200
200
|
],
|
|
201
|
-
"percent": 2.
|
|
201
|
+
"percent": 2.55,
|
|
202
202
|
"reduction": 0
|
|
203
203
|
},
|
|
204
204
|
{
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"dependents": [
|
|
213
213
|
"/src/adapters/node-http/content-type/json/index.ts"
|
|
214
214
|
],
|
|
215
|
-
"percent": 2.
|
|
215
|
+
"percent": 2.03,
|
|
216
216
|
"reduction": 2.2
|
|
217
217
|
},
|
|
218
218
|
{
|
|
@@ -228,13 +228,27 @@
|
|
|
228
228
|
"createMemoryUploadHandler"
|
|
229
229
|
],
|
|
230
230
|
"dependents": [
|
|
231
|
+
"/src/adapters/node-http/content-type/form-data/index.ts",
|
|
231
232
|
"/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
|
|
232
|
-
"/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
|
|
233
|
-
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
233
|
+
"/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
|
|
234
234
|
],
|
|
235
235
|
"percent": 1.33,
|
|
236
236
|
"reduction": 67.52
|
|
237
237
|
},
|
|
238
|
+
{
|
|
239
|
+
"id": "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts",
|
|
240
|
+
"size": 699,
|
|
241
|
+
"origSize": 2428,
|
|
242
|
+
"renderedExports": [
|
|
243
|
+
"createMemoryUploadHandler"
|
|
244
|
+
],
|
|
245
|
+
"removedExports": [],
|
|
246
|
+
"dependents": [
|
|
247
|
+
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
248
|
+
],
|
|
249
|
+
"percent": 1.28,
|
|
250
|
+
"reduction": 71.21
|
|
251
|
+
},
|
|
238
252
|
{
|
|
239
253
|
"id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/utils.js",
|
|
240
254
|
"size": 694,
|
|
@@ -247,29 +261,15 @@
|
|
|
247
261
|
],
|
|
248
262
|
"removedExports": [],
|
|
249
263
|
"dependents": [
|
|
250
|
-
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/
|
|
251
|
-
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/
|
|
264
|
+
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/index.js",
|
|
265
|
+
"/home/runner/work/trpc/trpc/node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js"
|
|
252
266
|
],
|
|
253
267
|
"percent": 1.27,
|
|
254
268
|
"reduction": 3.88
|
|
255
269
|
},
|
|
256
|
-
{
|
|
257
|
-
"id": "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts",
|
|
258
|
-
"size": 685,
|
|
259
|
-
"origSize": 2428,
|
|
260
|
-
"renderedExports": [
|
|
261
|
-
"createMemoryUploadHandler"
|
|
262
|
-
],
|
|
263
|
-
"removedExports": [],
|
|
264
|
-
"dependents": [
|
|
265
|
-
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
266
|
-
],
|
|
267
|
-
"percent": 1.26,
|
|
268
|
-
"reduction": 71.79
|
|
269
|
-
},
|
|
270
270
|
{
|
|
271
271
|
"id": "/src/adapters/standalone.ts",
|
|
272
|
-
"size":
|
|
272
|
+
"size": 616,
|
|
273
273
|
"origSize": 1704,
|
|
274
274
|
"renderedExports": [
|
|
275
275
|
"createHTTPHandler",
|
|
@@ -277,8 +277,8 @@
|
|
|
277
277
|
],
|
|
278
278
|
"removedExports": [],
|
|
279
279
|
"dependents": [],
|
|
280
|
-
"percent": 1.
|
|
281
|
-
"reduction":
|
|
280
|
+
"percent": 1.13,
|
|
281
|
+
"reduction": 63.85
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"id": "/src/adapters/express.ts",
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
"id": "/src/adapters/node-http/content-type/json/index.ts",
|
|
297
|
-
"size":
|
|
297
|
+
"size": 283,
|
|
298
298
|
"origSize": 437,
|
|
299
299
|
"renderedExports": [
|
|
300
300
|
"nodeHTTPJSONContentTypeHandler"
|
|
@@ -303,8 +303,8 @@
|
|
|
303
303
|
"dependents": [
|
|
304
304
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
305
305
|
],
|
|
306
|
-
"percent": 0.
|
|
307
|
-
"reduction":
|
|
306
|
+
"percent": 0.52,
|
|
307
|
+
"reduction": 35.24
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"id": "/src/adapters/node-http/internals/contentType.ts",
|
|
@@ -315,26 +315,32 @@
|
|
|
315
315
|
],
|
|
316
316
|
"removedExports": [],
|
|
317
317
|
"dependents": [
|
|
318
|
-
"/src/adapters/node-http/content-type/
|
|
319
|
-
"/src/adapters/node-http/content-type/
|
|
318
|
+
"/src/adapters/node-http/content-type/form-data/index.ts",
|
|
319
|
+
"/src/adapters/node-http/content-type/json/index.ts"
|
|
320
320
|
],
|
|
321
321
|
"percent": 0.21,
|
|
322
322
|
"reduction": 86.68
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
|
-
"id": "/src/
|
|
325
|
+
"id": "/src/http.ts",
|
|
326
326
|
"size": 0,
|
|
327
|
-
"origSize":
|
|
327
|
+
"origSize": 37,
|
|
328
328
|
"renderedExports": [],
|
|
329
329
|
"removedExports": [],
|
|
330
|
-
"dependents": [
|
|
330
|
+
"dependents": [
|
|
331
|
+
"/src/adapters/aws-lambda/index.ts",
|
|
332
|
+
"/src/adapters/node-http/content-type/json/index.ts",
|
|
333
|
+
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
334
|
+
"/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
335
|
+
"/src/adapters/fetch/fetchRequestHandler.ts"
|
|
336
|
+
],
|
|
331
337
|
"percent": 0,
|
|
332
338
|
"reduction": 100
|
|
333
339
|
},
|
|
334
340
|
{
|
|
335
|
-
"id": "/src/
|
|
341
|
+
"id": "/src/index.ts",
|
|
336
342
|
"size": 0,
|
|
337
|
-
"origSize":
|
|
343
|
+
"origSize": 32,
|
|
338
344
|
"renderedExports": [],
|
|
339
345
|
"removedExports": [],
|
|
340
346
|
"dependents": [],
|
|
@@ -342,39 +348,29 @@
|
|
|
342
348
|
"reduction": 100
|
|
343
349
|
},
|
|
344
350
|
{
|
|
345
|
-
"id": "/src/
|
|
351
|
+
"id": "/src/observable.ts",
|
|
346
352
|
"size": 0,
|
|
347
|
-
"origSize":
|
|
353
|
+
"origSize": 39,
|
|
348
354
|
"renderedExports": [],
|
|
349
355
|
"removedExports": [],
|
|
350
|
-
"dependents": [
|
|
351
|
-
"/src/adapters/express.ts",
|
|
352
|
-
"/src/adapters/next.ts",
|
|
353
|
-
"/src/adapters/standalone.ts"
|
|
354
|
-
],
|
|
356
|
+
"dependents": [],
|
|
355
357
|
"percent": 0,
|
|
356
358
|
"reduction": 100
|
|
357
359
|
},
|
|
358
360
|
{
|
|
359
|
-
"id": "/src/
|
|
361
|
+
"id": "/src/rpc.ts",
|
|
360
362
|
"size": 0,
|
|
361
|
-
"origSize":
|
|
363
|
+
"origSize": 105,
|
|
362
364
|
"renderedExports": [],
|
|
363
365
|
"removedExports": [],
|
|
364
|
-
"dependents": [
|
|
365
|
-
"/src/adapters/aws-lambda/index.ts",
|
|
366
|
-
"/src/adapters/node-http/content-type/json/index.ts",
|
|
367
|
-
"/src/adapters/fastify/fastifyRequestHandler.ts",
|
|
368
|
-
"/src/adapters/fetch/fetchRequestHandler.ts",
|
|
369
|
-
"/src/adapters/node-http/nodeHTTPRequestHandler.ts"
|
|
370
|
-
],
|
|
366
|
+
"dependents": [],
|
|
371
367
|
"percent": 0,
|
|
372
368
|
"reduction": 100
|
|
373
369
|
},
|
|
374
370
|
{
|
|
375
|
-
"id": "/src/
|
|
371
|
+
"id": "/src/shared.ts",
|
|
376
372
|
"size": 0,
|
|
377
|
-
"origSize":
|
|
373
|
+
"origSize": 653,
|
|
378
374
|
"renderedExports": [],
|
|
379
375
|
"removedExports": [],
|
|
380
376
|
"dependents": [],
|
|
@@ -382,9 +378,9 @@
|
|
|
382
378
|
"reduction": 100
|
|
383
379
|
},
|
|
384
380
|
{
|
|
385
|
-
"id": "/src/
|
|
381
|
+
"id": "/src/adapters/fastify/index.ts",
|
|
386
382
|
"size": 0,
|
|
387
|
-
"origSize":
|
|
383
|
+
"origSize": 78,
|
|
388
384
|
"renderedExports": [],
|
|
389
385
|
"removedExports": [],
|
|
390
386
|
"dependents": [],
|
|
@@ -392,9 +388,9 @@
|
|
|
392
388
|
"reduction": 100
|
|
393
389
|
},
|
|
394
390
|
{
|
|
395
|
-
"id": "/src/
|
|
391
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
396
392
|
"size": 0,
|
|
397
|
-
"origSize":
|
|
393
|
+
"origSize": 64,
|
|
398
394
|
"renderedExports": [],
|
|
399
395
|
"removedExports": [],
|
|
400
396
|
"dependents": [],
|
|
@@ -402,12 +398,16 @@
|
|
|
402
398
|
"reduction": 100
|
|
403
399
|
},
|
|
404
400
|
{
|
|
405
|
-
"id": "/src/
|
|
401
|
+
"id": "/src/adapters/node-http/index.ts",
|
|
406
402
|
"size": 0,
|
|
407
|
-
"origSize":
|
|
403
|
+
"origSize": 67,
|
|
408
404
|
"renderedExports": [],
|
|
409
405
|
"removedExports": [],
|
|
410
|
-
"dependents": [
|
|
406
|
+
"dependents": [
|
|
407
|
+
"/src/adapters/express.ts",
|
|
408
|
+
"/src/adapters/next.ts",
|
|
409
|
+
"/src/adapters/standalone.ts"
|
|
410
|
+
],
|
|
411
411
|
"percent": 0,
|
|
412
412
|
"reduction": 100
|
|
413
413
|
}
|
package/dist/http.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var http = require('@trpc/core/http');
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
|
|
9
7
|
Object.keys(http).forEach(function (k) {
|
|
10
|
-
if (k !== 'default' && !
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
9
|
enumerable: true,
|
|
12
10
|
get: function () { return http[k]; }
|
|
13
11
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var core = require('@trpc/core');
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
|
|
9
|
-
Object.defineProperty(exports,
|
|
7
|
+
Object.defineProperty(exports, "TRPCError", {
|
|
10
8
|
enumerable: true,
|
|
11
9
|
get: function () { return core.TRPCError; }
|
|
12
10
|
});
|
|
13
|
-
Object.defineProperty(exports,
|
|
11
|
+
Object.defineProperty(exports, "callProcedure", {
|
|
14
12
|
enumerable: true,
|
|
15
13
|
get: function () { return core.callProcedure; }
|
|
16
14
|
});
|
|
17
|
-
Object.defineProperty(exports,
|
|
15
|
+
Object.defineProperty(exports, "callTRPCProcedure", {
|
|
18
16
|
enumerable: true,
|
|
19
17
|
get: function () { return core.callProcedure; }
|
|
20
18
|
});
|
|
21
|
-
Object.defineProperty(exports,
|
|
19
|
+
Object.defineProperty(exports, "createTRPCFlatProxy", {
|
|
22
20
|
enumerable: true,
|
|
23
21
|
get: function () { return core.createFlatProxy; }
|
|
24
22
|
});
|
|
25
|
-
Object.defineProperty(exports,
|
|
23
|
+
Object.defineProperty(exports, "experimental_standaloneMiddleware", {
|
|
26
24
|
enumerable: true,
|
|
27
25
|
get: function () { return core.experimental_standaloneMiddleware; }
|
|
28
26
|
});
|
|
29
|
-
Object.defineProperty(exports,
|
|
27
|
+
Object.defineProperty(exports, "experimental_trpcMiddleware", {
|
|
30
28
|
enumerable: true,
|
|
31
29
|
get: function () { return core.experimental_standaloneMiddleware; }
|
|
32
30
|
});
|
|
33
|
-
Object.defineProperty(exports,
|
|
31
|
+
Object.defineProperty(exports, "getErrorShape", {
|
|
34
32
|
enumerable: true,
|
|
35
33
|
get: function () { return core.getErrorShape; }
|
|
36
34
|
});
|
|
37
|
-
Object.defineProperty(exports,
|
|
35
|
+
Object.defineProperty(exports, "getTRPCErrorFromUnknown", {
|
|
38
36
|
enumerable: true,
|
|
39
37
|
get: function () { return core.getTRPCErrorFromUnknown; }
|
|
40
38
|
});
|
|
41
|
-
Object.defineProperty(exports,
|
|
39
|
+
Object.defineProperty(exports, "initTRPC", {
|
|
42
40
|
enumerable: true,
|
|
43
41
|
get: function () { return core.initTRPC; }
|
|
44
42
|
});
|
|
45
|
-
Object.defineProperty(exports,
|
|
43
|
+
Object.defineProperty(exports, "transformTRPCResponse", {
|
|
46
44
|
enumerable: true,
|
|
47
45
|
get: function () { return core.transformTRPCResponse; }
|
|
48
46
|
});
|