File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -278,9 +278,9 @@ const defaultClientMiddlewareWrapper = (
278
278
export {
279
279
binaryToJsonMessageStream ,
280
280
jsonMessageToBinaryStream ,
281
+ timeoutMiddlewareClient ,
282
+ timeoutMiddlewareServer ,
281
283
defaultMiddleware ,
282
284
defaultServerMiddlewareWrapper ,
283
285
defaultClientMiddlewareWrapper ,
284
- timeoutMiddlewareClient ,
285
- timeoutMiddlewareServer ,
286
286
} ;
Original file line number Diff line number Diff line change @@ -110,7 +110,12 @@ type JSONRPCResponseError = {
110
110
id : string | number | null ;
111
111
} ;
112
112
113
- type ObjectEmpty = NonNullable < unknown > ;
113
+ /**
114
+ * Used when an empty object is needed.
115
+ * Defined here with a linter override to avoid a false positive.
116
+ */
117
+ // eslint-disable-next-line
118
+ type ObjectEmpty = { } ;
114
119
115
120
// Prevent overwriting the metadata type with `Omit<>`
116
121
type JSONRPCRequestMetadata < T extends Record < string , JSONValue > = ObjectEmpty > =
Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ function toError(
343
343
let e : Error ;
344
344
switch ( eClass ) {
345
345
case AbstractError :
346
+ case errors . ErrorRPCTimedOut :
346
347
e = eClass . fromJSON ( errorData ) ;
347
348
break ;
348
349
case AggregateError :
You can’t perform that action at this time.
0 commit comments