New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

birpc

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

birpc - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

10

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc