Skip to content

Commit e958436

Browse files
authored
fix(deps): eth-json-rpc-middleware@4.3.0->9.0.1 (#12008)
## **Description** Update `eth-json-rpc-middleware` from `4.3.0` (2019-10-05) to `9.0.1` (2022-10-05). ## **Related issues** - Preparation for #11952 - #11978 #### Blocked by - [x] #11980 ## **Manual testing steps** ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
1 parent e7595b2 commit e958436

File tree

5 files changed

+62
-335
lines changed

5 files changed

+62
-335
lines changed

.iyarc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
# ReDoS vulnerability, no impact to this application, and fix not backported yet to the versions we use
2-
3-
GHSA-c2qf-rxjj-qqgw

app/core/BackgroundBridge/BackgroundBridge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { SubjectType } from '@metamask/permission-controller';
2828

2929
const createFilterMiddleware = require('eth-json-rpc-filters');
3030
const createSubscriptionManager = require('eth-json-rpc-filters/subscriptionManager');
31-
const providerAsMiddleware = require('eth-json-rpc-middleware/providerAsMiddleware');
31+
const { providerAsMiddleware } = require('eth-json-rpc-middleware');
3232
const pump = require('pump');
3333
// eslint-disable-next-line import/no-nodejs-modules
3434
const EventEmitter = require('events').EventEmitter;

app/core/Snaps/SnapBridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { SubjectType } from '@metamask/permission-controller';
2424
const ObjectMultiplex = require('@metamask/object-multiplex');
2525
const createFilterMiddleware = require('eth-json-rpc-filters');
2626
const createSubscriptionManager = require('eth-json-rpc-filters/subscriptionManager');
27-
const providerAsMiddleware = require('eth-json-rpc-middleware/providerAsMiddleware');
27+
const { providerAsMiddleware } = require('eth-json-rpc-middleware');
2828
const pump = require('pump');
2929

3030
interface ISnapBridgeProps {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"eth-block-tracker": "^7.0.1",
241241
"eth-ens-namehash": "2.0.8",
242242
"eth-json-rpc-filters": "^6.0.1",
243-
"eth-json-rpc-middleware": "4.3.0",
243+
"eth-json-rpc-middleware": "9.0.1",
244244
"eth-url-parser": "1.0.4",
245245
"ethereumjs-abi": "0.6.6",
246246
"ethereumjs-util": "6.1.0",

0 commit comments

Comments
 (0)