@trpc/server 11.0.0-alpha-tmp-issues-5557-types-node-wut.322 → 11.0.0-alpha-tmp-issues-5557-types-node-wut.324

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,7 +1,7 @@
1
1
  {
2
- "bundleSize": 92465,
3
- "bundleOrigSize": 147876,
4
- "bundleReduction": 37.47,
2
+ "bundleSize": 92540,
3
+ "bundleOrigSize": 147963,
4
+ "bundleReduction": 37.46,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/adapters/ws.ts",
@@ -15,7 +15,7 @@
15
15
  "dependents": [
16
16
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
17
17
  ],
18
- "percent": 11,
18
+ "percent": 10.99,
19
19
  "reduction": 0
20
20
  },
21
21
  {
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "removedExports": [],
29
29
  "dependents": [],
30
- "percent": 10.25,
30
+ "percent": 10.24,
31
31
  "reduction": 20.86
32
32
  },
33
33
  {
@@ -139,7 +139,7 @@
139
139
  "dependents": [
140
140
  "/src/adapters/aws-lambda/index.ts"
141
141
  ],
142
- "percent": 3.58,
142
+ "percent": 3.57,
143
143
  "reduction": 34.98
144
144
  },
145
145
  {
@@ -159,6 +159,20 @@
159
159
  "percent": 3.38,
160
160
  "reduction": 0.67
161
161
  },
162
+ {
163
+ "id": "/src/unstable-core-do-not-import/initTRPC.ts",
164
+ "size": 2801,
165
+ "origSize": 4689,
166
+ "renderedExports": [
167
+ "initTRPC"
168
+ ],
169
+ "removedExports": [],
170
+ "dependents": [
171
+ "/src/unstable-core-do-not-import.ts"
172
+ ],
173
+ "percent": 3.03,
174
+ "reduction": 40.26
175
+ },
162
176
  {
163
177
  "id": "/src/observable/operators.ts",
164
178
  "size": 2756,
@@ -195,20 +209,6 @@
195
209
  "percent": 2.97,
196
210
  "reduction": 45.94
197
211
  },
198
- {
199
- "id": "/src/unstable-core-do-not-import/initTRPC.ts",
200
- "size": 2726,
201
- "origSize": 4602,
202
- "renderedExports": [
203
- "initTRPC"
204
- ],
205
- "removedExports": [],
206
- "dependents": [
207
- "/src/unstable-core-do-not-import.ts"
208
- ],
209
- "percent": 2.95,
210
- "reduction": 40.76
211
- },
212
212
  {
213
213
  "id": "/src/unstable-core-do-not-import/middleware.ts",
214
214
  "size": 2627,
@@ -288,7 +288,7 @@
288
288
  "dependents": [
289
289
  "/src/unstable-core-do-not-import/http/resolveHTTPResponse.ts"
290
290
  ],
291
- "percent": 1.78,
291
+ "percent": 1.77,
292
292
  "reduction": 34.79
293
293
  },
294
294
  {
@@ -430,11 +430,11 @@
430
430
  "removedExports": [],
431
431
  "dependents": [
432
432
  "/src/unstable-core-do-not-import.ts",
433
+ "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
433
434
  "/src/unstable-core-do-not-import/error/TRPCError.ts",
434
435
  "/src/unstable-core-do-not-import/router.ts",
435
436
  "/src/unstable-core-do-not-import/transformer.ts",
436
437
  "/src/unstable-core-do-not-import/middleware.ts",
437
- "/src/unstable-core-do-not-import/rpc/parseTRPCMessage.ts",
438
438
  "/src/unstable-core-do-not-import/procedureBuilder.ts"
439
439
  ],
440
440
  "percent": 0.88,
@@ -457,7 +457,7 @@
457
457
  "/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts",
458
458
  "/src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"
459
459
  ],
460
- "percent": 0.79,
460
+ "percent": 0.78,
461
461
  "reduction": 67.52
462
462
  },
463
463
  {
@@ -590,8 +590,8 @@
590
590
  ],
591
591
  "removedExports": [],
