From 74f2d27d10713904b7cf28eaebbbc6f052dd0c5e Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 3 Apr 2023 15:57:39 -0230 Subject: [PATCH] Update `@metamask/safe-event-emitter` (#18419) The package `safe-event-emitter` has been updated to v2. This update includes renaming the package to be scoped under `@metamask`, and it includes a TypeScript migration. --- app/scripts/controllers/transactions/index.js | 2 +- .../transactions/pending-tx-tracker.js | 2 +- .../transactions/tx-state-manager.js | 2 +- app/scripts/lib/metaRPCClientFactory.js | 2 +- app/scripts/lib/notification-manager.js | 2 +- lavamoat/browserify/beta/policy.json | 70 +++++++++---------- lavamoat/browserify/desktop/policy.json | 70 +++++++++---------- lavamoat/browserify/flask/policy.json | 70 +++++++++---------- lavamoat/browserify/main/policy.json | 70 +++++++++---------- package.json | 2 +- yarn.lock | 2 +- 11 files changed, 147 insertions(+), 147 deletions(-) diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 8d0cddd6e..c3026e043 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -1,4 +1,4 @@ -import EventEmitter from 'safe-event-emitter'; +import EventEmitter from '@metamask/safe-event-emitter'; import { ObservableStore } from '@metamask/obs-store'; import { bufferToHex, keccak, toBuffer, isHexString } from 'ethereumjs-util'; import EthQuery from 'ethjs-query'; diff --git a/app/scripts/controllers/transactions/pending-tx-tracker.js b/app/scripts/controllers/transactions/pending-tx-tracker.js index 6252727c3..93b1de252 100644 --- a/app/scripts/controllers/transactions/pending-tx-tracker.js +++ b/app/scripts/controllers/transactions/pending-tx-tracker.js @@ -1,4 +1,4 @@ -import EventEmitter from 'safe-event-emitter'; +import EventEmitter from '@metamask/safe-event-emitter'; import log from 'loglevel'; import EthQuery from 'ethjs-query'; import { TransactionStatus } from '../../../../shared/constants/transaction'; diff --git a/app/scripts/controllers/transactions/tx-state-manager.js b/app/scripts/controllers/transactions/tx-state-manager.js index 98d18bca1..20e142c6c 100644 --- a/app/scripts/controllers/transactions/tx-state-manager.js +++ b/app/scripts/controllers/transactions/tx-state-manager.js @@ -1,4 +1,4 @@ -import EventEmitter from 'safe-event-emitter'; +import EventEmitter from '@metamask/safe-event-emitter'; import { ObservableStore } from '@metamask/obs-store'; import log from 'loglevel'; import { values, keyBy, mapValues, omitBy, pickBy, sortBy } from 'lodash'; diff --git a/app/scripts/lib/metaRPCClientFactory.js b/app/scripts/lib/metaRPCClientFactory.js index c09f7e38d..3aae9962d 100644 --- a/app/scripts/lib/metaRPCClientFactory.js +++ b/app/scripts/lib/metaRPCClientFactory.js @@ -1,5 +1,5 @@ import { EthereumRpcError } from 'eth-rpc-errors'; -import SafeEventEmitter from 'safe-event-emitter'; +import SafeEventEmitter from '@metamask/safe-event-emitter'; import createRandomId from '../../../shared/modules/random-id'; import { TEN_SECONDS_IN_MILLISECONDS } from '../../../shared/lib/transactions-controller-utils'; diff --git a/app/scripts/lib/notification-manager.js b/app/scripts/lib/notification-manager.js index 6ee4e3c12..2e4d45ee2 100644 --- a/app/scripts/lib/notification-manager.js +++ b/app/scripts/lib/notification-manager.js @@ -1,4 +1,4 @@ -import EventEmitter from 'safe-event-emitter'; +import EventEmitter from '@metamask/safe-event-emitter'; import ExtensionPlatform from '../platforms/extension'; const NOTIFICATION_HEIGHT = 620; diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index cf463cda4..08574f4a4 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -469,8 +469,8 @@ "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { "packages": { "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { @@ -874,10 +874,10 @@ "@metamask/eth-json-rpc-infura>@metamask/utils": true, "@metamask/eth-json-rpc-infura>eth-json-rpc-middleware>pify": true, "@metamask/eth-keyring-controller>@metamask/eth-sig-util": true, + "@metamask/safe-event-emitter": true, "browserify>browser-resolve": true, "eth-rpc-errors": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "lavamoat>json-stable-stringify": true, "vinyl>clone": true } @@ -912,8 +912,8 @@ }, "@metamask/eth-json-rpc-provider": { "packages": { - "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "json-rpc-engine": true } }, "@metamask/eth-keyring-controller": { @@ -968,7 +968,7 @@ }, "@metamask/eth-keyring-controller>obs-store": { "packages": { - "safe-event-emitter": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "watchify>xtend": true } }, @@ -1056,9 +1056,9 @@ "@metamask/eth-token-tracker>eth-block-tracker": true, "@metamask/eth-token-tracker>ethjs": true, "@metamask/eth-token-tracker>human-standard-token-abi": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "ethjs-contract": true, - "ethjs-query": true, - "safe-event-emitter": true + "ethjs-query": true } }, "@metamask/eth-token-tracker>deep-equal": { @@ -1090,8 +1090,8 @@ }, "packages": { "@metamask/eth-token-tracker>eth-block-tracker>pify": true, - "eth-query": true, - "safe-event-emitter": true + "@metamask/eth-token-tracker>safe-event-emitter": true, + "eth-query": true } }, "@metamask/eth-token-tracker>ethjs": { @@ -1150,6 +1150,15 @@ "promise-to-callback": true } }, + "@metamask/eth-token-tracker>safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>util": true, + "webpack>events": true + } + }, "@metamask/etherscan-link": { "globals": { "URL": true @@ -1332,8 +1341,8 @@ }, "packages": { "@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@metamask/obs-store>through2": { @@ -1455,6 +1464,14 @@ "crypto.getRandomValues": true } }, + "@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>events": true + } + }, "@metamask/scure-bip39": { "globals": { "TextEncoder": true @@ -2726,10 +2743,10 @@ "setTimeout": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-block-tracker>@metamask/utils": true, "eth-block-tracker>pify": true, - "eth-query>json-rpc-random-id": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "eth-query>json-rpc-random-id": true } }, "eth-block-tracker>@metamask/utils": { @@ -2772,10 +2789,10 @@ "console.error": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-json-rpc-filters>async-mutex": true, "eth-query": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "pify": true } }, @@ -3614,16 +3631,8 @@ }, "json-rpc-engine": { "packages": { - "eth-rpc-errors": true, - "json-rpc-engine>@metamask/safe-event-emitter": true - } - }, - "json-rpc-engine>@metamask/safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>events": true + "@metamask/safe-event-emitter": true, + "eth-rpc-errors": true } }, "json-rpc-middleware-stream": { @@ -3632,7 +3641,7 @@ "setTimeout": true }, "packages": { - "json-rpc-engine>@metamask/safe-event-emitter": true, + "@metamask/safe-event-emitter": true, "readable-stream": true } }, @@ -4211,15 +4220,6 @@ "@babel/runtime": true } }, - "safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>util": true, - "webpack>events": true - } - }, "semver": { "globals": { "console.error": true diff --git a/lavamoat/browserify/desktop/policy.json b/lavamoat/browserify/desktop/policy.json index c2acd56f3..f1b1e3a49 100644 --- a/lavamoat/browserify/desktop/policy.json +++ b/lavamoat/browserify/desktop/policy.json @@ -469,8 +469,8 @@ "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { "packages": { "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { @@ -928,10 +928,10 @@ "@metamask/eth-json-rpc-infura>@metamask/utils": true, "@metamask/eth-json-rpc-infura>eth-json-rpc-middleware>pify": true, "@metamask/eth-keyring-controller>@metamask/eth-sig-util": true, + "@metamask/safe-event-emitter": true, "browserify>browser-resolve": true, "eth-rpc-errors": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "lavamoat>json-stable-stringify": true, "vinyl>clone": true } @@ -966,8 +966,8 @@ }, "@metamask/eth-json-rpc-provider": { "packages": { - "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "json-rpc-engine": true } }, "@metamask/eth-keyring-controller": { @@ -1022,7 +1022,7 @@ }, "@metamask/eth-keyring-controller>obs-store": { "packages": { - "safe-event-emitter": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "watchify>xtend": true } }, @@ -1110,9 +1110,9 @@ "@metamask/eth-token-tracker>eth-block-tracker": true, "@metamask/eth-token-tracker>ethjs": true, "@metamask/eth-token-tracker>human-standard-token-abi": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "ethjs-contract": true, - "ethjs-query": true, - "safe-event-emitter": true + "ethjs-query": true } }, "@metamask/eth-token-tracker>deep-equal": { @@ -1144,8 +1144,8 @@ }, "packages": { "@metamask/eth-token-tracker>eth-block-tracker>pify": true, - "eth-query": true, - "safe-event-emitter": true + "@metamask/eth-token-tracker>safe-event-emitter": true, + "eth-query": true } }, "@metamask/eth-token-tracker>ethjs": { @@ -1204,6 +1204,15 @@ "promise-to-callback": true } }, + "@metamask/eth-token-tracker>safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>util": true, + "webpack>events": true + } + }, "@metamask/etherscan-link": { "globals": { "URL": true @@ -1398,8 +1407,8 @@ }, "packages": { "@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@metamask/obs-store>through2": { @@ -1610,6 +1619,14 @@ "crypto.getRandomValues": true } }, + "@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>events": true + } + }, "@metamask/scure-bip39": { "globals": { "TextEncoder": true @@ -3121,10 +3138,10 @@ "setTimeout": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-block-tracker>@metamask/utils": true, "eth-block-tracker>pify": true, - "eth-query>json-rpc-random-id": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "eth-query>json-rpc-random-id": true } }, "eth-block-tracker>@metamask/utils": { @@ -3167,10 +3184,10 @@ "console.error": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-json-rpc-filters>async-mutex": true, "eth-query": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "pify": true } }, @@ -4009,16 +4026,8 @@ }, "json-rpc-engine": { "packages": { - "eth-rpc-errors": true, - "json-rpc-engine>@metamask/safe-event-emitter": true - } - }, - "json-rpc-engine>@metamask/safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>events": true + "@metamask/safe-event-emitter": true, + "eth-rpc-errors": true } }, "json-rpc-middleware-stream": { @@ -4027,7 +4036,7 @@ "setTimeout": true }, "packages": { - "json-rpc-engine>@metamask/safe-event-emitter": true, + "@metamask/safe-event-emitter": true, "readable-stream": true } }, @@ -4738,15 +4747,6 @@ "@babel/runtime": true } }, - "safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>util": true, - "webpack>events": true - } - }, "semver": { "globals": { "console.error": true diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index c2acd56f3..f1b1e3a49 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -469,8 +469,8 @@ "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { "packages": { "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { @@ -928,10 +928,10 @@ "@metamask/eth-json-rpc-infura>@metamask/utils": true, "@metamask/eth-json-rpc-infura>eth-json-rpc-middleware>pify": true, "@metamask/eth-keyring-controller>@metamask/eth-sig-util": true, + "@metamask/safe-event-emitter": true, "browserify>browser-resolve": true, "eth-rpc-errors": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "lavamoat>json-stable-stringify": true, "vinyl>clone": true } @@ -966,8 +966,8 @@ }, "@metamask/eth-json-rpc-provider": { "packages": { - "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "json-rpc-engine": true } }, "@metamask/eth-keyring-controller": { @@ -1022,7 +1022,7 @@ }, "@metamask/eth-keyring-controller>obs-store": { "packages": { - "safe-event-emitter": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "watchify>xtend": true } }, @@ -1110,9 +1110,9 @@ "@metamask/eth-token-tracker>eth-block-tracker": true, "@metamask/eth-token-tracker>ethjs": true, "@metamask/eth-token-tracker>human-standard-token-abi": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "ethjs-contract": true, - "ethjs-query": true, - "safe-event-emitter": true + "ethjs-query": true } }, "@metamask/eth-token-tracker>deep-equal": { @@ -1144,8 +1144,8 @@ }, "packages": { "@metamask/eth-token-tracker>eth-block-tracker>pify": true, - "eth-query": true, - "safe-event-emitter": true + "@metamask/eth-token-tracker>safe-event-emitter": true, + "eth-query": true } }, "@metamask/eth-token-tracker>ethjs": { @@ -1204,6 +1204,15 @@ "promise-to-callback": true } }, + "@metamask/eth-token-tracker>safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>util": true, + "webpack>events": true + } + }, "@metamask/etherscan-link": { "globals": { "URL": true @@ -1398,8 +1407,8 @@ }, "packages": { "@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@metamask/obs-store>through2": { @@ -1610,6 +1619,14 @@ "crypto.getRandomValues": true } }, + "@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>events": true + } + }, "@metamask/scure-bip39": { "globals": { "TextEncoder": true @@ -3121,10 +3138,10 @@ "setTimeout": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-block-tracker>@metamask/utils": true, "eth-block-tracker>pify": true, - "eth-query>json-rpc-random-id": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "eth-query>json-rpc-random-id": true } }, "eth-block-tracker>@metamask/utils": { @@ -3167,10 +3184,10 @@ "console.error": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-json-rpc-filters>async-mutex": true, "eth-query": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "pify": true } }, @@ -4009,16 +4026,8 @@ }, "json-rpc-engine": { "packages": { - "eth-rpc-errors": true, - "json-rpc-engine>@metamask/safe-event-emitter": true - } - }, - "json-rpc-engine>@metamask/safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>events": true + "@metamask/safe-event-emitter": true, + "eth-rpc-errors": true } }, "json-rpc-middleware-stream": { @@ -4027,7 +4036,7 @@ "setTimeout": true }, "packages": { - "json-rpc-engine>@metamask/safe-event-emitter": true, + "@metamask/safe-event-emitter": true, "readable-stream": true } }, @@ -4738,15 +4747,6 @@ "@babel/runtime": true } }, - "safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>util": true, - "webpack>events": true - } - }, "semver": { "globals": { "console.error": true diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index cf463cda4..08574f4a4 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -469,8 +469,8 @@ "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store": { "packages": { "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@keystonehq/metamask-airgapped-keyring>@metamask/obs-store>through2": { @@ -874,10 +874,10 @@ "@metamask/eth-json-rpc-infura>@metamask/utils": true, "@metamask/eth-json-rpc-infura>eth-json-rpc-middleware>pify": true, "@metamask/eth-keyring-controller>@metamask/eth-sig-util": true, + "@metamask/safe-event-emitter": true, "browserify>browser-resolve": true, "eth-rpc-errors": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "lavamoat>json-stable-stringify": true, "vinyl>clone": true } @@ -912,8 +912,8 @@ }, "@metamask/eth-json-rpc-provider": { "packages": { - "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "json-rpc-engine": true } }, "@metamask/eth-keyring-controller": { @@ -968,7 +968,7 @@ }, "@metamask/eth-keyring-controller>obs-store": { "packages": { - "safe-event-emitter": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "watchify>xtend": true } }, @@ -1056,9 +1056,9 @@ "@metamask/eth-token-tracker>eth-block-tracker": true, "@metamask/eth-token-tracker>ethjs": true, "@metamask/eth-token-tracker>human-standard-token-abi": true, + "@metamask/eth-token-tracker>safe-event-emitter": true, "ethjs-contract": true, - "ethjs-query": true, - "safe-event-emitter": true + "ethjs-query": true } }, "@metamask/eth-token-tracker>deep-equal": { @@ -1090,8 +1090,8 @@ }, "packages": { "@metamask/eth-token-tracker>eth-block-tracker>pify": true, - "eth-query": true, - "safe-event-emitter": true + "@metamask/eth-token-tracker>safe-event-emitter": true, + "eth-query": true } }, "@metamask/eth-token-tracker>ethjs": { @@ -1150,6 +1150,15 @@ "promise-to-callback": true } }, + "@metamask/eth-token-tracker>safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>util": true, + "webpack>events": true + } + }, "@metamask/etherscan-link": { "globals": { "URL": true @@ -1332,8 +1341,8 @@ }, "packages": { "@metamask/obs-store>through2": true, - "browserify>stream-browserify": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "@metamask/safe-event-emitter": true, + "browserify>stream-browserify": true } }, "@metamask/obs-store>through2": { @@ -1455,6 +1464,14 @@ "crypto.getRandomValues": true } }, + "@metamask/safe-event-emitter": { + "globals": { + "setTimeout": true + }, + "packages": { + "browserify>events": true + } + }, "@metamask/scure-bip39": { "globals": { "TextEncoder": true @@ -2726,10 +2743,10 @@ "setTimeout": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-block-tracker>@metamask/utils": true, "eth-block-tracker>pify": true, - "eth-query>json-rpc-random-id": true, - "json-rpc-engine>@metamask/safe-event-emitter": true + "eth-query>json-rpc-random-id": true } }, "eth-block-tracker>@metamask/utils": { @@ -2772,10 +2789,10 @@ "console.error": true }, "packages": { + "@metamask/safe-event-emitter": true, "eth-json-rpc-filters>async-mutex": true, "eth-query": true, "json-rpc-engine": true, - "json-rpc-engine>@metamask/safe-event-emitter": true, "pify": true } }, @@ -3614,16 +3631,8 @@ }, "json-rpc-engine": { "packages": { - "eth-rpc-errors": true, - "json-rpc-engine>@metamask/safe-event-emitter": true - } - }, - "json-rpc-engine>@metamask/safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>events": true + "@metamask/safe-event-emitter": true, + "eth-rpc-errors": true } }, "json-rpc-middleware-stream": { @@ -3632,7 +3641,7 @@ "setTimeout": true }, "packages": { - "json-rpc-engine>@metamask/safe-event-emitter": true, + "@metamask/safe-event-emitter": true, "readable-stream": true } }, @@ -4211,15 +4220,6 @@ "@babel/runtime": true } }, - "safe-event-emitter": { - "globals": { - "setTimeout": true - }, - "packages": { - "browserify>util": true, - "webpack>events": true - } - }, "semver": { "globals": { "console.error": true diff --git a/package.json b/package.json index b6849a24d..4116e0895 100644 --- a/package.json +++ b/package.json @@ -255,6 +255,7 @@ "@metamask/providers": "^10.2.1", "@metamask/rate-limit-controller": "^1.0.0", "@metamask/rpc-methods": "^0.32.2", + "@metamask/safe-event-emitter": "^2.0.0", "@metamask/scure-bip39": "^2.0.3", "@metamask/slip44": "^2.1.0", "@metamask/smart-transactions-controller": "^3.1.0", @@ -348,7 +349,6 @@ "redux-thunk": "^2.3.0", "remove-trailing-slash": "^0.1.1", "reselect": "^3.0.1", - "safe-event-emitter": "^1.0.1", "ses": "^0.12.4", "single-call-balance-checker-abi": "^1.0.0", "swappable-obj-proxy": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index 5f398c68d..d3962c019 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24297,6 +24297,7 @@ __metadata: "@metamask/providers": ^10.2.1 "@metamask/rate-limit-controller": ^1.0.0 "@metamask/rpc-methods": ^0.32.2 + "@metamask/safe-event-emitter": ^2.0.0 "@metamask/scure-bip39": ^2.0.3 "@metamask/slip44": ^2.1.0 "@metamask/smart-transactions-controller": ^3.1.0 @@ -24526,7 +24527,6 @@ __metadata: require-from-string: ^2.0.2 reselect: ^3.0.1 resolve-url-loader: ^3.1.5 - safe-event-emitter: ^1.0.1 sass: ^1.32.4 sass-loader: ^10.1.1 selenium-webdriver: ^4.3.1