@trpc/server 11.0.0-rc.621 → 11.0.0-rc.630

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.
Files changed (72) hide show
  1. package/dist/adapters/aws-lambda/getPlanner.js +2 -2
  2. package/dist/adapters/aws-lambda/getPlanner.mjs +2 -2
  3. package/dist/adapters/aws-lambda/index.js +1 -0
  4. package/dist/adapters/aws-lambda/index.mjs +1 -0
  5. package/dist/adapters/express.js +1 -0
  6. package/dist/adapters/express.mjs +1 -0
  7. package/dist/adapters/fastify/fastifyRequestHandler.js +1 -0
  8. package/dist/adapters/fastify/fastifyRequestHandler.mjs +1 -0
  9. package/dist/adapters/fastify/fastifyTRPCPlugin.js +1 -1
  10. package/dist/adapters/fastify/fastifyTRPCPlugin.mjs +1 -1
  11. package/dist/adapters/fetch/fetchRequestHandler.js +7 -6
  12. package/dist/adapters/fetch/fetchRequestHandler.mjs +7 -6
  13. package/dist/adapters/next-app-dir/nextAppDirCaller.js +5 -4
  14. package/dist/adapters/next-app-dir/nextAppDirCaller.mjs +5 -4
  15. package/dist/adapters/next-app-dir/notFound.js +1 -0
  16. package/dist/adapters/next-app-dir/notFound.mjs +1 -0
  17. package/dist/adapters/next-app-dir/redirect.js +3 -1
  18. package/dist/adapters/next-app-dir/redirect.mjs +3 -1
  19. package/dist/adapters/next-app-dir/rethrowNextErrors.js +1 -1
  20. package/dist/adapters/next-app-dir/rethrowNextErrors.mjs +1 -1
  21. package/dist/adapters/next.js +1 -0
  22. package/dist/adapters/next.mjs +1 -0
  23. package/dist/adapters/node-http/incomingMessageToRequest.js +1 -0
  24. package/dist/adapters/node-http/incomingMessageToRequest.mjs +1 -0
  25. package/dist/adapters/node-http/nodeHTTPRequestHandler.js +5 -4
  26. package/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +5 -4
  27. package/dist/adapters/standalone.js +1 -0
  28. package/dist/adapters/standalone.mjs +1 -0
  29. package/dist/adapters/ws.js +9 -9
  30. package/dist/adapters/ws.mjs +9 -9
  31. package/dist/bundle-analysis.json +114 -97
  32. package/dist/http.js +1 -0
  33. package/dist/http.mjs +1 -0
  34. package/dist/index.js +1 -0
  35. package/dist/index.mjs +1 -0
  36. package/dist/node_modules/.pnpm/@swc_helpers@0.5.13/node_modules/@swc/helpers/esm/_define_property.js +11 -0
  37. package/dist/node_modules/.pnpm/@swc_helpers@0.5.13/node_modules/@swc/helpers/esm/_define_property.mjs +9 -0
  38. package/dist/observable/observable.js +1 -1
  39. package/dist/observable/observable.mjs +1 -1
  40. package/dist/rpc.js +1 -0
  41. package/dist/rpc.mjs +1 -0
  42. package/dist/shared.js +1 -0
  43. package/dist/shared.mjs +1 -0
  44. package/dist/unstable-core-do-not-import/createProxy.js +1 -1
  45. package/dist/unstable-core-do-not-import/createProxy.mjs +1 -1
  46. package/dist/unstable-core-do-not-import/error/TRPCError.js +4 -1
  47. package/dist/unstable-core-do-not-import/error/TRPCError.mjs +4 -1
  48. package/dist/unstable-core-do-not-import/error/formatter.js +1 -1
  49. package/dist/unstable-core-do-not-import/error/formatter.mjs +1 -1
  50. package/dist/unstable-core-do-not-import/error/getErrorShape.js +2 -2
  51. package/dist/unstable-core-do-not-import/error/getErrorShape.mjs +2 -2
  52. package/dist/unstable-core-do-not-import/http/contentType.js +3 -3
  53. package/dist/unstable-core-do-not-import/http/contentType.mjs +3 -3
  54. package/dist/unstable-core-do-not-import/http/resolveResponse.js +24 -24
  55. package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +24 -24
  56. package/dist/unstable-core-do-not-import/middleware.js +1 -1
  57. package/dist/unstable-core-do-not-import/middleware.mjs +1 -1
  58. package/dist/unstable-core-do-not-import/procedureBuilder.js +1 -1
  59. package/dist/unstable-core-do-not-import/procedureBuilder.mjs +1 -1
  60. package/dist/unstable-core-do-not-import/router.js +2 -2
  61. package/dist/unstable-core-do-not-import/router.mjs +2 -2
  62. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.js +2 -2
  63. package/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +2 -2
  64. package/dist/unstable-core-do-not-import/stream/jsonl.js +14 -15
  65. package/dist/unstable-core-do-not-import/stream/jsonl.mjs +14 -15
  66. package/dist/unstable-core-do-not-import/stream/sse.js +2 -2
  67. package/dist/unstable-core-do-not-import/stream/sse.mjs +2 -2
  68. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.js +1 -1
  69. package/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +1 -1
  70. package/dist/vendor/unpromise/unpromise.js +21 -16
  71. package/dist/vendor/unpromise/unpromise.mjs +21 -16
  72. package/package.json +11 -4
