@metamask/rpc-errors
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -9,2 +9,7 @@ # Changelog | ||
## [5.1.1] | ||
### Fixed | ||
- Allow passing unknown values as cause ([#91](https://github.com/MetaMask/rpc-errors/pull/91)) | ||
- Prevously, only `Error` instances were allowed, but any value can be thrown as error | ||
## [5.1.0] | ||
@@ -113,3 +118,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.1.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/rpc-errors/compare/v5.1.1...HEAD | ||
[5.1.1]: https://github.com/MetaMask/rpc-errors/compare/v5.1.0...v5.1.1 | ||
[5.1.0]: https://github.com/MetaMask/rpc-errors/compare/v5.0.0...v5.1.0 | ||
@@ -116,0 +122,0 @@ [5.0.0]: https://github.com/MetaMask/rpc-errors/compare/v4.0.3...v5.0.0 |
@@ -6,8 +6,8 @@ import { Json, JsonRpcError as SerializedJsonRpcError } from '@metamask/utils'; | ||
* - A JSON-serializable object. | ||
* - An object with a `cause` property that is an `Error` instance, and any | ||
* - An object with a `cause` property that is an error-like value, and any | ||
* other properties that are JSON-serializable. | ||
*/ | ||
export type DataWithOptionalCause = Json | { | ||
[key: string]: Json | Error; | ||
cause: Error; | ||
[key: string]: Json | unknown; | ||
cause: unknown; | ||
}; | ||
@@ -14,0 +14,0 @@ export declare const JSON_RPC_SERVER_ERROR_MESSAGE = "Unspecified server error."; |
{ | ||
"name": "@metamask/rpc-errors", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Ethereum RPC and Provider errors.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
90407