Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

chore: update deps #144

Merged
merged 4 commits into from
May 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"coverage": "aegir coverage",
"coverage-publish": "aegir coverage --provider coveralls"
},
"pre-commit": [
"pre-push": [
"lint",
"test"
],
Expand All @@ -46,21 +46,19 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-webrtc-star#readme",
"devDependencies": {
"aegir": "^13.0.6",
"aegir": "^13.1.0",
"bl": "^1.2.2",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
"electron-webrtc": "^0.3.0",
"gulp": "^3.9.1",
"lodash": "^4.17.5",
"lodash": "^4.17.10",
"mafmt": "^6.0.0",
"pre-commit": "^1.2.2",
"safe-buffer": "^5.1.1",
"wrtc": "0.1.1"
},
"dependencies": {
"async": "^2.6.0",
"class-is": "^1.0.0",
"class-is": "^1.1.0",
"debug": "^3.1.0",
"detect-node": "^2.0.3",
"epimetheus": "^1.0.55",
Expand All @@ -69,12 +67,12 @@
"interface-connection": "~0.3.2",
"mafmt": "^6.0.0",
"minimist": "^1.2.0",
"multiaddr": "^4.0.0",
"multiaddr": "^5.0.0",
"once": "^1.4.0",
"peer-id": "~0.10.7",
"peer-info": "~0.14.0",
"pull-stream": "^3.6.7",
"simple-peer": "^9.0.0",
"peer-info": "~0.14.1",
"pull-stream": "^3.6.8",
"simple-peer": "^9.1.1",
"socket.io": "^2.1.0",
"socket.io-client": "^2.1.0",
"stream-to-pull-stream": "^1.7.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function cleanMultiaddr (maStr) {
})[0]

ma = ma.decapsulate('ipfs')
ma = ma.encapsulate('p2p-webrtc-star')
ma = ma.encapsulate('/p2p-webrtc-star')
ma = ma.encapsulate(`/ipfs/${tuppleIPFS[1]}`)
maStr = ma.toString()
}
Expand Down
3 changes: 1 addition & 2 deletions test/transport/dial.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ chai.use(dirtyChai)
const multiaddr = require('multiaddr')
const series = require('async/series')
const pull = require('pull-stream')
const Buffer = require('safe-buffer').Buffer

module.exports = (create) => {
describe('dial', () => {
Expand Down Expand Up @@ -78,7 +77,7 @@ module.exports = (create) => {

it('dial offline / non-exist()ent node on IPv4, check callback', function (done) {
this.timeout(20 * 1000)
let maOffline = multiaddr('ip4/127.0.0.1/tcp/15555/ws/p2p-webrtc-star/ipfs/ABCD')
let maOffline = multiaddr('/ip4/127.0.0.1/tcp/15555/ws/p2p-webrtc-star/ipfs/ABCD')
ws1.dial(maOffline, (err, conn) => {
expect(err).to.exist()
done()
Expand Down
2 changes: 1 addition & 1 deletion test/transport/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = (create) => {
multiaddr('/dnsaddr/signal.libp2p.io/wss/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo1'),
multiaddr('/ip4/127.0.0.1/tcp/9090/ws/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo2'),
multiaddr('/ip4/127.0.0.1/tcp/9090/ws/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo3'),
multiaddr('ip4/127.0.0.1/tcp/9090/ws/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4'),
multiaddr('/ip4/127.0.0.1/tcp/9090/ws/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4'),
multiaddr('/ip4/127.0.0.1/tcp/9090/ws/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4'),
multiaddr('/ip4/127.0.0.1/tcp/9090/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4'),
multiaddr('/ip4/127.0.0.1/tcp/9090/p2p-webrtc-star/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSoooo4' +
Expand Down