@trpc/server 11.0.0-alpha-tmp-issues-5557-types-node-wut.321 → 11.0.0-alpha-tmp-issues-5557-types-node-wut.322
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/bundle-analysis.json +9 -9
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.mjs +1 -1
- package/package.json +2 -2
- package/src/unstable-core-do-not-import/initTRPC.ts +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"bundleSize":
|
|
3
|
-
"bundleOrigSize":
|
|
2
|
+
"bundleSize": 92465,
|
|
3
|
+
"bundleOrigSize": 147876,
|
|
4
4
|
"bundleReduction": 37.47,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -197,8 +197,8 @@
|
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"id": "/src/unstable-core-do-not-import/initTRPC.ts",
|
|
200
|
-
"size":
|
|
201
|
-
"origSize":
|
|
200
|
+
"size": 2726,
|
|
201
|
+
"origSize": 4602,
|
|
202
202
|
"renderedExports": [
|
|
203
203
|
"initTRPC"
|
|
204
204
|
],
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"/src/unstable-core-do-not-import.ts"
|
|
208
208
|
],
|
|
209
209
|
"percent": 2.95,
|
|
210
|
-
"reduction": 40.
|
|
210
|
+
"reduction": 40.76
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"id": "/src/unstable-core-do-not-import/middleware.ts",
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
"reduction": 100
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
|
-
"id": "/src/adapters/
|
|
693
|
+
"id": "/src/adapters/fetch/index.ts",
|
|
694
694
|
"size": 0,
|
|
695
|
-
"origSize":
|
|
695
|
+
"origSize": 64,
|
|
696
696
|
"renderedExports": [],
|
|
697
697
|
"removedExports": [],
|
|
698
698
|
"dependents": [],
|
|
@@ -700,9 +700,9 @@
|
|
|
700
700
|
"reduction": 100
|
|
701
701
|
},
|
|
702
702
|
{
|
|
703
|
-
"id": "/src/adapters/
|
|
703
|
+
"id": "/src/adapters/fastify/index.ts",
|
|
704
704
|
"size": 0,
|
|
705
|
-
"origSize":
|
|
705
|
+
"origSize": 78,
|
|
706
706
|
"renderedExports": [],
|
|
707
707
|
"removedExports": [],
|
|
708
708
|
"dependents": [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initTRPC.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/initTRPC.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAGL,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,IAAI,KAAK,SAAS,cAAc,CACjE,GAAG,EACH,MAAM,MAAM,CACb,GACG,MAAM,GACN,iBAAiB,CAAC;AACtB,UAAU,oBAAoB,CAAC,QAAQ,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,CAC1E,SAAQ,OAAO,CACb,IAAI,CACF,UAAU,CAAC;IACT,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;CAClB,CAAC,EACF,QAAQ,GAAG,aAAa,CACzB,CACF;IACD;;;OAGG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED,KA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Q,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;QAqDrE;;;WAGG;;QAEH;;;WAGG;;iBAlEE,QAAQ;kBACP,KAAK;wBACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;yBAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;iBALhE,QAAQ;kBACP,KAAK;wBACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;yBAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;CAiE1E;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,6BAAoB,CAAC"}
|
|
@@ -27,7 +27,7 @@ class TRPCBuilder {
|
|
|
27
27
|
*/ create(opts) {
|
|
28
28
|
const config = {
|
|
29
29
|
transformer: transformer.getDataTransformer(opts?.transformer ?? transformer.defaultTransformer),
|
|
30
|
-
isDev: opts?.isDev ?? globalThis.process?.env
|
|
30
|
+
isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
|
|
31
31
|
allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
|
|
32
32
|
errorFormatter: opts?.errorFormatter ?? formatter.defaultFormatter,
|
|
33
33
|
isServer: opts?.isServer ?? rootConfig.isServerDefault,
|
|
@@ -25,7 +25,7 @@ class TRPCBuilder {
|
|
|
25
25
|
*/ create(opts) {
|
|
26
26
|
const config = {
|
|
27
27
|
transformer: getDataTransformer(opts?.transformer ?? defaultTransformer),
|
|
28
|
-
isDev: opts?.isDev ?? globalThis.process?.env
|
|
28
|
+
isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
|
|
29
29
|
allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
|
|
30
30
|
errorFormatter: opts?.errorFormatter ?? defaultFormatter,
|
|
31
31
|
isServer: opts?.isServer ?? isServerDefault,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-issues-5557-types-node-wut.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-5557-types-node-wut.322+689319477",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
"funding": [
|
|
157
157
|
"https://trpc.io/sponsor"
|
|
158
158
|
],
|
|
159
|
-
"gitHead": "
|
|
159
|
+
"gitHead": "6893194772277fb2f638cb1e9874cd0f1c1456b1"
|
|
160
160
|
}
|
|
@@ -84,8 +84,7 @@ class TRPCBuilder<TContext extends object, TMeta extends object> {
|
|
|
84
84
|
|
|
85
85
|
const config: RootConfig<$Root> = {
|
|
86
86
|
transformer: getDataTransformer(opts?.transformer ?? defaultTransformer),
|
|
87
|
-
isDev:
|
|
88
|
-
opts?.isDev ?? globalThis.process?.env['NODE_ENV'] !== 'production',
|
|
87
|
+
isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
|
|
89
88
|
allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
|
|
90
89
|
errorFormatter: opts?.errorFormatter ?? defaultFormatter,
|
|
91
90
|
isServer: opts?.isServer ?? isServerDefault,
|