Comparing version 4.2.1 to 4.2.2
@@ -110,3 +110,9 @@ import HyperSwarm from 'hyperswarm' | ||
const asString = raw.toString('utf8') | ||
if (asString.startsWith(this.dnsLinkPrefix)) return asString.slice(this.dnsLinkPrefix.length) | ||
if (asString.startsWith(this.dnsLinkPrefix)) { | ||
if(asString.endsWith('/')) { | ||
return asString.slice(this.dnsLinkPrefix.length, -1) | ||
} | ||
return asString.slice(this.dnsLinkPrefix.length) | ||
} | ||
} | ||
@@ -113,0 +119,0 @@ throw new Error(`Unable to resolve DNSLink domain for ${domain}. If you are the site operator, please add a TXT record pointing at _dnslink.${domain} with the value dnslink=/hyper/YOUR_KEY_IN_Z32_HERE`) |
{ | ||
"name": "hyper-sdk", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "A Software Development Kit for the Hypercore-Protocol", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
28585
473