@trpc/server 11.0.0-alpha-tmp-app-router-example.367 → 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.
@@ -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;;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,EA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AE,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"}
@@ -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
@@ -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": 104597,
3
- "bundleOrigSize": 153347,
4
- "bundleReduction": 31.79,
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.82,
20
+ "percent": 13.83,
21
21
  "reduction": 9.37
22
22
  },
23
23
  {
24
24
  "id": "/src/adapters/ws.ts",
25
- "size": 11241,
26
- "origSize": 10870,
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.75,
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
  {
@@ -80,7 +80,7 @@
80
80
  "/src/unstable-core-do-not-import/http/resolveResponse.ts",
81
81
  "/src/unstable-core-do-not-import/initTRPC.ts"
82
82
  ],
83
- "percent": 5.72,
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.3,
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.63,
159
+ "percent": 2.64,
160
160
  "reduction": 0
161
161
  },
162
162
  {
@@ -176,7 +176,7 @@
176
176
  "/src/unstable-core-do-not-import/router.ts",
177
177
  "/src/unstable-core-do-not-import/initTRPC.ts"
178
178
  ],
179
- "percent": 2.62,
179
+ "percent": 2.63,
180
180
  "reduction": 45.94
181
181
  },
182
182
  {
@@ -355,7 +355,7 @@
355
355
  "dependents": [
356
356
  "/src/adapters/fastify/index.ts"
357
357
  ],
358
- "percent": 1.43,
358
+ "percent": 1.44,
359
359
  "reduction": 34.7
360
360
  },
361
361
  {
@@ -556,7 +556,7 @@
556
556
  "dependents": [
557
557
  "/src/unstable-core-do-not-import.ts"
558
558
  ],
559
- "percent": 0.26,
559
+ "percent": 0.27,
560
560
  "reduction": 68.45
561
561
  },
562
562
  {
@@ -663,9 +663,9 @@
663
663
  "reduction": 100
664
664
  },
665
665
  {
666
- "id": "/src/shared.ts",
666
+ "id": "/src/unstable-core-do-not-import.ts",
667
667
  "size": 0,
668
- "origSize": 653,
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/unstable-core-do-not-import.ts",
676
+ "id": "/src/shared.ts",
677
677
  "size": 0,
678
- "origSize": 1969,
678
+ "origSize": 653,
679
679
  "renderedExports": [],
680
680
  "removedExports": [],
681
681
  "dependents": [],
@@ -732,8 +732,8 @@
732
732
  "removedExports": [],
733
733
  "dependents": [
734
734
  "/src/adapters/express.ts",
735
- "/src/adapters/standalone.ts",
736
735
  "/src/adapters/next.ts",
736
+ "/src/adapters/standalone.ts",
737
737
  "/src/adapters/fastify/fastifyRequestHandler.ts"
738
738
  ],
739
739
  "percent": 0,
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.367+bc87f071f",
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": "bc87f071fdececce20027eb8ed6deb422a3523d8"
152
+ "gitHead": "840e1867d43beb0d68bbd9a758c14d8d0233c426"
153
153
  }
@@ -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