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

@hyperswarm/rpc

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperswarm/rpc - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

index.js

@@ -13,8 +13,9 @@ const EventEmitter = require('events')

debug,
dht = new DHT({ keyPair, bootstrap, debug })
dht
} = options
this._dht = dht
this._dht = dht || new DHT({ keyPair, bootstrap, debug })
this._defaultKeyPair = keyPair
this._defaultValueEncoding = valueEncoding
this._autoDestroy = !dht

@@ -71,2 +72,4 @@ this._clients = new Set()

}
if (this._autoDestroy) await this._dht.destroy()
}

@@ -73,0 +76,0 @@ }

{
"name": "@hyperswarm/rpc",
"version": "2.0.0",
"version": "2.0.1",
"description": "RPC over the Hyperswarm DHT",

@@ -27,3 +27,3 @@ "main": "index.js",

"devDependencies": {
"@hyperswarm/testnet": "^1.1.0",
"@hyperswarm/testnet": "^2.0.0",
"brittle": "^2.3.1",

@@ -30,0 +30,0 @@ "compact-encoding": "^2.6.1",

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