Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyper-sdk

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyper-sdk - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

8

index.js

@@ -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`)

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc