You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
Currently, https://github.com/libp2p/js-libp2p-websocket-star/blob/master/src/utils.js#L46-L70 checks for the supported types. This is a tad complex and having this sort of "catch all and verify if this is in the circle of types I support" makes it hard to read.
Instead, be explicit. If you are looking to check if it is a valid multiaddr, use multiaddr.isMultiaddr
The text was updated successfully, but these errors were encountered: