diff --git a/package.json b/package.json index c5eb3ee..806e1ec 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "pre-commit": "^1.2.2" }, "dependencies": { + "lodash.uniqby": "^4.7.0", "multiaddr": "^2.0.3", "peer-id": "^0.8.1" }, @@ -55,4 +56,4 @@ "greenkeeperio-bot ", "npmcdn-to-unpkg-bot " ] -} \ No newline at end of file +} diff --git a/src/index.js b/src/index.js index e735f93..2363155 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ const Id = require('peer-id') const multiaddr = require('multiaddr') -const uniqBy = require('lodash').uniqBy +const uniqBy = require('lodash.uniqby') exports = module.exports = PeerInfo