From bb8bbdc35d336f5bfe667af7998206e6f01f2f80 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 11 Dec 2016 12:07:31 -0800 Subject: [PATCH] feat: add argument options --- package.json | 6 +++--- src/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f14bafa..7d33398 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "async": "^2.1.4", "chai": "^3.5.0", "gulp": "^3.9.1", - "libp2p-ipfs-nodejs": "^0.16.1", + "libp2p-ipfs-nodejs": "^0.17.0", "peer-id": "^0.8.0", - "pre-commit": "^1.2.0", + "pre-commit": "^1.2.1", "pull-goodbye": "0.0.1", "pull-serializer": "^0.3.2", "pull-stream": "^3.5.0", @@ -46,7 +46,7 @@ "libp2p": "^0.3.1", "libp2p-secio": "^0.6.3", "libp2p-spdy": "^0.10.0", - "libp2p-swarm": "^0.26.3", + "libp2p-swarm": "^0.26.4", "libp2p-webrtc-star": "^0.7.0", "libp2p-websockets": "^0.9.1", "mafmt": "^2.1.2", diff --git a/src/index.js b/src/index.js index 6ae9de3..3b9f0bc 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ const secio = require('libp2p-secio') const libp2p = require('libp2p') class Node extends libp2p { - constructor (peerInfo, peerBook) { + constructor (peerInfo, peerBook, options) { const webRTCStar = new WebRTCStar() const modules = { @@ -27,7 +27,7 @@ class Node extends libp2p { webRTCStar.discovery ] } - super(modules, peerInfo, peerBook) + super(modules, peerInfo, peerBook, options) } }