Skip to content

Commit

Permalink
@metamask/safe-event-emitter (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Finlay <542863+danfinlay@users.noreply.github.com>
  • Loading branch information
rekmarks and danfinlay authored Dec 8, 2020
1 parent 9601bba commit a89aae9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"index.d.ts"
],
"dependencies": {
"@metamask/safe-event-emitter": "^2.0.0",
"eth-rpc-errors": "^4.0.2",
"fast-deep-equal": "^2.0.1",
"is-stream": "^2.0.0",
"json-rpc-engine": "^6.1.0",
"json-rpc-middleware-stream": "^2.1.1",
"obj-multiplex": "^1.0.0",
"pump": "^3.0.0",
"safe-event-emitter": "^1.0.1"
"pump": "^3.0.0"
},
"devDependencies": {
"@metamask/eslint-config": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/MetaMaskInpageProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const pump = require('pump')
const { JsonRpcEngine, createIdRemapMiddleware } = require('json-rpc-engine')
const createJsonRpcStream = require('json-rpc-middleware-stream')
const ObjectMultiplex = require('obj-multiplex')
const SafeEventEmitter = require('safe-event-emitter')
const { default: SafeEventEmitter } = require('@metamask/safe-event-emitter')
const dequal = require('fast-deep-equal')
const { ethErrors, EthereumRpcError } = require('eth-rpc-errors')
const { duplex: isDuplex } = require('is-stream')
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const getRpcPromiseCallback = (resolve, reject, unwrapResult = true) => (error,
* @param {typeof console} log - The logging API to use.
* @param {string} remoteLabel - The label of the disconnected stream.
* @param {Error} [err] - The associated error to log.
* @param {import('safe-event-emitter')} [emitter] - The logging API to use.
* @param {import('@metamask/safe-event-emitter').default} [emitter] - The logging API to use.
*/
function logStreamDisconnectWarning (log, remoteLabel, err, emitter) {
let warningMsg = `MetaMask: Lost connection to "${remoteLabel}".`
Expand Down

0 comments on commit a89aae9

Please sign in to comment.