diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 04a577b43d3e..3cc506a4f5d4 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -14,7 +14,7 @@ import ComposableObservableStore from './lib/ComposableObservableStore' import asStream from 'obs-store/lib/asStream' import AccountTracker from './lib/account-tracker' import RpcEngine from 'json-rpc-engine' -import debounce from 'debounce' +import { debounce } from 'lodash' import createEngineStream from 'json-rpc-middleware-stream/engineStream' import createFilterMiddleware from 'eth-json-rpc-filters' import createSubscriptionManager from 'eth-json-rpc-filters/subscriptionManager' diff --git a/package.json b/package.json index 97b96c57b59c..a7a7514cf88b 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "copy-to-clipboard": "^3.0.8", "currency-formatter": "^1.4.2", "d3": "^5.15.0", - "debounce": "1.1.0", "debounce-stream": "^2.0.0", "deep-freeze-strict": "1.1.1", "dnode": "^1.2.2", diff --git a/ui/app/components/ui/mascot.js b/ui/app/components/ui/mascot.js index 6266ee3084d2..3cba66ae7c81 100644 --- a/ui/app/components/ui/mascot.js +++ b/ui/app/components/ui/mascot.js @@ -1,7 +1,7 @@ import PropTypes from 'prop-types' import React, { createRef, Component } from 'react' import metamaskLogo from 'metamask-logo' -import debounce from 'debounce' +import { debounce } from 'lodash' export default class Mascot extends Component { static propTypes = { diff --git a/ui/app/pages/send/send-content/add-recipient/ens-input.component.js b/ui/app/pages/send/send-content/add-recipient/ens-input.component.js index 0d46926a56e3..510998e54e74 100644 --- a/ui/app/pages/send/send-content/add-recipient/ens-input.component.js +++ b/ui/app/pages/send/send-content/add-recipient/ens-input.component.js @@ -8,7 +8,7 @@ import { } from '../../../../helpers/utils/util' import { ellipsify } from '../../send.utils' -import debounce from 'debounce' +import { debounce } from 'lodash' import copyToClipboard from 'copy-to-clipboard/index' import ENS from 'ethjs-ens' import networkMap from 'ethjs-ens/lib/network-map.json' diff --git a/yarn.lock b/yarn.lock index 8c57542426f5..78932117c16e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8906,7 +8906,7 @@ debounce-stream@^2.0.0: duplexer "^0.1.1" through "^2.3.6" -debounce@1.1.0, debounce@^1.0.0: +debounce@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.1.0.tgz#6a1a4ee2a9dc4b7c24bb012558dbcdb05b37f408" integrity sha512-ZQVKfRVlwRfD150ndzEK8M90ABT+Y/JQKs4Y7U4MXdpuoUkkrr4DwKbVux3YjylA5bUMUj0Nc3pMxPJX6N2QQQ==