json-rpc-error
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7154
70