Socket
Socket
Sign inDemoInstall

eth-rpc-errors

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-rpc-errors - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

13

CHANGELOG.md

@@ -10,2 +10,12 @@ # Changelog

## [4.0.2] - 2020-11-17
### Changed
- The `data` property of `EthereumRpcError` and `EthereumProviderError` is now marked as optional rather than `T | undefined` ([#34](https://github.com/MetaMask/eth-rpc-errors/pull/34))
### Fixed
- `SerializedEthereumRpcError.stack` is now correctly typed as a `string`, if present ([#34](https://github.com/MetaMask/eth-rpc-errors/pull/34))
## [4.0.1] - 2020-11-03

@@ -102,3 +112,4 @@

[Unreleased]:https://github.com/MetaMask/controllers/compare/v4.0.1...HEAD
[Unreleased]:https://github.com/MetaMask/controllers/compare/v4.0.2...HEAD
[4.0.2]:https://github.com/MetaMask/controllers/compare/v4.0.1...v4.0.2
[4.0.1]:https://github.com/MetaMask/controllers/compare/v4.0.0...v4.0.1

@@ -105,0 +116,0 @@ [4.0.0]:https://github.com/MetaMask/controllers/compare/v3.0.0...v4.0.0

6

dist/classes.d.ts

@@ -5,3 +5,3 @@ export interface SerializedEthereumRpcError {

data?: unknown;
stack?: unknown;
stack?: string;
}

@@ -15,3 +15,3 @@ /**

code: number;
data: T | undefined;
data?: T;
constructor(code: number, message: string, data?: T);

@@ -35,5 +35,5 @@ /**

* Create an Ethereum Provider JSON-RPC error.
* `code` must be an integer in the [ 1000 <= 4999 ] range.
* `code` must be an integer in the 1000 <= 4999 range.
*/
constructor(code: number, message: string, data?: T);
}

@@ -56,3 +56,3 @@ "use strict";

* Create an Ethereum Provider JSON-RPC error.
* `code` must be an integer in the [ 1000 <= 4999 ] range.
* `code` must be an integer in the 1000 <= 4999 range.
*/

@@ -59,0 +59,0 @@ constructor(code, message, data) {

{
"name": "eth-rpc-errors",
"version": "4.0.1",
"version": "4.0.2",
"description": "Ethereum RPC and Provider errors.",

@@ -8,3 +8,3 @@ "license": "MIT",

"scripts": {
"build": "tsc",
"build": "tsc --project .",
"test": "yarn build && node test",

@@ -11,0 +11,0 @@ "test:coverage": "yarn build && nyc tape test",

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