chore: update delegate deps (#753)

This commit is contained in:
Vasco Santos 2020-09-15 12:47:16 +02:00 committed by GitHub
parent 0087218194
commit fb4b2734d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 11 deletions

View File

@ -93,14 +93,14 @@
"delay": "^4.3.0",
"dirty-chai": "^2.0.1",
"interop-libp2p": "^0.3.0",
"ipfs-http-client": "^46.0.0",
"ipfs-http-client": "^47.0.1",
"it-concat": "^1.0.0",
"it-pair": "^1.0.0",
"it-pushable": "^1.4.0",
"libp2p": ".",
"libp2p-bootstrap": "^0.12.0",
"libp2p-delegated-content-routing": "^0.6.0",
"libp2p-delegated-peer-routing": "^0.6.0",
"libp2p-delegated-content-routing": "^0.7.0",
"libp2p-delegated-peer-routing": "^0.7.0",
"libp2p-floodsub": "^0.23.0",
"libp2p-gossipsub": "^0.6.0",
"libp2p-kad-dht": "^0.20.0",

View File

@ -12,6 +12,7 @@ const pDefer = require('p-defer')
const mergeOptions = require('merge-options')
const CID = require('cids')
const ipfsHttpClient = require('ipfs-http-client')
const DelegatedContentRouter = require('libp2p-delegated-content-routing')
const multiaddr = require('multiaddr')
@ -99,11 +100,11 @@ describe('content-routing', () => {
beforeEach(async () => {
const [peerId] = await peerUtils.createPeerId({ fixture: true })
delegate = new DelegatedContentRouter(peerId, {
delegate = new DelegatedContentRouter(peerId, ipfsHttpClient({
host: '0.0.0.0',
protocol: 'http',
port: 60197
}, [
}), [
multiaddr('/ip4/0.0.0.0/tcp/60197')
])
@ -230,11 +231,11 @@ describe('content-routing', () => {
beforeEach(async () => {
const [peerId] = await peerUtils.createPeerId({ fixture: true })
delegate = new DelegatedContentRouter(peerId, {
delegate = new DelegatedContentRouter(peerId, ipfsHttpClient({
host: '0.0.0.0',
protocol: 'http',
port: 60197
}, [
}), [
multiaddr('/ip4/0.0.0.0/tcp/60197')
])

View File

@ -10,6 +10,7 @@ const sinon = require('sinon')
const pDefer = require('p-defer')
const mergeOptions = require('merge-options')
const ipfsHttpClient = require('ipfs-http-client')
const DelegatedPeerRouter = require('libp2p-delegated-peer-routing')
const peerUtils = require('../utils/creators/peer')
@ -72,11 +73,11 @@ describe('peer-routing', () => {
let delegate
beforeEach(async () => {
delegate = new DelegatedPeerRouter({
delegate = new DelegatedPeerRouter(ipfsHttpClient({
host: '0.0.0.0',
protocol: 'http',
port: 60197
})
}))
;[node] = await peerUtils.createPeer({
config: mergeOptions(baseOptions, {
@ -162,11 +163,11 @@ describe('peer-routing', () => {
let delegate
beforeEach(async () => {
delegate = new DelegatedPeerRouter({
delegate = new DelegatedPeerRouter(ipfsHttpClient({
host: '0.0.0.0',
protocol: 'http',
port: 60197
})
}))
;[node] = await peerUtils.createPeer({
config: mergeOptions(routingOptions, {