@@ -1,11 +1,11 @@
1
1
  {
2
- "bundleSize": 164478,
3
- "bundleOrigSize": 215018,
4
- "bundleReduction": 23.51,
2
+ "bundleSize": 165180,
3
+ "bundleOrigSize": 215280,
4
+ "bundleReduction": 23.27,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/unstable-core-do-not-import/http/resolveResponse.ts",
8
- "size": 21648,
8
+ "size": 21597,
9
9
  "origSize": 19889,
10
10
  "renderedExports": [
11
11
  "resolveResponse"
@@ -14,12 +14,12 @@
14
14
  "dependents": [
15
15
  "/src/unstable-core-do-not-import.ts"
16
16
  ],
17
- "percent": 13.16,
17
+ "percent": 13.07,
18
18
  "reduction": 0
19
19
  },
20
20
  {
21
21
  "id": "/src/unstable-core-do-not-import/stream/jsonl.ts",
22
- "size": 17591,
22
+ "size": 17645,
23
23
  "origSize": 18521,
24
24
  "renderedExports": [
25
25
  "isPromise",
@@ -31,12 +31,12 @@
31
31
  "/src/unstable-core-do-not-import.ts",
32
32
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
33
33
  ],
34
- "percent": 10.7,
35
- "reduction": 5.02
34
+ "percent": 10.68,
35
+ "reduction": 4.73
36
36
  },
37
37
  {
38
38
  "id": "/src/adapters/ws.ts",
39
- "size": 16791,
39
+ "size": 16774,
40
40
  "origSize": 15828,
41
41
  "renderedExports": [
42
42
  "getWSConnectionHandler",
@@ -47,12 +47,12 @@
47
47
  "dependents": [
48
48
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
49
49
  ],
50
- "percent": 10.21,
50
+ "percent": 10.15,
51
51
  "reduction": 0
52
52
  },
53
53
  {
54
54
  "id": "/src/vendor/unpromise/unpromise.ts",
55
- "size": 11627,
55
+ "size": 11807,
56
56
  "origSize": 13751,
57
57
  "renderedExports": [
58
58
  "Unpromise",
@@ -60,12 +60,12 @@
60
60
  ],
61
61
  "removedExports": [],
62
62
  "dependents": [],
63
- "percent": 7.07,
64
- "reduction": 15.45
63
+ "percent": 7.15,
64
+ "reduction": 14.14
65
65
  },
66
66
  {
67
67
  "id": "/src/unstable-core-do-not-import/http/contentType.ts",
68
- "size": 7688,
68
+ "size": 7685,
69
69
  "origSize": 7608,
70
70
  "renderedExports": [
71
71
  "getRequestInfo"
@@ -75,7 +75,7 @@
75
75
  "/src/unstable-core-do-not-import.ts",
76
76
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
77
77
  ],
78
- "percent": 4.67,
78
+ "percent": 4.65,
79
79
  "reduction": 0
80
80
  },
81
81
  {
@@ -92,12 +92,12 @@
92
92
  "/src/unstable-core-do-not-import.ts",
93
93
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
94
94
  ],
95
- "percent": 4.46,
95
+ "percent": 4.44,
96
96
  "reduction": 24.97
97
97
  },
98
98
  {
99
99
  "id": "/src/unstable-core-do-not-import/router.ts",
100
- "size": 6421,
100
+ "size": 6417,
101
101
  "origSize": 10675,
102
102
  "renderedExports": [
103
103
  "createRouterFactory",
@@ -110,12 +110,12 @@
110
110
  "/src/unstable-core-do-not-import.ts",
111
111
  "/src/unstable-core-do-not-import/initTRPC.ts"
112
112
  ],
113
- "percent": 3.9,
114
- "reduction": 39.85
113
+ "percent": 3.88,
114
+ "reduction": 39.89
115
115
  },
116
116
  {
117
117
  "id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
118
- "size": 5795,
118
+ "size": 5793,
119
119
  "origSize": 16537,
120
120
  "renderedExports": [
121
121
  "createBuilder"
@@ -125,12 +125,12 @@
125
125
  "/src/unstable-core-do-not-import.ts",
126
126
  "/src/unstable-core-do-not-import/initTRPC.ts"
127
127
  ],
128
- "percent": 3.52,
129
- "reduction": 64.96
128
+ "percent": 3.51,
129
+ "reduction": 64.97
130
130
  },
131
131
  {
132
132
  "id": "/src/adapters/aws-lambda/getPlanner.ts",
133
- "size": 5418,
133
+ "size": 5414,
134
134
  "origSize": 6118,
135
135
  "renderedExports": [
136
136
  "getPlanner"
@@ -139,12 +139,12 @@
139
139
  "dependents": [
140
140
  "/src/adapters/aws-lambda/index.ts"
141
141
  ],
142
- "percent": 3.29,
143
- "reduction": 11.44
142
+ "percent": 3.28,
143
+ "reduction": 11.51
144
144
  },
145
145
  {
146
146
  "id": "/src/observable/observable.ts",
147
- "size": 4478,
147
+ "size": 4477,
148
148
  "origSize": 4352,
149
149
  "renderedExports": [
150
150
  "isObservable",
@@ -159,12 +159,12 @@
159
159
  "/src/observable/operators.ts",
160
160
  "/src/observable/behaviorSubject.ts"
161
161
  ],
162
- "percent": 2.72,
162
+ "percent": 2.71,
163
163
  "reduction": 0
164
164
  },
165
165
  {
166
166
  "id": "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
167
- "size": 4465,
167
+ "size": 4451,
168
168
  "origSize": 4579,
169
169
  "renderedExports": [
170
170
  "internal_exceptionHandler",
@@ -174,8 +174,8 @@
174
174
  "dependents": [
175
175
  "/src/adapters/node-http/index.ts"
176
176
  ],
177
- "percent": 2.71,
178
- "reduction": 2.49
177
+ "percent": 2.69,
178
+ "reduction": 2.8
179
179
  },
180
180
  {
181
181
  "id": "/src/observable/operators.ts",
@@ -192,7 +192,7 @@
192
192
  "dependents": [
193
193
  "/src/observable/index.ts"
194
194
  ],
195
- "percent": 2.38,
195
+ "percent": 2.37,
196
196
  "reduction": 1.66
197
197
  },
198
198
  {
@@ -208,12 +208,12 @@
208
208
  "/src/adapters/node-http/index.ts",
209
209
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts"
210
210
  ],
211
- "percent": 2.31,
211
+ "percent": 2.3,
212
212
  "reduction": 11.53
213
213
  },
214
214
  {
215
215
  "id": "/src/adapters/next-app-dir/nextAppDirCaller.ts",
216
- "size": 3254,
216
+ "size": 3244,
217
217
  "origSize": 4187,
218
218
  "renderedExports": [
219
219
  "nextAppDirCaller"
@@ -222,8 +222,8 @@
222
222
  "dependents": [
223
223
  "/src/adapters/next-app-dir.ts"
224
224
  ],
225
- "percent": 1.98,
226
- "reduction": 22.28
225
+ "percent": 1.96,
226
+ "reduction": 22.52
227
227
  },
228
228
  {
229
229
  "id": "/src/unstable-core-do-not-import/transformer.ts",
@@ -242,7 +242,7 @@
242
242
  "/src/unstable-core-do-not-import/initTRPC.ts",
243
243
  "/src/unstable-core-do-not-import/router.ts"
244
244
  ],
245
- "percent": 1.67,
245
+ "percent": 1.66,
246
246
  "reduction": 45.98
247
247
  },
248
248
  {
@@ -256,12 +256,12 @@
256
256
  "dependents": [
257
257
  "/src/unstable-core-do-not-import.ts"
258
258
  ],
259
- "percent": 1.64,
259
+ "percent": 1.63,
260
260
  "reduction": 40.53
261
261
  },
262
262
  {
263
263
  "id": "/src/unstable-core-do-not-import/middleware.ts",
264
- "size": 2626,
264
+ "size": 2625,
265
265
  "origSize": 5938,
266
266
  "renderedExports": [
267
267
  "middlewareMarker",
@@ -276,8 +276,8 @@
276
276
  "/src/unstable-core-do-not-import/initTRPC.ts",
277
277
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
278
278
  ],
279
- "percent": 1.6,
280
- "reduction": 55.78
279
+ "percent": 1.59,
280
+ "reduction": 55.79
281
281
  },
282
282
  {
283
283
  "id": "/src/unstable-core-do-not-import/utils.ts",
@@ -314,12 +314,12 @@
314
314
  "/src/unstable-core-do-not-import/stream/sse.ts",
315
315
  "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts"
316
316
  ],
317
- "percent": 1.5,
317
+ "percent": 1.49,
318
318
  "reduction": 17.51
319
319
  },
320
320
  {
321
321
  "id": "/src/unstable-core-do-not-import/createProxy.ts",
322
- "size": 2329,
322
+ "size": 2333,
323
323
  "origSize": 2262,
324
324
  "renderedExports": [
325
325
  "createRecursiveProxy",
@@ -330,12 +330,12 @@
330
330
  "/src/unstable-core-do-not-import.ts",
331
331
  "/src/unstable-core-do-not-import/router.ts"
332
332
  ],
333
- "percent": 1.42,
333
+ "percent": 1.41,
334
334
  "reduction": 0
335
335
  },
336
336
  {
337
337
  "id": "/src/adapters/fetch/fetchRequestHandler.ts",
338
- "size": 2251,
338
+ "size": 2243,
339
339
  "origSize": 2300,
340
340
  "renderedExports": [
341
341
  "fetchRequestHandler"
@@ -344,12 +344,12 @@
344
344
  "dependents": [
345
345
  "/src/adapters/fetch/index.ts"
346
346
  ],
347
- "percent": 1.37,
348
- "reduction": 2.13
347
+ "percent": 1.36,
348
+ "reduction": 2.48
349
349
  },
350
350
  {
351
351
  "id": "/src/adapters/next-app-dir/rethrowNextErrors.ts",
352
- "size": 2121,
352
+ "size": 2120,
353
353
  "origSize": 2244,
354
354
  "renderedExports": [
355
355
  "rethrowNextErrors"
@@ -358,8 +358,8 @@
358
358
  "dependents": [
359
359
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
360
360
  ],
361
- "percent": 1.29,
362
- "reduction": 5.48
361
+ "percent": 1.28,
362
+ "reduction": 5.53
363
363
  },
364
364
  {
365
365
  "id": "/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
@@ -379,12 +379,36 @@
379
379
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
380
380
  "/src/unstable-core-do-not-import/error/getErrorShape.ts"
381
381
  ],
382
- "percent": 1.27,
382
+ "percent": 1.26,
383
383
  "reduction": 18.54
384
384
  },
385
+ {
386
+ "id": "/src/unstable-core-do-not-import/error/TRPCError.ts",
387
+ "size": 2061,
388
+ "origSize": 2152,
389
+ "renderedExports": [
390
+ "getCauseFromUnknown",
391
+ "getTRPCErrorFromUnknown",
392
+ "TRPCError"
393
+ ],
394
+ "removedExports": [],
395
+ "dependents": [
396
+ "/src/unstable-core-do-not-import.ts",
397
+ "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
398
+ "/src/unstable-core-do-not-import/http/resolveResponse.ts",
399
+ "/src/unstable-core-do-not-import/middleware.ts",
400
+ "/src/unstable-core-do-not-import/router.ts",
401
+ "/src/unstable-core-do-not-import/http/contentType.ts",
402
+ "/src/unstable-core-do-not-import/procedureBuilder.ts",
403
+ "/src/unstable-core-do-not-import/stream/jsonl.ts",
404
+ "/src/unstable-core-do-not-import/stream/sse.ts"
405
+ ],
406
+ "percent": 1.25,
407
+ "reduction": 4.23
408
+ },
385
409
  {
386
410
  "id": "/src/unstable-core-do-not-import/stream/utils/asyncIterable.ts",
387
- "size": 1999,
411
+ "size": 1996,
388
412
  "origSize": 2147,
389
413
  "renderedExports": [
390
414
  "withCancel",
@@ -394,12 +418,12 @@
394
418
  "dependents": [
395
419
  "/src/unstable-core-do-not-import/stream/sse.ts"
396
420
  ],
397
- "percent": 1.22,
398
- "reduction": 6.89
421
+ "percent": 1.21,
422
+ "reduction": 7.03
399
423
  },
400
424
  {
401
425
  "id": "/src/adapters/fastify/fastifyTRPCPlugin.ts",
402
- "size": 1779,
426
+ "size": 1777,
403
427
  "origSize": 2546,
404
428
  "renderedExports": [
405
429
  "fastifyTRPCPlugin"
@@ -409,43 +433,19 @@
409
433
  "/src/adapters/fastify/index.ts"
410
434
  ],
411
435
  "percent": 1.08,
412
- "reduction": 30.13
413
- },
414
- {
415
- "id": "/src/unstable-core-do-not-import/error/TRPCError.ts",
416
- "size": 1733,
417
- "origSize": 2152,
418
- "renderedExports": [
419
- "getCauseFromUnknown",
420
- "getTRPCErrorFromUnknown",
421
- "TRPCError"
422
- ],
423
- "removedExports": [],
424
- "dependents": [
425
- "/src/unstable-core-do-not-import.ts",
426
- "/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
427
- "/src/unstable-core-do-not-import/http/resolveResponse.ts",
428
- "/src/unstable-core-do-not-import/middleware.ts",
429
- "/src/unstable-core-do-not-import/router.ts",
430
- "/src/unstable-core-do-not-import/http/contentType.ts",
431
- "/src/unstable-core-do-not-import/procedureBuilder.ts",
432
- "/src/unstable-core-do-not-import/stream/jsonl.ts",
433
- "/src/unstable-core-do-not-import/stream/sse.ts"
434
- ],
435
- "percent": 1.05,
436
- "reduction": 19.47
436
+ "reduction": 30.2
437
437
  },
438
438
  {
439
439
  "id": "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
440
- "size": 1699,
440
+ "size": 1692,
441
441
  "origSize": 2105,
442
442
  "renderedExports": [
443
443
  "parseTRPCMessage"
444
444
  ],
445
445
  "removedExports": [],
446
446
  "dependents": [],
447
- "percent": 1.03,
448
- "reduction": 19.29
447
+ "percent": 1.02,
448
+ "reduction": 19.62
449
449
  },
450
450
  {
451
451
  "id": "/src/unstable-core-do-not-import/rpc/codes.ts",
@@ -469,7 +469,7 @@
469
469
  ],
470
470
  "removedExports": [],
471
471
  "dependents": [],
472
- "percent": 0.81,
472
+ "percent": 0.8,
473
473
  "reduction": 35.1
474
474
  },
475
475
  {
@@ -549,7 +549,7 @@
549
549
  },
550
550
  {
551
551
  "id": "/src/adapters/next-app-dir/redirect.ts",
552
- "size": 987,
552
+ "size": 1029,
553
553
  "origSize": 1143,
554
554
  "renderedExports": [
555
555
  "TRPCRedirectError",
@@ -561,8 +561,8 @@
561
561
  "/src/adapters/next-app-dir/nextAppDirCaller.ts",
562
562
  "/src/adapters/next-app-dir/rethrowNextErrors.ts"
563
563
  ],
564
- "percent": 0.6,
565
- "reduction": 13.65
564
+ "percent": 0.62,
565
+ "reduction": 9.97
566
566
  },
567
567
  {
568
568
  "id": "/src/observable/behaviorSubject.ts",
@@ -617,7 +617,7 @@
617
617
  ],
618
618
  "removedExports": [],
619
619
  "dependents": [],
620
- "percent": 0.47,
620
+ "percent": 0.46,
621
621
  "reduction": 56.66
622
622
  },
623
623
  {
@@ -675,12 +675,12 @@
675
675
  "dependents": [
676
676
  "/src/unstable-core-do-not-import.ts"
677
677
  ],
678
- "percent": 0.41,
678
+ "percent": 0.4,
679
679
  "reduction": 0.6
680
680
  },
681
681
  {
682
682
  "id": "/src/unstable-core-do-not-import/error/getErrorShape.ts",
683
- "size": 625,
683
+ "size": 621,
684
684
  "origSize": 1106,
685
685
  "renderedExports": [
686
686
  "getErrorShape"
@@ -691,7 +691,7 @@
691
691
  "/src/unstable-core-do-not-import/http/resolveResponse.ts"
692
692
  ],
693
693
  "percent": 0.38,
694
- "reduction": 43.49
694
+ "reduction": 43.85
695
695
  },
696
696
  {
697
697
  "id": "/src/unstable-core-do-not-import/rootConfig.ts",
@@ -739,6 +739,23 @@
739
739
  "percent": 0.17,
740
740
  "reduction": 68.45
741
741
  },
742
+ {
743
+ "id": "/home/runner/work/trpc/trpc/node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_define_property.js",
744
+ "size": 227,
745
+ "origSize": 262,
746
+ "renderedExports": [
747
+ "_"
748
+ ],
749
+ "removedExports": [],
750
+ "dependents": [
751
+ "/src/vendor/unpromise/unpromise.ts",
752
+ "/src/unstable-core-do-not-import/error/TRPCError.ts",
753
+ "/src/unstable-core-do-not-import/stream/jsonl.ts",
754
+ "/src/adapters/next-app-dir/redirect.ts"
755
+ ],
756
+ "percent": 0.14,
757
+ "reduction": 13.36
758
+ },
742
759
  {
743
760
  "id": "/src/adapters/next-app-dir/notFound.ts",
744
761
  "size": 218,
@@ -770,7 +787,7 @@
770
787
  },
771
788
  {
772
789
  "id": "/src/unstable-core-do-not-import/error/formatter.ts",
773
- "size": 61,
790
+ "size": 60,
774
791
  "origSize": 984,
775
792
  "renderedExports": [
776
793
  "defaultFormatter"
@@ -782,7 +799,7 @@
782
799
  "/src/unstable-core-do-not-import/router.ts"
783
800
  ],
784
801
  "percent": 0.04,
785
- "reduction": 93.8
802
+ "reduction": 93.9
786
803
  },
787
804
  {
788
805
  "id": "/src/http.ts",
@@ -834,9 +851,9 @@
834
851
  "removedExports": [],
835
852
  "dependents": [
836
853
  "/src/adapters/express.ts",
837
- "/src/adapters/ws.ts",
838
- "/src/adapters/next.ts",
839
854
  "/src/adapters/standalone.ts",
855
+ "/src/adapters/next.ts",
856
+ "/src/adapters/ws.ts",
840
857
  "/src/adapters/node-http/nodeHTTPRequestHandler.ts",
841
858
  "/src/adapters/next-app-dir/nextAppDirCaller.ts"
842
859
  ],
@@ -893,14 +910,14 @@
893
910
  "removedExports": [],
894
911
  "dependents": [
895
912
  "/src/adapters/express.ts",
896
- "/src/adapters/ws.ts",
897
- "/src/adapters/next.ts",
898
913
  "/src/adapters/standalone.ts",
914
+ "/src/adapters/next.ts",
915
+ "/src/adapters/ws.ts",
899
916
  "/src/adapters/fastify/fastifyRequestHandler.ts"
900
917
  ],
901
918
  "percent": 0,
902
919
  "reduction": 100
903
920
  }
904
921
  ],