592
592
  "dependents": [
593
- "/src/adapters/node-http/content-type/form-data/index.ts",
594
- "/src/adapters/node-http/content-type/json/index.ts"
593
+ "/src/adapters/node-http/content-type/json/index.ts",
594
+ "/src/adapters/node-http/content-type/form-data/index.ts"
595
595
  ],
596
596
  "percent": 0.13,
597
597
  "reduction": 86.68
@@ -638,9 +638,9 @@
638
638
  "reduction": 100
639
639
  },
640
640
  {
641
- "id": "/src/index.ts",
641
+ "id": "/src/rpc.ts",
642
642
  "size": 0,
643
- "origSize": 32,
643
+ "origSize": 36,
644
644
  "renderedExports": [],
645
645
  "removedExports": [],
646
646
  "dependents": [],
@@ -648,9 +648,9 @@
648
648
  "reduction": 100
649
649
  },
650
650
  {
651
- "id": "/src/rpc.ts",
651
+ "id": "/src/index.ts",
652
652
  "size": 0,
653
- "origSize": 36,
653
+ "origSize": 32,
654
654
  "renderedExports": [],
655
655
  "removedExports": [],
656
656
  "dependents": [],
@@ -690,9 +690,9 @@
690
690
  "reduction": 100
691
691
  },
692
692
  {
693
- "id": "/src/adapters/fetch/index.ts",
693
+ "id": "/src/adapters/fastify/index.ts",
694
694
  "size": 0,
695
- "origSize": 64,
695
+ "origSize": 78,
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/fastify/index.ts",
703
+ "id": "/src/adapters/fetch/index.ts",
704
704
  "size": 0,
705
- "origSize": 78,
705
+ "origSize": 64,
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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ACP,KAAK;4BACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;6BAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;qBALhE,QAAQ;sBACP,KAAK;4BACC,SAAS,SAAS,QAAQ,CAAC,gBAAgB,CAAC,GACpD,iBAAiB,GACjB,yBAAyB,QAAQ,CAAC,gBAAgB,CAAC,CAAC;6BAC3C,SAAS,SAAS,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,GAAG,IAAI;;;QAwDrE;;;WAGG;;QAEH;;;WAGG;;iBArEE,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;;;CAoE1E;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,6BAAoB,CAAC"}
@@ -27,7 +27,8 @@ 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.NODE_ENV !== 'production',
30
+ isDev: opts?.isDev ?? // eslint-disable-next-line @typescript-eslint/dot-notation
31
+ globalThis.process?.env['NODE_ENV'] !== 'production',
31
32
  allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
32
33
  errorFormatter: opts?.errorFormatter ?? formatter.defaultFormatter,
33
34
  isServer: opts?.isServer ?? rootConfig.isServerDefault,
@@ -25,7 +25,8 @@ class TRPCBuilder {
25
25
  */ create(opts) {
26
26
  const config = {
27
27
  transformer: getDataTransformer(opts?.transformer ?? defaultTransformer),
28
- isDev: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
28
+ isDev: opts?.isDev ?? // eslint-disable-next-line @typescript-eslint/dot-notation
29
+ globalThis.process?.env['NODE_ENV'] !== 'production',
29
30
  allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
30
31
  errorFormatter: opts?.errorFormatter ?? defaultFormatter,
31
32
  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.322+689319477",
3
+ "version": "11.0.0-alpha-tmp-issues-5557-types-node-wut.324+5a93a00c0",
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": "6893194772277fb2f638cb1e9874cd0f1c1456b1"
159
+ "gitHead": "5a93a00c0ddfb5f69ea68c0cdfda1d7081ebf1db"
160
160
  }
@@ -84,7 +84,10 @@ 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: opts?.isDev ?? globalThis.process?.env.NODE_ENV !== 'production',
87
+ isDev:
88
+ opts?.isDev ??
89
+ // eslint-disable-next-line @typescript-eslint/dot-notation
90
+ globalThis.process?.env['NODE_ENV'] !== 'production',
88
91
  allowOutsideOfServer: opts?.allowOutsideOfServer ?? false,
89
92
  errorFormatter: opts?.errorFormatter ?? defaultFormatter,
90
93
  isServer: opts?.isServer ?? isServerDefault,