@trpc/server 10.45.1-canary.13 → 10.45.1-canary.17

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.
Files changed (42) hide show
  1. package/dist/{TRPCError-2bb6a7d0.js → TRPCError-213cd8c9.js} +1 -1
  2. package/dist/{TRPCError-7e8e2a1b.mjs → TRPCError-98d44758.mjs} +1 -1
  3. package/dist/{TRPCError-0b220715.js → TRPCError-ca37bf1a.js} +1 -1
  4. package/dist/adapters/aws-lambda/index.js +4 -4
  5. package/dist/adapters/aws-lambda/index.mjs +4 -4
  6. package/dist/adapters/express.js +5 -5
  7. package/dist/adapters/express.mjs +5 -5
  8. package/dist/adapters/fastify/index.js +4 -4
  9. package/dist/adapters/fastify/index.mjs +4 -4
  10. package/dist/adapters/fetch/index.js +4 -4
  11. package/dist/adapters/fetch/index.mjs +4 -4
  12. package/dist/adapters/next.js +5 -5
  13. package/dist/adapters/next.mjs +5 -5
  14. package/dist/adapters/node-http/content-type/json/index.js +2 -2
  15. package/dist/adapters/node-http/content-type/json/index.mjs +2 -2
  16. package/dist/adapters/node-http/index.js +5 -5
  17. package/dist/adapters/node-http/index.mjs +5 -5
  18. package/dist/adapters/standalone.js +5 -5
  19. package/dist/adapters/standalone.mjs +5 -5
  20. package/dist/adapters/ws.js +2 -2
  21. package/dist/adapters/ws.mjs +2 -2
  22. package/dist/bundle-analysis.json +8 -8
  23. package/dist/{config-930036df.js → config-194bdd43.js} +1 -1
  24. package/dist/{config-efa2782d.js → config-61497ca3.js} +1 -1
  25. package/dist/{config-e3143f14.mjs → config-d5fdbd39.mjs} +1 -1
  26. package/dist/{contentType-a229790b.js → contentType-1de645c8.js} +1 -1
  27. package/dist/{contentType-31223e57.mjs → contentType-9fd995d3.mjs} +1 -1
  28. package/dist/{contentType-0447b256.js → contentType-fb720add.js} +1 -1
  29. package/dist/http/index.js +4 -4
  30. package/dist/http/index.mjs +4 -4
  31. package/dist/index.js +2 -2
  32. package/dist/index.mjs +4 -4
  33. package/dist/{nodeHTTPRequestHandler-f5efadf5.mjs → nodeHTTPRequestHandler-97af83bc.mjs} +1 -1
  34. package/dist/{nodeHTTPRequestHandler-60853005.js → nodeHTTPRequestHandler-ad3e4860.js} +1 -1
  35. package/dist/{nodeHTTPRequestHandler-cd03d007.js → nodeHTTPRequestHandler-bd7d0ca5.js} +1 -1
  36. package/dist/{resolveHTTPResponse-37afa02e.mjs → resolveHTTPResponse-2fc435bb.mjs} +3 -3
  37. package/dist/{resolveHTTPResponse-268da4ac.js → resolveHTTPResponse-9f105277.js} +3 -3
  38. package/dist/{resolveHTTPResponse-b2ba9325.js → resolveHTTPResponse-b7a8a1c9.js} +3 -3
  39. package/dist/subscription.js +1 -1
  40. package/dist/subscription.mjs +1 -1
  41. package/package.json +2 -2
  42. package/src/error/TRPCError.ts +1 -1
@@ -28,7 +28,7 @@ class TRPCError extends Error {
28
28
  this.code = opts.code;
29
29
  this.name = 'TRPCError';
30
30
  if (!this.cause) {
31
- // idk why this is needed, but it is
31
+ // < ES2022 / < Node 16.9.0 compatability
32
32
  this.cause = cause;
33
33
  }
34
34
  }
@@ -30,7 +30,7 @@ class TRPCError extends Error {
30
30
  this.code = opts.code;
31
31
  this.name = 'TRPCError';
32
32
  if (!this.cause) {
33
- // idk why this is needed, but it is
33
+ // < ES2022 / < Node 16.9.0 compatability
34
34
  this.cause = cause;
35
35
  }
36
36
  }
@@ -32,7 +32,7 @@ class TRPCError extends Error {
32
32
  this.code = opts.code;
33
33
  this.name = 'TRPCError';
34
34
  if (!this.cause) {
35
- // idk why this is needed, but it is
35
+ // < ES2022 / < Node 16.9.0 compatability
36
36
  this.cause = cause;
37
37
  }
38
38
  }
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCError = require('../../TRPCError-0b220715.js');
5
+ var TRPCError = require('../../TRPCError-ca37bf1a.js');
6
6
  require('../../index-784ff647.js');
7
7
  require('../../codes-87f6824b.js');
8
- require('../../config-930036df.js');
9
- var resolveHTTPResponse = require('../../resolveHTTPResponse-b2ba9325.js');
8
+ require('../../config-194bdd43.js');
9
+ var resolveHTTPResponse = require('../../resolveHTTPResponse-b7a8a1c9.js');
10
10
  require('../../getCauseFromUnknown-d535264a.js');
11
11
  require('../../transformTRPCResponse-e65f34e9.js');
12
- require('../../contentType-a229790b.js');
12
+ require('../../contentType-1de645c8.js');
13
13
 
14
14
  function isPayloadV1(event) {
15
15
  return determinePayloadFormat(event) == '1.0';
@@ -1,11 +1,11 @@
1
- import { T as TRPCError } from '../../TRPCError-7e8e2a1b.mjs';
1
+ import { T as TRPCError } from '../../TRPCError-98d44758.mjs';
2
2
  import '../../index-f91d720c.mjs';
3
3
  import '../../codes-c924c3db.mjs';
4
- import '../../config-e3143f14.mjs';
5
- import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-37afa02e.mjs';
4
+ import '../../config-d5fdbd39.mjs';
5
+ import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-2fc435bb.mjs';
6
6
  import '../../getCauseFromUnknown-2d66414a.mjs';
7
7
  import '../../transformTRPCResponse-1153b421.mjs';
8
- import '../../contentType-31223e57.mjs';
8
+ import '../../contentType-9fd995d3.mjs';
9
9
 
10
10
  function isPayloadV1(event) {
11
11
  return determinePayloadFormat(event) == '1.0';
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-60853005.js');
5
+ var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-ad3e4860.js');
6
6
  require('../index-784ff647.js');
7
7
  require('../codes-87f6824b.js');
8
- require('../resolveHTTPResponse-b2ba9325.js');
9
- require('../config-930036df.js');
10
- require('../TRPCError-0b220715.js');
8
+ require('../resolveHTTPResponse-b7a8a1c9.js');
9
+ require('../config-194bdd43.js');
10
+ require('../TRPCError-ca37bf1a.js');
11
11
  require('../getCauseFromUnknown-d535264a.js');
12
12
  require('../transformTRPCResponse-e65f34e9.js');
13
- require('../contentType-a229790b.js');
13
+ require('../contentType-1de645c8.js');
14
14
  require('../batchStreamFormatter-93cdcdd4.js');
15
15
  require('./node-http/content-type/json/index.js');
16
16
  require('../contentType-8c16408e.js');
@@ -1,12 +1,12 @@
1
- import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-f5efadf5.mjs';
1
+ import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-97af83bc.mjs';
2
2
  import '../index-f91d720c.mjs';
3
3
  import '../codes-c924c3db.mjs';
4
- import '../resolveHTTPResponse-37afa02e.mjs';
5
- import '../config-e3143f14.mjs';
6
- import '../TRPCError-7e8e2a1b.mjs';
4
+ import '../resolveHTTPResponse-2fc435bb.mjs';
5
+ import '../config-d5fdbd39.mjs';
6
+ import '../TRPCError-98d44758.mjs';
7
7
  import '../getCauseFromUnknown-2d66414a.mjs';
8
8
  import '../transformTRPCResponse-1153b421.mjs';
9
- import '../contentType-31223e57.mjs';
9
+ import '../contentType-9fd995d3.mjs';
10
10
  import '../batchStreamFormatter-fc1ffb26.mjs';
11
11
  import './node-http/content-type/json/index.mjs';
12
12
  import '../contentType-3194ed5f.mjs';
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var node_stream = require('node:stream');
6
6
  require('../../index-784ff647.js');
7
- var resolveHTTPResponse = require('../../resolveHTTPResponse-b2ba9325.js');
7
+ var resolveHTTPResponse = require('../../resolveHTTPResponse-b7a8a1c9.js');
8
8
  var batchStreamFormatter = require('../../batchStreamFormatter-93cdcdd4.js');
9
9
  var adapters_ws = require('../ws.js');
10
10
  require('../../codes-87f6824b.js');
11
- require('../../config-930036df.js');
12
- require('../../TRPCError-0b220715.js');
11
+ require('../../config-194bdd43.js');
12
+ require('../../TRPCError-ca37bf1a.js');
13
13
  require('../../getCauseFromUnknown-d535264a.js');
14
14
  require('../../transformTRPCResponse-e65f34e9.js');
15
- require('../../contentType-a229790b.js');
15
+ require('../../contentType-1de645c8.js');
16
16
  require('../../observable-464116ac.js');
17
17
  require('../../parseTRPCMessage-1377f305.js');
18
18
 
@@ -1,14 +1,14 @@
1
1
  import { Readable } from 'node:stream';
2
2
  import '../../index-f91d720c.mjs';
3
- import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-37afa02e.mjs';
3
+ import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-2fc435bb.mjs';
4
4
  import { g as getBatchStreamFormatter } from '../../batchStreamFormatter-fc1ffb26.mjs';
5
5
  import { applyWSSHandler } from '../ws.mjs';
6
6
  import '../../codes-c924c3db.mjs';
7
- import '../../config-e3143f14.mjs';
8
- import '../../TRPCError-7e8e2a1b.mjs';
7
+ import '../../config-d5fdbd39.mjs';
8
+ import '../../TRPCError-98d44758.mjs';
9
9
  import '../../getCauseFromUnknown-2d66414a.mjs';
10
10
  import '../../transformTRPCResponse-1153b421.mjs';
11
- import '../../contentType-31223e57.mjs';
11
+ import '../../contentType-9fd995d3.mjs';
12
12
  import '../../observable-ade1bad8.mjs';
13
13
  import '../../parseTRPCMessage-a0f17853.mjs';
14
14
 
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../index-784ff647.js');
6
- var resolveHTTPResponse = require('../../resolveHTTPResponse-b2ba9325.js');
6
+ var resolveHTTPResponse = require('../../resolveHTTPResponse-b7a8a1c9.js');
7
7
  var batchStreamFormatter = require('../../batchStreamFormatter-93cdcdd4.js');
8
8
  require('../../codes-87f6824b.js');
9
- require('../../config-930036df.js');
10
- require('../../TRPCError-0b220715.js');
9
+ require('../../config-194bdd43.js');
10
+ require('../../TRPCError-ca37bf1a.js');
11
11
  require('../../getCauseFromUnknown-d535264a.js');
12
12
  require('../../transformTRPCResponse-e65f34e9.js');
13
- require('../../contentType-a229790b.js');
13
+ require('../../contentType-1de645c8.js');
14
14
 
15
15
  const trimSlashes = (path)=>{
16
16
  path = path.startsWith('/') ? path.slice(1) : path;
@@ -1,12 +1,12 @@
1
1
  import '../../index-f91d720c.mjs';
2
- import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-37afa02e.mjs';
2
+ import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-2fc435bb.mjs';
3
3
  import { g as getBatchStreamFormatter } from '../../batchStreamFormatter-fc1ffb26.mjs';
4
4
  import '../../codes-c924c3db.mjs';
5
- import '../../config-e3143f14.mjs';
6
- import '../../TRPCError-7e8e2a1b.mjs';
5
+ import '../../config-d5fdbd39.mjs';
6
+ import '../../TRPCError-98d44758.mjs';
7
7
  import '../../getCauseFromUnknown-2d66414a.mjs';
8
8
  import '../../transformTRPCResponse-1153b421.mjs';
9
- import '../../contentType-31223e57.mjs';
9
+ import '../../contentType-9fd995d3.mjs';
10
10
 
11
11
  const trimSlashes = (path)=>{
12
12
  path = path.startsWith('/') ? path.slice(1) : path;
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCError = require('../TRPCError-0b220715.js');
5
+ var TRPCError = require('../TRPCError-ca37bf1a.js');
6
6
  var transformTRPCResponse = require('../transformTRPCResponse-e65f34e9.js');
7
- var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-60853005.js');
7
+ var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-ad3e4860.js');
8
8
  require('../getCauseFromUnknown-d535264a.js');
9
9
  require('../index-784ff647.js');
10
10
  require('../codes-87f6824b.js');
11
- require('../resolveHTTPResponse-b2ba9325.js');
12
- require('../config-930036df.js');
13
- require('../contentType-a229790b.js');
11
+ require('../resolveHTTPResponse-b7a8a1c9.js');
12
+ require('../config-194bdd43.js');
13
+ require('../contentType-1de645c8.js');
14
14
  require('../batchStreamFormatter-93cdcdd4.js');
15
15
  require('./node-http/content-type/json/index.js');
16
16
  require('../contentType-8c16408e.js');
@@ -1,12 +1,12 @@
1
- import { T as TRPCError } from '../TRPCError-7e8e2a1b.mjs';
1
+ import { T as TRPCError } from '../TRPCError-98d44758.mjs';
2
2
  import { g as getErrorShape } from '../transformTRPCResponse-1153b421.mjs';
3
- import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-f5efadf5.mjs';
3
+ import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-97af83bc.mjs';
4
4
  import '../getCauseFromUnknown-2d66414a.mjs';
5
5
  import '../index-f91d720c.mjs';
6
6
  import '../codes-c924c3db.mjs';
7
- import '../resolveHTTPResponse-37afa02e.mjs';
8
- import '../config-e3143f14.mjs';
9
- import '../contentType-31223e57.mjs';
7
+ import '../resolveHTTPResponse-2fc435bb.mjs';
8
+ import '../config-d5fdbd39.mjs';
9
+ import '../contentType-9fd995d3.mjs';
10
10
  import '../batchStreamFormatter-fc1ffb26.mjs';
11
11
  import './node-http/content-type/json/index.mjs';
12
12
  import '../contentType-3194ed5f.mjs';
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var contentType$1 = require('../../../../contentType-a229790b.js');
5
+ var contentType$1 = require('../../../../contentType-1de645c8.js');
6
6
  var contentType = require('../../../../contentType-8c16408e.js');
7
- var TRPCError = require('../../../../TRPCError-0b220715.js');
7
+ var TRPCError = require('../../../../TRPCError-ca37bf1a.js');
8
8
  require('../../../../getCauseFromUnknown-d535264a.js');
9
9
 
10
10
  async function getPostBody(opts) {
@@ -1,6 +1,6 @@
1
- import { g as getJsonContentTypeInputs } from '../../../../contentType-31223e57.mjs';
1
+ import { g as getJsonContentTypeInputs } from '../../../../contentType-9fd995d3.mjs';
2
2
  import { c as createNodeHTTPContentTypeHandler } from '../../../../contentType-3194ed5f.mjs';
3
- import { T as TRPCError } from '../../../../TRPCError-7e8e2a1b.mjs';
3
+ import { T as TRPCError } from '../../../../TRPCError-98d44758.mjs';
4
4
  import '../../../../getCauseFromUnknown-2d66414a.mjs';
5
5
 
6
6
  async function getPostBody(opts) {
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-60853005.js');
5
+ var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-ad3e4860.js');
6
6
  require('../../index-784ff647.js');
7
7
  require('../../codes-87f6824b.js');
8
- require('../../resolveHTTPResponse-b2ba9325.js');
9
- require('../../config-930036df.js');
10
- require('../../TRPCError-0b220715.js');
8
+ require('../../resolveHTTPResponse-b7a8a1c9.js');
9
+ require('../../config-194bdd43.js');
10
+ require('../../TRPCError-ca37bf1a.js');
11
11
  require('../../getCauseFromUnknown-d535264a.js');
12
12
  require('../../transformTRPCResponse-e65f34e9.js');
13
- require('../../contentType-a229790b.js');
13
+ require('../../contentType-1de645c8.js');
14
14
  require('../../batchStreamFormatter-93cdcdd4.js');
15
15
  require('./content-type/json/index.js');
16
16
  require('../../contentType-8c16408e.js');
@@ -1,12 +1,12 @@
1
- export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-f5efadf5.mjs';
1
+ export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-97af83bc.mjs';
2
2
  import '../../index-f91d720c.mjs';
3
3
  import '../../codes-c924c3db.mjs';
4
- import '../../resolveHTTPResponse-37afa02e.mjs';
5
- import '../../config-e3143f14.mjs';
6
- import '../../TRPCError-7e8e2a1b.mjs';
4
+ import '../../resolveHTTPResponse-2fc435bb.mjs';
5
+ import '../../config-d5fdbd39.mjs';
6
+ import '../../TRPCError-98d44758.mjs';
7
7
  import '../../getCauseFromUnknown-2d66414a.mjs';
8
8
  import '../../transformTRPCResponse-1153b421.mjs';
9
- import '../../contentType-31223e57.mjs';
9
+ import '../../contentType-9fd995d3.mjs';
10
10
  import '../../batchStreamFormatter-fc1ffb26.mjs';
11
11
  import './content-type/json/index.mjs';
12
12
  import '../../contentType-3194ed5f.mjs';
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var http = require('node:http');
6
- var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-60853005.js');
6
+ var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-ad3e4860.js');
7
7
  require('../index-784ff647.js');
8
8
  require('../codes-87f6824b.js');
9
- require('../resolveHTTPResponse-b2ba9325.js');
10
- require('../config-930036df.js');
11
- require('../TRPCError-0b220715.js');
9
+ require('../resolveHTTPResponse-b7a8a1c9.js');
10
+ require('../config-194bdd43.js');
11
+ require('../TRPCError-ca37bf1a.js');
12
12
  require('../getCauseFromUnknown-d535264a.js');
13
13
  require('../transformTRPCResponse-e65f34e9.js');
14
- require('../contentType-a229790b.js');
14
+ require('../contentType-1de645c8.js');
15
15
  require('../batchStreamFormatter-93cdcdd4.js');
16
16
  require('./node-http/content-type/json/index.js');
17
17
  require('../contentType-8c16408e.js');
@@ -1,13 +1,13 @@
1
1
  import http from 'node:http';
2
- import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-f5efadf5.mjs';
2
+ import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-97af83bc.mjs';
3
3
  import '../index-f91d720c.mjs';
4
4
  import '../codes-c924c3db.mjs';
5
- import '../resolveHTTPResponse-37afa02e.mjs';
6
- import '../config-e3143f14.mjs';
7
- import '../TRPCError-7e8e2a1b.mjs';
5
+ import '../resolveHTTPResponse-2fc435bb.mjs';
6
+ import '../config-d5fdbd39.mjs';
7
+ import '../TRPCError-98d44758.mjs';
8
8
  import '../getCauseFromUnknown-2d66414a.mjs';
9
9
  import '../transformTRPCResponse-1153b421.mjs';
10
- import '../contentType-31223e57.mjs';
10
+ import '../contentType-9fd995d3.mjs';
11
11
  import '../batchStreamFormatter-fc1ffb26.mjs';
12
12
  import './node-http/content-type/json/index.mjs';
13
13
  import '../contentType-3194ed5f.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var config = require('../config-930036df.js');
6
- var TRPCError = require('../TRPCError-0b220715.js');
5
+ var config = require('../config-194bdd43.js');
6
+ var TRPCError = require('../TRPCError-ca37bf1a.js');
7
7
  var observable = require('../observable-464116ac.js');
8
8
  require('../codes-87f6824b.js');
9
9
  var parseTRPCMessage = require('../parseTRPCMessage-1377f305.js');
@@ -1,5 +1,5 @@
1
- import { e as callProcedure } from '../config-e3143f14.mjs';
2
- import { T as TRPCError, g as getTRPCErrorFromUnknown } from '../TRPCError-7e8e2a1b.mjs';
1
+ import { e as callProcedure } from '../config-d5fdbd39.mjs';
2
+ import { T as TRPCError, g as getTRPCErrorFromUnknown } from '../TRPCError-98d44758.mjs';
3
3
  import { i as isObservable } from '../observable-ade1bad8.mjs';
4
4
  import '../codes-c924c3db.mjs';
5
5
  import { p as parseTRPCMessage } from '../parseTRPCMessage-a0f17853.mjs';
@@ -1,6 +1,6 @@
1
1
  {
2
- "bundleSize": 115230,
3
- "bundleOrigSize": 195300,
2
+ "bundleSize": 115235,
3
+ "bundleOrigSize": 195305,
4
4
  "bundleReduction": 41,
5
5
  "modules": [
6
6
  {
@@ -14,7 +14,7 @@
14
14
  "dependents": [
15
15
  "/src/adapters/fastify/fastifyTRPCPlugin.ts"
16
16
  ],
17
- "percent": 8.44,
17
+ "percent": 8.43,
18
18
  "reduction": 0
19
19
  },
20
20
  {
@@ -77,7 +77,7 @@
77
77
  "dependents": [
78
78
  "/src/deprecated/router.ts"
79
79
  ],
80
- "percent": 4.89,
80
+ "percent": 4.88,
81
81
  "reduction": 44.8
82
82
  },
83
83
  {
@@ -223,7 +223,7 @@
223
223
  ],
224
224
  "removedExports": [],
225
225
  "dependents": [],
226
- "percent": 2.25,
226
+ "percent": 2.24,
227
227
  "reduction": 50.05
228
228
  },
229
229
  {
@@ -480,8 +480,8 @@
480
480
  },
481
481
  {
482
482
  "id": "/src/error/TRPCError.ts",
483
- "size": 1079,
484
- "origSize": 1501,
483
+ "size": 1084,
484
+ "origSize": 1506,
485
485
  "renderedExports": [
486
486
  "getTRPCErrorFromUnknown",
487
487
  "TRPCError"
@@ -503,7 +503,7 @@
503
503
  "/src/http/contentType.ts"
504
504
  ],
505
505
  "percent": 0.94,
506
- "reduction": 28.11
506
+ "reduction": 28.02
507
507
  },
508
508
  {
509
509
  "id": "/src/rpc/codes.ts",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var TRPCError = require('./TRPCError-0b220715.js');
3
+ var TRPCError = require('./TRPCError-ca37bf1a.js');
4
4
  var index = require('./index-784ff647.js');
5
5
  var codes = require('./codes-87f6824b.js');
6
6
 
@@ -1,4 +1,4 @@
1
- import { T as TRPCError } from './TRPCError-2bb6a7d0.js';
1
+ import { T as TRPCError } from './TRPCError-213cd8c9.js';
2
2
  import { a as createRecursiveProxy, g as getHTTPStatusCodeFromError } from './index-41f6f0b3.js';
3
3
  import { T as TRPC_ERROR_CODES_BY_KEY } from './codes-62b059d2.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as TRPCError } from './TRPCError-7e8e2a1b.mjs';
1
+ import { T as TRPCError } from './TRPCError-98d44758.mjs';
2
2
  import { a as createRecursiveProxy, g as getHTTPStatusCodeFromError } from './index-f91d720c.mjs';
3
3
  import { T as TRPC_ERROR_CODES_BY_KEY } from './codes-c924c3db.mjs';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var TRPCError = require('./TRPCError-0b220715.js');
3
+ var TRPCError = require('./TRPCError-ca37bf1a.js');
4
4
 
5
5
  function getRawProcedureInputOrThrow(opts) {
6
6
  const { req } = opts;
@@ -1,4 +1,4 @@
1
- import { T as TRPCError } from './TRPCError-7e8e2a1b.mjs';
1
+ import { T as TRPCError } from './TRPCError-98d44758.mjs';
2
2
 
3
3
  function getRawProcedureInputOrThrow(opts) {
4
4
  const { req } = opts;
@@ -1,4 +1,4 @@
1
- import { T as TRPCError } from './TRPCError-2bb6a7d0.js';
1
+ import { T as TRPCError } from './TRPCError-213cd8c9.js';
2
2
 
3
3
  function getRawProcedureInputOrThrow(opts) {
4
4
  const { req } = opts;
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var index = require('../index-784ff647.js');
6
- var resolveHTTPResponse = require('../resolveHTTPResponse-b2ba9325.js');
6
+ var resolveHTTPResponse = require('../resolveHTTPResponse-b7a8a1c9.js');
7
7
  var batchStreamFormatter = require('../batchStreamFormatter-93cdcdd4.js');
8
8
  require('../codes-87f6824b.js');
9
- require('../config-930036df.js');
10
- require('../TRPCError-0b220715.js');
9
+ require('../config-194bdd43.js');
10
+ require('../TRPCError-ca37bf1a.js');
11
11
  require('../getCauseFromUnknown-d535264a.js');
12
12
  require('../transformTRPCResponse-e65f34e9.js');
13
- require('../contentType-a229790b.js');
13
+ require('../contentType-1de645c8.js');
14
14
 
15
15
 
16
16
 
@@ -1,9 +1,9 @@
1
1
  export { T as TRPC_ERROR_CODES_BY_NUMBER, b as getHTTPStatusCode, g as getHTTPStatusCodeFromError } from '../index-f91d720c.mjs';
2
- export { r as resolveHTTPResponse } from '../resolveHTTPResponse-37afa02e.mjs';
2
+ export { r as resolveHTTPResponse } from '../resolveHTTPResponse-2fc435bb.mjs';
3
3
  export { g as getBatchStreamFormatter } from '../batchStreamFormatter-fc1ffb26.mjs';
4
4
  import '../codes-c924c3db.mjs';
5
- import '../config-e3143f14.mjs';
6
- import '../TRPCError-7e8e2a1b.mjs';
5
+ import '../config-d5fdbd39.mjs';
6
+ import '../TRPCError-98d44758.mjs';
7
7
  import '../getCauseFromUnknown-2d66414a.mjs';
8
8
  import '../transformTRPCResponse-1153b421.mjs';
9
- import '../contentType-31223e57.mjs';
9
+ import '../contentType-9fd995d3.mjs';
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var config = require('./config-930036df.js');
6
- var TRPCError = require('./TRPCError-0b220715.js');
5
+ var config = require('./config-194bdd43.js');
6
+ var TRPCError = require('./TRPCError-ca37bf1a.js');
7
7
  var index = require('./index-784ff647.js');
8
8
  var codes = require('./codes-87f6824b.js');
9
9
  require('./getCauseFromUnknown-d535264a.js');
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { c as createRouterFactory, d as defaultFormatter, a as defaultTransformer, g as getDataTransformer$1, i as isServerDefault, b as createCallerFactory } from './config-e3143f14.mjs';
2
- export { e as callProcedure, b as createCallerFactory, a as defaultTransformer, g as getDataTransformer, p as procedureTypes } from './config-e3143f14.mjs';
3
- import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-7e8e2a1b.mjs';
4
- export { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-7e8e2a1b.mjs';
1
+ import { c as createRouterFactory, d as defaultFormatter, a as defaultTransformer, g as getDataTransformer$1, i as isServerDefault, b as createCallerFactory } from './config-d5fdbd39.mjs';
2
+ export { e as callProcedure, b as createCallerFactory, a as defaultTransformer, g as getDataTransformer, p as procedureTypes } from './config-d5fdbd39.mjs';
3
+ import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-98d44758.mjs';
4
+ export { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-98d44758.mjs';
5
5
  import { g as getHTTPStatusCodeFromError, c as createFlatProxy } from './index-f91d720c.mjs';
6
6
  import { T as TRPC_ERROR_CODES_BY_KEY } from './codes-c924c3db.mjs';
7
7
  import './getCauseFromUnknown-2d66414a.mjs';
@@ -1,5 +1,5 @@
1
1
  import './index-f91d720c.mjs';
2
- import { r as resolveHTTPResponse } from './resolveHTTPResponse-37afa02e.mjs';
2
+ import { r as resolveHTTPResponse } from './resolveHTTPResponse-2fc435bb.mjs';
3
3
  import { g as getBatchStreamFormatter } from './batchStreamFormatter-fc1ffb26.mjs';
4
4
  import { nodeHTTPJSONContentTypeHandler } from './adapters/node-http/content-type/json/index.mjs';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require('./index-784ff647.js');
4
- var resolveHTTPResponse = require('./resolveHTTPResponse-b2ba9325.js');
4
+ var resolveHTTPResponse = require('./resolveHTTPResponse-b7a8a1c9.js');
5
5
  var batchStreamFormatter = require('./batchStreamFormatter-93cdcdd4.js');
6
6
  var adapters_nodeHttp_contentType_json_index = require('./adapters/node-http/content-type/json/index.js');
7
7
 
@@ -1,5 +1,5 @@
1
1
  import './index-41f6f0b3.js';
2
- import { r as resolveHTTPResponse } from './resolveHTTPResponse-268da4ac.js';
2
+ import { r as resolveHTTPResponse } from './resolveHTTPResponse-9f105277.js';
3
3
  import { g as getBatchStreamFormatter } from './batchStreamFormatter-2c1405a1.js';
4
4
  import { nodeHTTPJSONContentTypeHandler } from './adapters/node-http/content-type/json/index.js';
5
5
 
@@ -1,7 +1,7 @@
1
- import { e as callProcedure } from './config-e3143f14.mjs';
2
- import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-7e8e2a1b.mjs';
1
+ import { e as callProcedure } from './config-d5fdbd39.mjs';
2
+ import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-98d44758.mjs';
3
3
  import { t as transformTRPCResponse, g as getErrorShape } from './transformTRPCResponse-1153b421.mjs';
4
- import { g as getJsonContentTypeInputs } from './contentType-31223e57.mjs';
4
+ import { g as getJsonContentTypeInputs } from './contentType-9fd995d3.mjs';
5
5
  import { b as getHTTPStatusCode } from './index-f91d720c.mjs';
6
6
 
7
7
  const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
@@ -1,7 +1,7 @@
1
- import { e as callProcedure } from './config-efa2782d.js';
2
- import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-2bb6a7d0.js';
1
+ import { e as callProcedure } from './config-61497ca3.js';
2
+ import { T as TRPCError, g as getTRPCErrorFromUnknown } from './TRPCError-213cd8c9.js';
3
3
  import { t as transformTRPCResponse, g as getErrorShape } from './transformTRPCResponse-23bdf37c.js';
4
- import { g as getJsonContentTypeInputs } from './contentType-0447b256.js';
4
+ import { g as getJsonContentTypeInputs } from './contentType-fb720add.js';
5
5
  import { b as getHTTPStatusCode } from './index-41f6f0b3.js';
6
6
 
7
7
  const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var config = require('./config-930036df.js');
4
- var TRPCError = require('./TRPCError-0b220715.js');
3
+ var config = require('./config-194bdd43.js');
4
+ var TRPCError = require('./TRPCError-ca37bf1a.js');
5
5
  var transformTRPCResponse = require('./transformTRPCResponse-e65f34e9.js');
6
- var contentType = require('./contentType-a229790b.js');
6
+ var contentType = require('./contentType-1de645c8.js');
7
7
  var index = require('./index-784ff647.js');
8
8
 
9
9
  const HTTP_METHOD_PROCEDURE_TYPE_MAP = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var TRPCError = require('./TRPCError-0b220715.js');
5
+ var TRPCError = require('./TRPCError-ca37bf1a.js');
6
6
  var observable = require('./observable-464116ac.js');
7
7
  require('./getCauseFromUnknown-d535264a.js');
8
8
 
@@ -1,4 +1,4 @@
1
- import { g as getTRPCErrorFromUnknown } from './TRPCError-7e8e2a1b.mjs';
1
+ import { g as getTRPCErrorFromUnknown } from './TRPCError-98d44758.mjs';
2
2
  import { o as observable } from './observable-ade1bad8.mjs';
3
3
  import './getCauseFromUnknown-2d66414a.mjs';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/server",
3
- "version": "10.45.1-canary.13+1dc726bc6",
3
+ "version": "10.45.1-canary.17+444b08a4f",
4
4
  "description": "The tRPC server library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -173,5 +173,5 @@
173
173
  "funding": [
174
174
  "https://trpc.io/sponsor"
175
175
  ],
176
- "gitHead": "1dc726bc6eb3c72f0bba3f5d156a90924cdca394"
176
+ "gitHead": "444b08a4f6b1234f158671131bd22c9d9bc97568"
177
177
  }
@@ -45,7 +45,7 @@ export class TRPCError extends Error {
45
45
  this.name = 'TRPCError';
46
46
 
47
47
  if (!this.cause) {
48
- // idk why this is needed, but it is
48
+ // < ES2022 / < Node 16.9.0 compatability
49
49
  this.cause = cause;
50
50
  }
51
51
  }