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

bittorrent-dht

Package Overview
Dependencies
Maintainers
8
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-dht - npm Package Compare versions

Comparing version 8.3.0 to 8.4.0

2

AUTHORS.md

@@ -40,2 +40,2 @@ # Authors

#### Generated by bin/update-authors.sh.
#### Generated by tools/update-authors.sh.

@@ -275,5 +275,2 @@ module.exports = DHT

}
if (isMutable && !opts.k) {
throw new Error('opts.k ed25519 public key required for mutable put')
}
if (isMutable && opts.k.length !== 32) {

@@ -326,5 +323,6 @@ throw new Error('opts.k ed25519 public key must be 32 bytes')

else if (Buffer.isBuffer(opts.sig)) message.a.sig = opts.sig
} else {
this._values.set(key.toString('hex'), message.a)
}
this._values.set(key.toString('hex'), message.a)
this._rpc.queryAll(table.closest(key), message, null, function (err, n) {

@@ -367,3 +365,3 @@ if (err) return cb(err, key, n)

if (value) {
if (value && (opts.cache !== false)) {
value = createGetResponse(this._rpc.id, null, value)

@@ -392,2 +390,4 @@ return process.nextTick(done)

if (opts.salt) r.salt = Buffer.from(opts.salt)
if (isMutable) {

@@ -749,3 +749,2 @@ if (!verify || !r.sig || !r.k) return true

r.k = value.k
if (value.salt) r.salt = value.salt
if (typeof value.seq === 'number') r.seq = value.seq

@@ -752,0 +751,0 @@ }

{
"name": "bittorrent-dht",
"description": "Simple, robust, BitTorrent DHT implementation",
"version": "8.3.0",
"version": "8.4.0",
"author": {

@@ -52,3 +52,3 @@ "name": "WebTorrent, LLC",

"scripts": {
"update-authors": "./bin/update-authors.sh",
"update-authors": "./tools/update-authors.sh",
"test": "standard && tape test/*.js",

@@ -55,0 +55,0 @@ "test-live": "tape test/live/*.js"

@@ -313,2 +313,4 @@ # bittorrent-dht [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

* `opts.verify` - override the default ed25519 verification function supplied during DHT instantiation.
* `opts.salt` - optional salt buffer (if any) that was used to calculate the hash. Must be specified if included in the hash.
* `opts.cache` - use locally cached response value when available instead of performing a network lookup (defaults to true).

@@ -323,3 +325,2 @@ `res` objects are similar to the options objects written to the DHT with

* `res.seq` - the sequence (optional, only present for mutable data)
* `res.salt` - the salt (optional, only present for mutable data)

@@ -326,0 +327,0 @@ ### events

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