905
- "moduleCount": 59
922
+ "moduleCount": 60
906
923
  }
package/dist/http.js CHANGED
@@ -6,6 +6,7 @@ var parseConnectionParams = require('./unstable-core-do-not-import/http/parseCon
6
6
  var contentTypeParsers = require('./unstable-core-do-not-import/http/contentTypeParsers.js');
7
7
  var resolveResponse = require('./unstable-core-do-not-import/http/resolveResponse.js');
8
8
  require('./unstable-core-do-not-import/rootConfig.js');
9
+ require('./vendor/unpromise/unpromise.js');
9
10
 
10
11
 
11
12
 
package/dist/http.mjs CHANGED
@@ -4,3 +4,4 @@ export { parseConnectionParamsFromString, parseConnectionParamsFromUnknown } fro
4
4
  export { octetInputParser } from './unstable-core-do-not-import/http/contentTypeParsers.mjs';
5
5
  export { resolveResponse } from './unstable-core-do-not-import/http/resolveResponse.mjs';
6
6
  import './unstable-core-do-not-import/rootConfig.mjs';
7
+ import './vendor/unpromise/unpromise.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('./vendor/unpromise/unpromise.js');
6
7
  var tracked = require('./unstable-core-do-not-import/stream/tracked.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 './vendor/unpromise/unpromise.mjs';
4
5
  export { isTrackedEnvelope, sse, tracked } from './unstable-core-do-not-import/stream/tracked.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';
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ function _define_property(obj, key, value) {
4
+ if (key in obj) {
5
+ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });
6
+ } else obj[key] = value;
7
+
8
+ return obj;
9
+ }
10
+
11
+ exports._ = _define_property;
@@ -0,0 +1,9 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });
4
+ } else obj[key] = value;
5
+
6
+ return obj;
7
+ }
8
+
9
+ export { _define_property as _ };
@@ -138,7 +138,7 @@ function pipeReducer(prev, fn) {
138
138
  done: true
139
139
  };
