@arrirpc/client 0.49.0 → 0.50.0
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/index.cjs +0 -6
- package/dist/index.d.cts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +0 -6
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -205,12 +205,6 @@ function arriSseRequest(opts, options) {
|
|
|
205
205
|
options.onMessage?.(opts.parser(message.data));
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
|
-
if (message.event === "error") {
|
|
209
|
-
options.onErrorMessage?.(
|
|
210
|
-
ArriErrorInstance.fromJson(message.data)
|
|
211
|
-
);
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
208
|
if (message.event === "done") {
|
|
215
209
|
controller.abort();
|
|
216
210
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -55,7 +55,6 @@ interface SseEvent<TData = string> {
|
|
|
55
55
|
}
|
|
56
56
|
interface SseOptions<TData> {
|
|
57
57
|
onMessage?: (data: TData) => any;
|
|
58
|
-
onErrorMessage?: (error: ArriErrorInstance) => any;
|
|
59
58
|
onRequest?: (context: OnRequestContext) => any;
|
|
60
59
|
onRequestError?: (context: Omit<OnRequestErrorContext, "error"> & {
|
|
61
60
|
error: ArriErrorInstance;
|
package/dist/index.d.mts
CHANGED
|
@@ -55,7 +55,6 @@ interface SseEvent<TData = string> {
|
|
|
55
55
|
}
|
|
56
56
|
interface SseOptions<TData> {
|
|
57
57
|
onMessage?: (data: TData) => any;
|
|
58
|
-
onErrorMessage?: (error: ArriErrorInstance) => any;
|
|
59
58
|
onRequest?: (context: OnRequestContext) => any;
|
|
60
59
|
onRequestError?: (context: Omit<OnRequestErrorContext, "error"> & {
|
|
61
60
|
error: ArriErrorInstance;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ interface SseEvent<TData = string> {
|
|
|
55
55
|
}
|
|
56
56
|
interface SseOptions<TData> {
|
|
57
57
|
onMessage?: (data: TData) => any;
|
|
58
|
-
onErrorMessage?: (error: ArriErrorInstance) => any;
|
|
59
58
|
onRequest?: (context: OnRequestContext) => any;
|
|
60
59
|
onRequestError?: (context: Omit<OnRequestErrorContext, "error"> & {
|
|
61
60
|
error: ArriErrorInstance;
|
package/dist/index.mjs
CHANGED
|
@@ -200,12 +200,6 @@ function arriSseRequest(opts, options) {
|
|
|
200
200
|
options.onMessage?.(opts.parser(message.data));
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
if (message.event === "error") {
|
|
204
|
-
options.onErrorMessage?.(
|
|
205
|
-
ArriErrorInstance.fromJson(message.data)
|
|
206
|
-
);
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
203
|
if (message.event === "done") {
|
|
210
204
|
controller.abort();
|
|
211
205
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"event-source-plus": "^0.1.1",
|
|
26
26
|
"ofetch": "^1.3.4",
|
|
27
27
|
"ws": "^8.17.0",
|
|
28
|
-
"@arrirpc/schema": "0.
|
|
28
|
+
"@arrirpc/schema": "0.50.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/ws": "^8.5.10"
|