mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 18:02:28 +00:00
bump dependencies
This commit is contained in:
parent
edb8ca60e9
commit
d9224d5409
@ -62,9 +62,9 @@
|
||||
"it-pair": "^1.0.0",
|
||||
"it-pipe": "^1.1.0",
|
||||
"it-pushable": "^1.4.2",
|
||||
"libp2p-crypto": "^0.19.0",
|
||||
"libp2p-crypto": "fluencelabs/js-libp2p-crypto",
|
||||
"libp2p-tcp": "^0.15.0",
|
||||
"multiaddr": "^8.1.2",
|
||||
"multiaddr": "^9.0.1",
|
||||
"multibase": "^4.0.2",
|
||||
"multihashes": "^4.0.2",
|
||||
"p-defer": "^3.0.0",
|
||||
|
@ -240,6 +240,7 @@ module.exports = Connection
|
||||
* @param {{ direction: any; timeline: any; multiplexer?: string | undefined; encryption?: string | undefined; }} stat
|
||||
*/
|
||||
function validateArgs (localAddr, localPeer, remotePeer, newStream, close, getStreams, stat) {
|
||||
// @ts-ignore
|
||||
if (localAddr && !multiaddr.isMultiaddr(localAddr)) {
|
||||
throw errCode(new Error('localAddr must be an instance of multiaddr'), 'ERR_INVALID_PARAMETERS')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user