mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-06-09 15:01:35 +00:00
chore: update deps (#122)
This commit is contained in:
parent
511d4b4c99
commit
dff8549c7c
12
package.json
12
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 <daviddias.p@gmail.com>",
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user