@trpc/server 11.0.0-alpha-tmp-01-26-simplify-router.282 → 11.0.0-alpha-tmp-01-26-simplify-router.283
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
2
|
+
"bundleSize": 102517,
|
|
3
|
+
"bundleOrigSize": 156851,
|
|
4
4
|
"bundleReduction": 34.64,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"id": "/src/unstable-core-do-not-import/router.ts",
|
|
50
|
-
"size":
|
|
51
|
-
"origSize":
|
|
50
|
+
"size": 5637,
|
|
51
|
+
"origSize": 9784,
|
|
52
52
|
"renderedExports": [
|
|
53
53
|
"createRouterFactory",
|
|
54
54
|
"callProcedure",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"/src/unstable-core-do-not-import/initTRPC.ts"
|
|
63
63
|
],
|
|
64
64
|
"percent": 5.5,
|
|
65
|
-
"reduction": 42.
|
|
65
|
+
"reduction": 42.39
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"id": "/src/unstable-core-do-not-import/procedureBuilder.ts",
|
|
@@ -621,8 +621,8 @@
|
|
|
621
621
|
],
|
|
622
622
|
"removedExports": [],
|
|
623
623
|
"dependents": [
|
|
624
|
-
"/src/adapters/node-http/content-type/
|
|
625
|
-
"/src/adapters/node-http/content-type/
|
|
624
|
+
"/src/adapters/node-http/content-type/json/index.ts",
|
|
625
|
+
"/src/adapters/node-http/content-type/form-data/index.ts"
|
|
626
626
|
],
|
|
627
627
|
"percent": 0.11,
|
|
628
628
|
"reduction": 86.68
|
|
@@ -142,9 +142,9 @@ function mergeRouters(...routerList) {
|
|
|
142
142
|
const router = createRouterFactory({
|
|
143
143
|
errorFormatter,
|
|
144
144
|
transformer: transformer$1,
|
|
145
|
-
isDev: routerList.
|
|
146
|
-
allowOutsideOfServer: routerList.
|
|
147
|
-
isServer: routerList.
|
|
145
|
+
isDev: routerList.every((r)=>r._def._config.isDev),
|
|
146
|
+
allowOutsideOfServer: routerList.every((r)=>r._def._config.allowOutsideOfServer),
|
|
147
|
+
isServer: routerList.every((r)=>r._def._config.isServer),
|
|
148
148
|
$types: routerList[0]?._def._config.$types
|
|
149
149
|
})(record);
|
|
150
150
|
return router;
|
|
@@ -140,9 +140,9 @@ function mergeRouters(...routerList) {
|
|
|
140
140
|
const router = createRouterFactory({
|
|
141
141
|
errorFormatter,
|
|
142
142
|
transformer,
|
|
143
|
-
isDev: routerList.
|
|
144
|
-
allowOutsideOfServer: routerList.
|
|
145
|
-
isServer: routerList.
|
|
143
|
+
isDev: routerList.every((r)=>r._def._config.isDev),
|
|
144
|
+
allowOutsideOfServer: routerList.every((r)=>r._def._config.allowOutsideOfServer),
|
|
145
|
+
isServer: routerList.every((r)=>r._def._config.isServer),
|
|
146
146
|
$types: routerList[0]?._def._config.$types
|
|
147
147
|
})(record);
|
|
148
148
|
return router;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-01-26-simplify-router.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-01-26-simplify-router.283+e480efe39",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"funding": [
|
|
158
158
|
"https://trpc.io/sponsor"
|
|
159
159
|
],
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "e480efe394cdaf0b66f665b9850e18cec4857780"
|
|
161
161
|
}
|
|
@@ -327,11 +327,11 @@ export function mergeRouters<TRouters extends AnyRouter[]>(
|
|
|
327
327
|
const router = createRouterFactory({
|
|
328
328
|
errorFormatter,
|
|
329
329
|
transformer,
|
|
330
|
-
isDev: routerList.
|
|
331
|
-
allowOutsideOfServer: routerList.
|
|
330
|
+
isDev: routerList.every((r) => r._def._config.isDev),
|
|
331
|
+
allowOutsideOfServer: routerList.every(
|
|
332
332
|
(r) => r._def._config.allowOutsideOfServer,
|
|
333
333
|
),
|
|
334
|
-
isServer: routerList.
|
|
334
|
+
isServer: routerList.every((r) => r._def._config.isServer),
|
|
335
335
|
$types: routerList[0]?._def._config.$types,
|
|
336
336
|
})(record);
|
|
337
337
|
|