From dff8549c7c9527b0e0927a265a71af229d8def3e Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 22 Feb 2021 10:51:43 +0000 Subject: [PATCH] chore: update deps (#122) --- package.json | 12 ++++++------ src/socket-to-conn.js | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5601c4e..4a75314 100644 --- a/package.json +++ b/package.json @@ -41,26 +41,26 @@ "abortable-iterator": "^3.0.0", "class-is": "^1.1.0", "debug": "^4.2.0", - "err-code": "^2.0.3", - "ipfs-utils": "^4.0.1", + "err-code": "^3.0.1", + "ipfs-utils": "^6.0.1", "it-ws": "^3.0.2", "libp2p-utils": "^0.2.1", "mafmt": "^8.0.1", "multiaddr": "^8.1.1", "multiaddr-to-uri": "^6.0.0", "p-defer": "^3.0.0", - "p-timeout": "^3.2.0" + "p-timeout": "^4.1.0" }, "devDependencies": { "abort-controller": "^3.0.0", - "aegir": "^28.1.0", + "aegir": "^30.3.0", "bl": "^4.0.0", "is-loopback-addr": "^1.0.1", "it-goodbye": "^2.0.1", "it-pipe": "^1.0.1", - "libp2p-interfaces": "^0.7.1", + "libp2p-interfaces": "^0.8.3", "streaming-iterables": "^5.0.2", - "uint8arrays": "^1.1.0" + "uint8arrays": "^2.1.2" }, "contributors": [ "David Dias ", diff --git a/src/socket-to-conn.js b/src/socket-to-conn.js index c97b517..0efda21 100644 --- a/src/socket-to-conn.js +++ b/src/socket-to-conn.js @@ -38,7 +38,8 @@ module.exports = (stream, options = {}) => { conn: stream, localAddr: options.localAddr || (stream.localAddress && stream.localPort - ? toMultiaddr(stream.localAddress, stream.localPort) : undefined), + ? toMultiaddr(stream.localAddress, stream.localPort) + : undefined), // If the remote address was passed, use it - it may have the peer ID encapsulated remoteAddr: options.remoteAddr || toMultiaddr(stream.remoteAddress, stream.remotePort),