Comparing version 2.1.0 to 2.2.0
@@ -55,17 +55,17 @@ type ArgumentsType<T> = T extends (...args: infer A) => any ? A : never; | ||
* | ||
* @deprecated use `onRemoteError` and `onLocalError` instead | ||
* @deprecated use `onFunctionError` and `onGeneralError` instead | ||
*/ | ||
onError?: (error: Error, functionName: string, args: any[]) => boolean | void; | ||
/** | ||
* Custom error handler for errors occurred in remote functions | ||
* Custom error handler for errors occurred in local functions being called | ||
* | ||
* @returns `true` to prevent the error from being thrown | ||
*/ | ||
onRemoteError?: (error: Error, functionName: string, args: any[]) => boolean | void; | ||
onFunctionError?: (error: Error, functionName: string, args: any[]) => boolean | void; | ||
/** | ||
* Custom error handler for errors occurred in local functions or during serialization | ||
* Custom error handler for errors occurred during serialization or messsaging | ||
* | ||
* @returns `true` to prevent the error from being thrown | ||
*/ | ||
onLocalError?: (error: Error, functionName?: string, args?: any[]) => boolean | void; | ||
onGeneralError?: (error: Error, functionName?: string, args?: any[]) => boolean | void; | ||
/** | ||
@@ -72,0 +72,0 @@ * Custom error handler for timeouts |
{ | ||
"name": "birpc", | ||
"type": "module", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Message based Two-way remote procedure call", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32071