Socket
Socket
Sign inDemoInstall

@metamask/rpc-errors

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/rpc-errors - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

8

CHANGELOG.md

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

dist/utils.d.ts

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

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