Skip to content

Commit

Permalink
chore: remove unecessary deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 8, 2021
1 parent 1b14088 commit 3097df1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,20 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"it-pair": "^1.0.0",
"karma-mocha-webworker": "^1.3.0",
"libp2p": "^0.30.0",
"libp2p-floodsub": "^0.24.1",
"libp2p-mplex": "^0.10.0",
"libp2p-noise": "^2.0.0",
"libp2p-websockets": "^0.14.0",
"libp2p-websockets": "^0.15.4",
"lodash": "^4.17.15",
"mocha": "^7.1.1",
"multiaddr": "^8.0.0",
"os": "^0.1.1",
"p-retry": "^4.2.0",
"p-times": "^2.1.0",
"p-wait-for": "^3.1.0",
"promisify-es6": "^1.0.3",
"sinon": "^9.0.2",
"typescript": "4.0.x",
"url": "^0.11.0"
"sinon": "^10.0.1",
"typescript": "4.0.x"
},
"peerDependencies": {
"libp2p": "^0.30.0"
Expand Down
8 changes: 8 additions & 0 deletions test/utils/create-peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ const multiaddr = require('multiaddr')
const PeerId = require('peer-id')

const WS = require('libp2p-websockets')
const filters = require('libp2p-websockets/src/filters')
const MPLEX = require('libp2p-mplex')
const { NOISE } = require('libp2p-noise')

const Peers = require('../fixtures/peers')
const RelayPeer = require('../fixtures/relay')

const transportKey = WS.prototype[Symbol.toStringTag]

const defaultConfig = {
modules: {
transport: [WS],
Expand All @@ -31,6 +34,11 @@ const defaultConfig = {
},
peerDiscovery: {
autoDial: false
},
transport: {
[transportKey]: {
filter: filters.all
}
}
}
}
Expand Down

0 comments on commit 3097df1

Please sign in to comment.