@trpc/server 11.0.0-rc.588 → 11.0.0-rc.589
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/express.js
CHANGED
|
@@ -16,7 +16,7 @@ var nodeHTTPRequestHandler = require('./node-http/nodeHTTPRequestHandler.js');
|
|
|
16
16
|
function createExpressMiddleware(opts) {
|
|
17
17
|
return (req, res)=>{
|
|
18
18
|
let path = '';
|
|
19
|
-
|
|
19
|
+
utils.run(async ()=>{
|
|
20
20
|
path = req.path.slice(1);
|
|
21
21
|
await nodeHTTPRequestHandler.nodeHTTPRequestHandler({
|
|
22
22
|
...opts,
|
|
@@ -14,7 +14,7 @@ import { nodeHTTPRequestHandler, internal_exceptionHandler } from './node-http/n
|
|
|
14
14
|
function createExpressMiddleware(opts) {
|
|
15
15
|
return (req, res)=>{
|
|
16
16
|
let path = '';
|
|
17
|
-
|
|
17
|
+
run(async ()=>{
|
|
18
18
|
path = req.path.slice(1);
|
|
19
19
|
await nodeHTTPRequestHandler({
|
|
20
20
|
...opts,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
2
|
+
"bundleSize": 144960,
|
|
3
|
+
"bundleOrigSize": 191903,
|
|
4
4
|
"bundleReduction": 24.46,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -206,9 +206,9 @@
|
|
|
206
206
|
"removedExports": [],
|
|
207
207
|
"dependents": [
|
|
208
208
|
"/src/unstable-core-do-not-import.ts",
|
|
209
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
210
209
|
"/src/unstable-core-do-not-import/initTRPC.ts",
|
|
211
|
-
"/src/unstable-core-do-not-import/router.ts"
|
|
210
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
211
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
212
212
|
],
|
|
213
213
|
"percent": 1.89,
|
|
214
214
|
"reduction": 45.94
|
|
@@ -332,11 +332,11 @@
|
|
|
332
332
|
"removedExports": [],
|
|
333
333
|
"dependents": [
|
|
334
334
|
"/src/unstable-core-do-not-import.ts",
|
|
335
|
+
"/src/unstable-core-do-not-import/middleware.ts",
|
|
336
|
+
"/src/unstable-core-do-not-import/router.ts",
|
|
335
337
|
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
336
338
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
337
339
|
"/src/unstable-core-do-not-import/http/toURL.ts",
|
|
338
|
-
"/src/unstable-core-do-not-import/middleware.ts",
|
|
339
|
-
"/src/unstable-core-do-not-import/router.ts",
|
|
340
340
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
341
341
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
342
342
|
"/src/unstable-core-do-not-import/stream/jsonl.ts",
|
|
@@ -396,8 +396,8 @@
|
|
|
396
396
|
"removedExports": [],
|
|
397
397
|
"dependents": [
|
|
398
398
|
"/src/unstable-core-do-not-import.ts",
|
|
399
|
-
"/src/unstable-core-do-not-import/
|
|
400
|
-
"/src/unstable-core-do-not-import/
|
|
399
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts",
|
|
400
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
401
401
|
],
|
|
402
402
|
"percent": 0.99,
|
|
403
403
|
"reduction": 16.73
|
|
@@ -432,13 +432,13 @@
|
|
|
432
432
|
"removedExports": [],
|
|
433
433
|
"dependents": [
|
|
434
434
|
"/src/unstable-core-do-not-import.ts",
|
|
435
|
-
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
436
|
-
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
437
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
438
435
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
439
436
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
440
437
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
441
438
|
"/src/unstable-core-do-not-import/router.ts",
|
|
439
|
+
"/src/unstable-core-do-not-import/http/getHTTPStatusCode.ts",
|
|
440
|
+
"/src/unstable-core-do-not-import/http/parseConnectionParams.ts",
|
|
441
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
442
442
|
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
443
443
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
444
444
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -543,15 +543,15 @@
|
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
"id": "/src/adapters/express.ts",
|
|
546
|
-
"size":
|
|
547
|
-
"origSize":
|
|
546
|
+
"size": 859,
|
|
547
|
+
"origSize": 1316,
|
|
548
548
|
"renderedExports": [
|
|
549
549
|
"createExpressMiddleware"
|
|
550
550
|
],
|
|
551
551
|
"removedExports": [],
|
|
552
552
|
"dependents": [],
|
|
553
|
-
"percent": 0.
|
|
554
|
-
"reduction": 34.
|
|
553
|
+
"percent": 0.59,
|
|
554
|
+
"reduction": 34.73
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
557
|
"id": "/src/unstable-core-do-not-import/stream/tracked.ts",
|
|
@@ -657,33 +657,33 @@
|
|
|
657
657
|
"reduction": 43.49
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
|
-
"id": "/src/unstable-core-do-not-import/
|
|
660
|
+
"id": "/src/unstable-core-do-not-import/rootConfig.ts",
|
|
661
661
|
"size": 343,
|
|
662
|
-
"origSize":
|
|
662
|
+
"origSize": 3267,
|
|
663
663
|
"renderedExports": [
|
|
664
|
-
"
|
|
664
|
+
"isServerDefault"
|
|
665
665
|
],
|
|
666
666
|
"removedExports": [],
|
|
667
667
|
"dependents": [
|
|
668
|
-
"/src/unstable-core-do-not-import.ts"
|
|
668
|
+
"/src/unstable-core-do-not-import.ts",
|
|
669
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
669
670
|
],
|
|
670
671
|
"percent": 0.24,
|
|
671
|
-
"reduction":
|
|
672
|
+
"reduction": 89.5
|
|
672
673
|
},
|
|
673
674
|
{
|
|
674
|
-
"id": "/src/unstable-core-do-not-import/
|
|
675
|
+
"id": "/src/unstable-core-do-not-import/http/toURL.ts",
|
|
675
676
|
"size": 343,
|
|
676
|
-
"origSize":
|
|
677
|
+
"origSize": 377,
|
|
677
678
|
"renderedExports": [
|
|
678
|
-
"
|
|
679
|
+
"toURL"
|
|
679
680
|
],
|
|
680
681
|
"removedExports": [],
|
|
681
682
|
"dependents": [
|
|
682
|
-
"/src/unstable-core-do-not-import.ts"
|
|
683
|
-
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
683
|
+
"/src/unstable-core-do-not-import.ts"
|
|
684
684
|
],
|
|
685
685
|
"percent": 0.24,
|
|
686
|
-
"reduction":
|
|
686
|
+
"reduction": 9.02
|
|
687
687
|
},
|
|
688
688
|
{
|
|
689
689
|
"id": "/src/unstable-core-do-not-import/stream/utils/createDeferred.ts",
|
|
@@ -763,25 +763,25 @@
|
|
|
763
763
|
"reduction": 93.8
|
|
764
764
|
},
|
|
765
765
|
{
|
|
766
|
-
"id": "/src/
|
|
766
|
+
"id": "/src/index.ts",
|
|
767
767
|
"size": 0,
|
|
768
|
-
"origSize":
|
|
768
|
+
"origSize": 32,
|
|
769
769
|
"renderedExports": [],
|
|
770
770
|
"removedExports": [],
|
|
771
|
-
"dependents": [
|
|
772
|
-
"/src/adapters/ws.ts",
|
|
773
|
-
"/src/adapters/node-http/incomingMessageToRequest.ts"
|
|
774
|
-
],
|
|
771
|
+
"dependents": [],
|
|
775
772
|
"percent": 0,
|
|
776
773
|
"reduction": 100
|
|
777
774
|
},
|
|
778
775
|
{
|
|
779
|
-
"id": "/src/
|
|
776
|
+
"id": "/src/http.ts",
|
|
780
777
|
"size": 0,
|
|
781
|
-
"origSize":
|
|
778
|
+
"origSize": 37,
|
|
782
779
|
"renderedExports": [],
|
|
783
780
|
"removedExports": [],
|
|
784
|
-
"dependents": [
|
|
781
|
+
"dependents": [
|
|
782
|
+
"/src/adapters/ws.ts",
|
|
783
|
+
"/src/adapters/node-http/incomingMessageToRequest.ts"
|
|
784
|
+
],
|
|
785
785
|
"percent": 0,
|
|
786
786
|
"reduction": 100
|
|
787
787
|
},
|
|
@@ -813,9 +813,9 @@
|
|
|
813
813
|
"removedExports": [],
|
|
814
814
|
"dependents": [
|
|
815
815
|
"/src/adapters/express.ts",
|
|
816
|
-
"/src/adapters/next.ts",
|
|
817
|
-
"/src/adapters/standalone.ts",
|
|
818
816
|
"/src/adapters/ws.ts",
|
|
817
|
+
"/src/adapters/standalone.ts",
|
|
818
|
+
"/src/adapters/next.ts",
|
|
819
819
|
"/src/adapters/node-http/nodeHTTPRequestHandler.ts",
|
|
820
820
|
"/src/adapters/next-app-dir/nextAppDirCaller.ts"
|
|
821
821
|
],
|
|
@@ -862,8 +862,8 @@
|
|
|
862
862
|
"removedExports": [],
|
|
863
863
|
"dependents": [
|
|
864
864
|
"/src/adapters/express.ts",
|
|
865
|
-
"/src/adapters/next.ts",
|
|
866
865
|
"/src/adapters/standalone.ts",
|
|
866
|
+
"/src/adapters/next.ts",
|
|
867
867
|
"/src/adapters/fastify/fastifyRequestHandler.ts"
|
|
868
868
|
],
|
|
869
869
|
"percent": 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-rc.
|
|
3
|
+
"version": "11.0.0-rc.589+79fa074bd",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"funding": [
|
|
150
150
|
"https://trpc.io/sponsor"
|
|
151
151
|
],
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "79fa074bd4ab01e2eebca47fe41fb1aeea87f24e"
|
|
153
153
|
}
|
package/src/adapters/express.ts
CHANGED