bump dependencies

This commit is contained in:
Pavel Murygin 2021-04-09 13:34:14 +03:00
parent edb8ca60e9
commit d9224d5409
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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')
}