@trpc/server 11.0.0-alpha-tmp-app-router-example.365 → 11.0.0-alpha-tmp-app-router-example.369
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/ws.d.ts.map +1 -1
- package/dist/adapters/ws.js +0 -1
- package/dist/adapters/ws.mjs +0 -1
- package/dist/bundle-analysis.json +33 -33
- package/package.json +2 -2
- package/src/adapters/ws.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/adapters/ws.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAQzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAY/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAQlE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,8BAA8B,CAAC,eAAe,EAAE,EAAE,CAAC,SAAS,CAAC,EAC7D,MAAM,CACP,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI,CAC1D,IAAI,EAAE,yBAAyB,KAC5B,YAAY,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,0BAA0B,CAAC,OAAO,SAAS,SAAS,IAC9D,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,GAC1C,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,kBAAkB,CAAC,OAAO,CAAC,CAC5B,CAAC;AAEN;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CAAC,OAAO,SAAS,SAAS,IAC9D,kBAAkB,CAAC,OAAO,EAAE,eAAe,CAAC,GAC1C,qBAAqB,CACnB,kBAAkB,CAAC,OAAO,CAAC,EAC3B,kBAAkB,CAAC,OAAO,CAAC,CAC5B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,SAAS,IACrD,0BAA0B,CAAC,OAAO,CAAC,GAAG;IACpC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAEJ,wBAAgB,sBAAsB,CAAC,OAAO,SAAS,SAAS,EAC9D,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,YAKnB,YAAY,OAAO,eAAe,mBAmPzD;AAiCD,wBAAgB,eAAe,CAAC,OAAO,SAAS,SAAS,EACvD,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC;;EA+BjC"}
|
package/dist/adapters/ws.js
CHANGED
|
@@ -181,7 +181,6 @@ function getWSConnectionHandler(opts) {
|
|
|
181
181
|
}
|
|
182
182
|
client.on('message', async (message)=>{
|
|
183
183
|
try {
|
|
184
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
185
184
|
const msgJSON = JSON.parse(message.toString());
|
|
186
185
|
const msgs = Array.isArray(msgJSON) ? msgJSON : [
|
|
187
186
|
msgJSON
|
package/dist/adapters/ws.mjs
CHANGED
|
@@ -179,7 +179,6 @@ function getWSConnectionHandler(opts) {
|
|
|
179
179
|
}
|
|
180
180
|
client.on('message', async (message)=>{
|
|
181
181
|
try {
|
|
182
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
183
182
|
const msgJSON = JSON.parse(message.toString());
|
|
184
183
|
const msgs = Array.isArray(msgJSON) ? msgJSON : [
|
|
185
184
|
msgJSON
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
4
|
-
"bundleReduction": 31.
|
|
2
|
+
"bundleSize": 104516,
|
|
3
|
+
"bundleOrigSize": 153274,
|
|
4
|
+
"bundleReduction": 31.81,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
7
7
|
"id": "/src/unstable-core-do-not-import/stream/stream.ts",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"/src/unstable-core-do-not-import.ts",
|
|
18
18
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
19
19
|
],
|
|
20
|
-
"percent": 13.
|
|
20
|
+
"percent": 13.83,
|
|
21
21
|
"reduction": 9.37
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"id": "/src/adapters/ws.ts",
|
|
25
|
-
"size":
|
|
26
|
-
"origSize":
|
|
25
|
+
"size": 11160,
|
|
26
|
+
"origSize": 10797,
|
|
27
27
|
"renderedExports": [
|
|
28
28
|
"getWSConnectionHandler",
|
|
29
29
|
"applyWSSHandler"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependents": [
|
|
33
33
|
"/src/adapters/fastify/fastifyTRPCPlugin.ts"
|
|
34
34
|
],
|
|
35
|
-
"percent": 10.
|
|
35
|
+
"percent": 10.68,
|
|
36
36
|
"reduction": 0
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependents": [
|
|
47
47
|
"/src/unstable-core-do-not-import.ts"
|
|
48
48
|
],
|
|
49
|
-
"percent": 10,
|
|
49
|
+
"percent": 10.01,
|
|
50
50
|
"reduction": 4.19
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"removedExports": [],
|
|
78
78
|
"dependents": [
|
|
79
79
|
"/src/unstable-core-do-not-import.ts",
|
|
80
|
-
"/src/unstable-core-do-not-import/
|
|
81
|
-
"/src/unstable-core-do-not-import/
|
|
80
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
81
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
82
82
|
],
|
|
83
|
-
"percent": 5.
|
|
83
|
+
"percent": 5.73,
|
|
84
84
|
"reduction": 41.05
|
|
85
85
|
},
|
|
86
86
|
{
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"/src/unstable-core-do-not-import.ts",
|
|
96
96
|
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
97
97
|
],
|
|
98
|
-
"percent": 5.
|
|
98
|
+
"percent": 5.31,
|
|
99
99
|
"reduction": 0
|
|
100
100
|
},
|
|
101
101
|
{
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"dependents": [
|
|
157
157
|
"/src/observable/index.ts"
|
|
158
158
|
],
|
|
159
|
-
"percent": 2.
|
|
159
|
+
"percent": 2.64,
|
|
160
160
|
"reduction": 0
|
|
161
161
|
},
|
|
162
162
|
{
|
|
@@ -172,11 +172,11 @@
|
|
|
172
172
|
"removedExports": [],
|
|
173
173
|
"dependents": [
|
|
174
174
|
"/src/unstable-core-do-not-import.ts",
|
|
175
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
175
176
|
"/src/unstable-core-do-not-import/router.ts",
|
|
176
|
-
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
177
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts"
|
|
177
|
+
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
178
178
|
],
|
|
179
|
-
"percent": 2.
|
|
179
|
+
"percent": 2.63,
|
|
180
180
|
"reduction": 45.94
|
|
181
181
|
},
|
|
182
182
|
{
|
|
@@ -284,9 +284,9 @@
|
|
|
284
284
|
"removedExports": [],
|
|
285
285
|
"dependents": [
|
|
286
286
|
"/src/unstable-core-do-not-import.ts",
|
|
287
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
287
288
|
"/src/unstable-core-do-not-import/router.ts",
|
|
288
289
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
289
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
290
290
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
291
291
|
"/src/unstable-core-do-not-import/procedureBuilder.ts"
|
|
292
292
|
],
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
"dependents": [
|
|
356
356
|
"/src/adapters/fastify/index.ts"
|
|
357
357
|
],
|
|
358
|
-
"percent": 1.
|
|
358
|
+
"percent": 1.44,
|
|
359
359
|
"reduction": 34.7
|
|
360
360
|
},
|
|
361
361
|
{
|
|
@@ -369,8 +369,8 @@
|
|
|
369
369
|
"removedExports": [],
|
|
370
370
|
"dependents": [
|
|
371
371
|
"/src/unstable-core-do-not-import.ts",
|
|
372
|
-
"/src/unstable-core-do-not-import/
|
|
373
|
-
"/src/unstable-core-do-not-import/
|
|
372
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
373
|
+
"/src/unstable-core-do-not-import/error/getErrorShape.ts"
|
|
374
374
|
],
|
|
375
375
|
"percent": 1.21,
|
|
376
376
|
"reduction": 23.5
|
|
@@ -390,12 +390,12 @@
|
|
|
390
390
|
"removedExports": [],
|
|
391
391
|
"dependents": [
|
|
392
392
|
"/src/unstable-core-do-not-import.ts",
|
|
393
|
+
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
394
|
+
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
393
395
|
"/src/unstable-core-do-not-import/error/TRPCError.ts",
|
|
394
396
|
"/src/unstable-core-do-not-import/router.ts",
|
|
395
397
|
"/src/unstable-core-do-not-import/transformer.ts",
|
|
396
398
|
"/src/unstable-core-do-not-import/middleware.ts",
|
|
397
|
-
"/src/unstable-core-do-not-import/http/resolveResponse.ts",
|
|
398
|
-
"/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
|
|
399
399
|
"/src/unstable-core-do-not-import/http/contentType.ts",
|
|
400
400
|
"/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
401
401
|
"/src/unstable-core-do-not-import/stream/stream.ts"
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
"dependents": [
|
|
557
557
|
"/src/unstable-core-do-not-import.ts"
|
|
558
558
|
],
|
|
559
|
-
"percent": 0.
|
|
559
|
+
"percent": 0.27,
|
|
560
560
|
"reduction": 68.45
|
|
561
561
|
},
|
|
562
562
|
{
|
|
@@ -633,9 +633,9 @@
|
|
|
633
633
|
"reduction": 93.8
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
|
-
"id": "/src/
|
|
636
|
+
"id": "/src/http.ts",
|
|
637
637
|
"size": 0,
|
|
638
|
-
"origSize":
|
|
638
|
+
"origSize": 37,
|
|
639
639
|
"renderedExports": [],
|
|
640
640
|
"removedExports": [],
|
|
641
641
|
"dependents": [],
|
|
@@ -643,9 +643,9 @@
|
|
|
643
643
|
"reduction": 100
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
|
-
"id": "/src/
|
|
646
|
+
"id": "/src/rpc.ts",
|
|
647
647
|
"size": 0,
|
|
648
|
-
"origSize":
|
|
648
|
+
"origSize": 36,
|
|
649
649
|
"renderedExports": [],
|
|
650
650
|
"removedExports": [],
|
|
651
651
|
"dependents": [],
|
|
@@ -653,9 +653,9 @@
|
|
|
653
653
|
"reduction": 100
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
|
-
"id": "/src/
|
|
656
|
+
"id": "/src/index.ts",
|
|
657
657
|
"size": 0,
|
|
658
|
-
"origSize":
|
|
658
|
+
"origSize": 32,
|
|
659
659
|
"renderedExports": [],
|
|
660
660
|
"removedExports": [],
|
|
661
661
|
"dependents": [],
|
|
@@ -663,9 +663,9 @@
|
|
|
663
663
|
"reduction": 100
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
|
-
"id": "/src/
|
|
666
|
+
"id": "/src/unstable-core-do-not-import.ts",
|
|
667
667
|
"size": 0,
|
|
668
|
-
"origSize":
|
|
668
|
+
"origSize": 1969,
|
|
669
669
|
"renderedExports": [],
|
|
670
670
|
"removedExports": [],
|
|
671
671
|
"dependents": [],
|
|
@@ -673,9 +673,9 @@
|
|
|
673
673
|
"reduction": 100
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
|
-
"id": "/src/
|
|
676
|
+
"id": "/src/shared.ts",
|
|
677
677
|
"size": 0,
|
|
678
|
-
"origSize":
|
|
678
|
+
"origSize": 653,
|
|
679
679
|
"renderedExports": [],
|
|
680
680
|
"removedExports": [],
|
|
681
681
|
"dependents": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-app-router-example.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-app-router-example.369+840e1867d",
|
|
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": "840e1867d43beb0d68bbd9a758c14d8d0233c426"
|
|
153
153
|
}
|
package/src/adapters/ws.ts
CHANGED
|
@@ -250,7 +250,6 @@ export function getWSConnectionHandler<TRouter extends AnyRouter>(
|
|
|
250
250
|
}
|
|
251
251
|
client.on('message', async (message) => {
|
|
252
252
|
try {
|
|
253
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
254
253
|
const msgJSON: unknown = JSON.parse(message.toString());
|
|
255
254
|
const msgs: unknown[] = Array.isArray(msgJSON) ? msgJSON : [msgJSON];
|
|
256
255
|
const promises = msgs
|