New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dht-universal

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dht-universal - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "dht-universal",
"version": "0.1.0",
"version": "0.1.1",
"description": "Universal wrapper for @hyperswarm/dht and @hyperswarm/dht-relay working in Node.js and the Browser",

@@ -5,0 +5,0 @@ "keywords": [

@@ -74,2 +74,6 @@ /// <reference types="node" />

static keyPair: (seed?: Uint8Array) => KeyPair;
/** Return an instance of the DHT after trying to open one of the relay sockets in the browser, and awaits node.ready() */
static create: (opts: DHTOpts & {
relays?: string[];
}) => Promise<DHT>;
/** Returns a promise that resolves after the node is bootstrapped */

@@ -101,6 +105,3 @@ ready(): Promise<void>;

announce: (topic: Uint8Array, keyPair?: KeyPair) => Query;
create: (opts: DHTOpts & {
relays?: string[];
}) => Promise<DHT>;
}
//# sourceMappingURL=interfaces.d.ts.map

Sorry, the diff of this file is not supported yet

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