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

hyperdht

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperdht - npm Package Compare versions

Comparing version 6.17.1 to 6.17.2

lib/encode.js

3

lib/announcer.js
const safetyCatch = require('safety-catch')
const c = require('compact-encoding')
const Signal = require('signal-promise')
const { encodeUnslab } = require('./encode')
const Sleeper = require('./sleeper')

@@ -20,3 +21,3 @@ const m = require('./messages')

this.suspended = false
this.record = c.encode(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] })
this.record = encodeUnslab(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] })
this.online = new Signal()

@@ -23,0 +24,0 @@

@@ -8,2 +8,3 @@ const c = require('compact-encoding')

const { encodeUnslab } = require('./encode')
const m = require('./messages')

@@ -128,3 +129,3 @@ const { NS, ERROR } = require('./constants')

const announceSelf = b4a.equals(TMP, req.target)
const record = unslab(c.encode(m.peer, peer))
const record = encodeUnslab(m.peer, peer)

@@ -201,4 +202,3 @@ if (announceSelf) {

const entry = c.encode(m.mutableGetResponse, { seq, value, signature })
this.mutables.set(k, unslab(entry))
this.mutables.set(k, encodeUnslab(m.mutableGetResponse, { seq, value, signature }))
req.reply(null)

@@ -205,0 +205,0 @@ }

{
"name": "hyperdht",
"version": "6.17.1",
"version": "6.17.2",
"description": "The DHT powering Hyperswarm",

@@ -5,0 +5,0 @@ "main": "index.js",

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