Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit b03a31c

Browse files
authored
Merge pull request #132 from ipfs/feat/enable-options
feat: add argument options
2 parents 80bc0b2 + bb8bbdc commit b03a31c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"async": "^2.1.4",
3535
"chai": "^3.5.0",
3636
"gulp": "^3.9.1",
37-
"libp2p-ipfs-nodejs": "^0.16.1",
37+
"libp2p-ipfs-nodejs": "^0.17.0",
3838
"peer-id": "^0.8.0",
39-
"pre-commit": "^1.2.0",
39+
"pre-commit": "^1.2.1",
4040
"pull-goodbye": "0.0.1",
4141
"pull-serializer": "^0.3.2",
4242
"pull-stream": "^3.5.0",
@@ -46,7 +46,7 @@
4646
"libp2p": "^0.3.1",
4747
"libp2p-secio": "^0.6.3",
4848
"libp2p-spdy": "^0.10.0",
49-
"libp2p-swarm": "^0.26.3",
49+
"libp2p-swarm": "^0.26.4",
5050
"libp2p-webrtc-star": "^0.7.0",
5151
"libp2p-websockets": "^0.9.1",
5252
"mafmt": "^2.1.2",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const secio = require('libp2p-secio')
77
const libp2p = require('libp2p')
88

99
class Node extends libp2p {
10-
constructor (peerInfo, peerBook) {
10+
constructor (peerInfo, peerBook, options) {
1111
const webRTCStar = new WebRTCStar()
1212

1313
const modules = {
@@ -27,7 +27,7 @@ class Node extends libp2p {
2727
webRTCStar.discovery
2828
]
2929
}
30-
super(modules, peerInfo, peerBook)
30+
super(modules, peerInfo, peerBook, options)
3131
}
3232
}
3333

0 commit comments

Comments
 (0)