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 dd8f462
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 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
2 changes: 0 additions & 2 deletions test/go-gossipsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
const { expect } = require('chai')
const delay = require('delay')
const PeerId = require('peer-id')
const errcode = require('err-code')
const sinon = require('sinon')
const pRetry = require('p-retry')
Expand All @@ -19,7 +18,6 @@ const {
sparseConnect,
denseConnect,
stopNode,
startNode,
createPeers,
expectSet,
connectSome,
Expand Down
3 changes: 0 additions & 3 deletions test/peer-score-params.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ describe('TopicScoreParams validation', () => {
createTopicScoreParams({
timeInMeshQuantum: 1000,
meshMessageDeliveriesWeight: -1,
meshMessageDeliveriesDecay: 0.5,
meshMessageDeliveriesDecay: 5,
meshMessageDeliveriesThreshold: -3
})
Expand All @@ -103,7 +102,6 @@ describe('TopicScoreParams validation', () => {
createTopicScoreParams({
timeInMeshQuantum: 1000,
meshMessageDeliveriesWeight: -1,
meshMessageDeliveriesDecay: 0.5,
meshMessageDeliveriesDecay: 5,
meshMessageDeliveriesThreshold: 3,
meshMessageDeliveriesWindow: -1
Expand All @@ -113,7 +111,6 @@ describe('TopicScoreParams validation', () => {
createTopicScoreParams({
timeInMeshQuantum: 1000,
meshMessageDeliveriesWeight: -1,
meshMessageDeliveriesDecay: 0.5,
meshMessageDeliveriesDecay: 5,
meshMessageDeliveriesThreshold: 3,
meshMessageDeliveriesWindow: 1,
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 dd8f462

Please sign in to comment.