Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-rpc-error

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-rpc-error - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

19

lib/errors.js

@@ -90,10 +90,11 @@ var inherits = require('inherits');

module.exports = {
JsonRpcError: JsonRpcError,
ParseError: ParseError,
InvalidRequest: InvalidRequest,
MethodNotFound: MethodNotFound,
InvalidParams: InvalidParams,
InternalError: InternalError,
ServerError: ServerError
};
JsonRpcError.ParseError = ParseError;
JsonRpcError.InvalidRequest = InvalidRequest;
JsonRpcError.MethodNotFound = MethodNotFound;
JsonRpcError.InvalidParams = InvalidParams;
JsonRpcError.InternalError = InternalError;
JsonRpcError.ServerError = ServerError;
module.exports = JsonRpcError;
{
"name": "json-rpc-error",
"version": "1.0.3",
"version": "2.0.0",
"description": "JSON RPC 2.0 Errors.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,3 +43,3 @@ # JSON RPC 2.0 Error

```js
new JsonRpcError.JsonRpcError(message, code[, data]);
new JsonRpcError(message, code[, data]);
```

@@ -46,0 +46,0 @@

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