@trpc/client 11.0.0-alpha-tmp-issues-5851-take-two.488 → 11.0.0-alpha-tmp-issues-5851-take-two.490
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": 51037,
|
|
3
|
+
"bundleOrigSize": 68212,
|
|
4
4
|
"bundleReduction": 25.18,
|
|
5
5
|
"modules": [
|
|
6
6
|
{
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
],
|
|
14
14
|
"removedExports": [],
|
|
15
15
|
"dependents": [],
|
|
16
|
-
"percent": 25.
|
|
16
|
+
"percent": 25.61,
|
|
17
17
|
"reduction": 10.22
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"id": "/src/links/httpBatchStreamLink.ts",
|
|
21
|
-
"size":
|
|
22
|
-
"origSize":
|
|
21
|
+
"size": 5909,
|
|
22
|
+
"origSize": 6112,
|
|
23
23
|
"renderedExports": [
|
|
24
24
|
"unstable_httpBatchStreamLink"
|
|
25
25
|
],
|
|
@@ -67,8 +67,8 @@ var httpUtils = require('./internals/httpUtils.js');
|
|
|
67
67
|
from: res.body,
|
|
68
68
|
deserialize: resolvedOpts.transformer.output.deserialize,
|
|
69
69
|
// onError: console.error,
|
|
70
|
-
formatError (
|
|
71
|
-
const error =
|
|
70
|
+
formatError (opts) {
|
|
71
|
+
const error = opts.error;
|
|
72
72
|
return TRPCClientError.TRPCClientError.from({
|
|
73
73
|
error
|
|
74
74
|
});
|
|
@@ -65,8 +65,8 @@ import { resolveHTTPLinkOptions, getUrl, mergeAbortSignals, fetchHTTPResponse, g
|
|
|
65
65
|
from: res.body,
|
|
66
66
|
deserialize: resolvedOpts.transformer.output.deserialize,
|
|
67
67
|
// onError: console.error,
|
|
68
|
-
formatError (
|
|
69
|
-
const error =
|
|
68
|
+
formatError (opts) {
|
|
69
|
+
const error = opts.error;
|
|
70
70
|
return TRPCClientError.from({
|
|
71
71
|
error
|
|
72
72
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-5851-take-two.490+8c0dddb9c",
|
|
4
4
|
"description": "The tRPC client library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"!**/*.test.*"
|
|
77
77
|
],
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
79
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.490+8c0dddb9c"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.
|
|
82
|
+
"@trpc/server": "11.0.0-alpha-tmp-issues-5851-take-two.490+8c0dddb9c",
|
|
83
83
|
"@types/isomorphic-fetch": "^0.0.39",
|
|
84
84
|
"@types/node": "^20.10.0",
|
|
85
85
|
"eslint": "^8.56.0",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"funding": [
|
|
97
97
|
"https://trpc.io/sponsor"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "8c0dddb9c79ebbd92493838a5c447d093105a335"
|
|
100
100
|
}
|
|
@@ -101,8 +101,8 @@ export function unstable_httpBatchStreamLink<TRouter extends AnyRouter>(
|
|
|
101
101
|
from: res.body!,
|
|
102
102
|
deserialize: resolvedOpts.transformer.output.deserialize,
|
|
103
103
|
// onError: console.error,
|
|
104
|
-
formatError(
|
|
105
|
-
const error =
|
|
104
|
+
formatError(opts) {
|
|
105
|
+
const error = opts.error as TRPCErrorShape;
|
|
106
106
|
return TRPCClientError.from({
|
|
107
107
|
error,
|
|
108
108
|
});
|