@multiformats/multiaddr
Advanced tools
Comparing version 11.6.0 to 11.6.1
@@ -43,3 +43,3 @@ /** | ||
const records = await resolver.resolveTxt(`_dnsaddr.${hostname}`); | ||
let addresses = records.flat().map((a) => a.split('=')[1]); | ||
let addresses = records.flat().map((a) => a.split('=')[1]).filter(Boolean); | ||
if (peerId != null) { | ||
@@ -46,0 +46,0 @@ addresses = addresses.filter((entry) => entry.includes(peerId)); |
{ | ||
"name": "@multiformats/multiaddr", | ||
"version": "11.6.0", | ||
"version": "11.6.1", | ||
"description": "multiaddr implementation (binary + string representation of network addresses)", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -52,3 +52,3 @@ /** | ||
let addresses = records.flat().map((a) => a.split('=')[1]) | ||
let addresses = records.flat().map((a) => a.split('=')[1]).filter(Boolean) | ||
@@ -55,0 +55,0 @@ if (peerId != null) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171480