@trpc/client 11.0.0-alpha-tmp-subscription-connection-state.486 → 11.0.0-alpha-tmp-subscription-connection-state.487
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.
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
],
|
|
69
69
|
"removedExports": [],
|
|
70
70
|
"dependents": [
|
|
71
|
-
"/src/links/httpLink.ts",
|
|
72
71
|
"/src/links/httpBatchLink.ts",
|
|
72
|
+
"/src/links/httpLink.ts",
|
|
73
73
|
"/src/links/httpBatchStreamLink.ts",
|
|
74
74
|
"/src/links/httpSubscriptionLink.ts"
|
|
75
75
|
],
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"removedExports": [],
|
|
141
141
|
"dependents": [
|
|
142
142
|
"/src/index.ts",
|
|
143
|
-
"/src/links/httpLink.ts",
|
|
144
143
|
"/src/links/httpBatchLink.ts",
|
|
144
|
+
"/src/links/httpLink.ts",
|
|
145
145
|
"/src/links/wsLink.ts",
|
|
146
146
|
"/src/links/httpBatchStreamLink.ts",
|
|
147
147
|
"/src/links/httpSubscriptionLink.ts",
|
|
@@ -114,7 +114,6 @@ async function urlWithConnectionParams(opts) {
|
|
|
114
114
|
});
|
|
115
115
|
}).catch((error)=>{
|
|
116
116
|
const trpcError = TRPCClientError.TRPCClientError.from(error);
|
|
117
|
-
observer.error(trpcError);
|
|
118
117
|
observer.next({
|
|
119
118
|
result: {
|
|
120
119
|
type: 'state',
|
|
@@ -122,6 +121,7 @@ async function urlWithConnectionParams(opts) {
|
|
|
122
121
|
data: TRPCClientError.TRPCClientError.from(trpcError)
|
|
123
122
|
}
|
|
124
123
|
});
|
|
124
|
+
observer.error(trpcError);
|
|
125
125
|
});
|
|
126
126
|
return ()=>{
|
|
127
127
|
observer.complete();
|
|
@@ -112,7 +112,6 @@ async function urlWithConnectionParams(opts) {
|
|
|
112
112
|
});
|
|
113
113
|
}).catch((error)=>{
|
|
114
114
|
const trpcError = TRPCClientError.from(error);
|
|
115
|
-
observer.error(trpcError);
|
|
116
115
|
observer.next({
|
|
117
116
|
result: {
|
|
118
117
|
type: 'state',
|
|
@@ -120,6 +119,7 @@ async function urlWithConnectionParams(opts) {
|
|
|
120
119
|
data: TRPCClientError.from(trpcError)
|
|
121
120
|
}
|
|
122
121
|
});
|
|
122
|
+
observer.error(trpcError);
|
|
123
123
|
});
|
|
124
124
|
return ()=>{
|
|
125
125
|
observer.complete();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-subscription-connection-state.
|
|
3
|
+
"version": "11.0.0-alpha-tmp-subscription-connection-state.487+b2f85a07a",
|
|
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-subscription-connection-state.
|
|
79
|
+
"@trpc/server": "11.0.0-alpha-tmp-subscription-connection-state.487+b2f85a07a"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@trpc/server": "11.0.0-alpha-tmp-subscription-connection-state.
|
|
82
|
+
"@trpc/server": "11.0.0-alpha-tmp-subscription-connection-state.487+b2f85a07a",
|
|
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": "b2f85a07a4f64586d8e9b7dfa747ddeb2ee9c8f2"
|
|
100
100
|
}
|
|
@@ -165,7 +165,6 @@ export function unstable_httpSubscriptionLink<
|
|
|
165
165
|
}).catch((error) => {
|
|
166
166
|
const trpcError = TRPCClientError.from(error);
|
|
167
167
|
|
|
168
|
-
observer.error(trpcError);
|
|
169
168
|
observer.next({
|
|
170
169
|
result: {
|
|
171
170
|
type: 'state',
|
|
@@ -173,6 +172,7 @@ export function unstable_httpSubscriptionLink<
|
|
|
173
172
|
data: TRPCClientError.from(trpcError),
|
|
174
173
|
},
|
|
175
174
|
});
|
|
175
|
+
observer.error(trpcError);
|
|
176
176
|
});
|
|
177
177
|
|
|
178
178
|
return () => {
|