@metamask/providers
Advanced tools
Comparing version 14.0.0 to 14.0.1
@@ -9,2 +9,6 @@ # Changelog | ||
## [14.0.1] | ||
### Fixed | ||
- Don't send `undefined` params to underlying provider ([#290](https://github.com/MetaMask/providers/pull/290)) | ||
## [14.0.0] | ||
@@ -269,3 +273,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/providers/compare/v14.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/providers/compare/v14.0.1...HEAD | ||
[14.0.1]: https://github.com/MetaMask/providers/compare/v14.0.0...v14.0.1 | ||
[14.0.0]: https://github.com/MetaMask/providers/compare/v13.1.0...v14.0.0 | ||
@@ -272,0 +277,0 @@ [13.1.0]: https://github.com/MetaMask/providers/compare/v13.0.0...v13.1.0 |
@@ -135,4 +135,12 @@ "use strict"; | ||
} | ||
const payload = params === undefined | ||
? { | ||
method, | ||
} | ||
: { | ||
method, | ||
params, | ||
}; | ||
return new Promise((resolve, reject) => { | ||
this._rpcRequest({ method, params }, (0, utils_1.getRpcPromiseCallback)(resolve, reject)); | ||
this._rpcRequest(payload, (0, utils_1.getRpcPromiseCallback)(resolve, reject)); | ||
}); | ||
@@ -139,0 +147,0 @@ } |
{ | ||
"name": "@metamask/providers", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"description": "A JavaScript Ethereum provider that connects to the wallet over a stream.", | ||
@@ -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
218465
2154