eth-rpc-errors
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -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 |
@@ -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", |
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
51640