140
140
  }
141
- const { value: result } = value;
141
+ const { value: result } = value;
142
142
  if (!result.ok) {
143
143
  throw result.error;
144
144
  }
@@ -136,7 +136,7 @@ function pipeReducer(prev, fn) {
136
136
  done: true
137
137
  };
138
138
  }
139
- const { value: result } = value;
139
+ const { value: result } = value;
140
140
  if (!result.ok) {
141
141
  throw result.error;
142
142
  }
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('./vendor/unpromise/unpromise.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 './vendor/unpromise/unpromise.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('./vendor/unpromise/unpromise.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 './vendor/unpromise/unpromise.mjs';
3
4
  import './unstable-core-do-not-import/rootConfig.mjs';
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var _memo, _cacheKey;
4
3
  const noop = ()=>{
5
4
  // noop
6
5
  };
@@ -10,6 +9,7 @@ const freezeIfAvailable = (obj)=>{
10
9
  }
11
10
  };
12
11
  function createInnerProxy(callback, path, memo) {
12
+ var _memo, _cacheKey;
13
13
  const cacheKey = path.join('.');
14
14
  (_memo = memo)[_cacheKey = cacheKey] ?? (_memo[_cacheKey] = new Proxy(noop, {
15
15
  get (_obj, key) {
@@ -1,4 +1,3 @@
1
- var _memo, _cacheKey;
2
1
  const noop = ()=>{
3
2
  // noop
4
3
  };
@@ -8,6 +7,7 @@ const freezeIfAvailable = (obj)=>{
8
7
  }
9
8
  };
10
9
  function createInnerProxy(callback, path, memo) {
10
+ var _memo, _cacheKey;
11
11
  const cacheKey = path.join('.');
12
12
  (_memo = memo)[_cacheKey = cacheKey] ?? (_memo[_cacheKey] = new Proxy(noop, {
13
13
  get (_obj, key) {