Socket
Socket
Sign inDemoInstall

libp2p-kad-dht

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p-kad-dht - npm Package Compare versions

Comparing version 0.14.1 to 0.14.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

<a name="0.14.2"></a>
## [0.14.2](https://github.com/libp2p/js-libp2p-kad-dht/compare/v0.14.1...v0.14.2) (2019-01-04)
<a name="0.14.1"></a>

@@ -2,0 +7,0 @@ ## [0.14.1](https://github.com/libp2p/js-libp2p-kad-dht/compare/v0.14.0...v0.14.1) (2018-12-11)

30

package.json
{
"name": "libp2p-kad-dht",
"version": "0.14.1",
"version": "0.14.2",
"description": "JavaScript implementation of the Kad-DHT for libp2p",

@@ -42,10 +42,10 @@ "leadMaintainer": "Vasco Santos <vasco.santos@moxy.studio>",

"base32.js": "~0.1.0",
"cids": "~0.5.3",
"debug": "^3.1.0",
"cids": "~0.5.7",
"debug": "^4.1.1",
"err-code": "^1.1.2",
"hashlru": "^2.2.1",
"hashlru": "^2.3.0",
"heap": "~0.2.6",
"interface-datastore": "~0.6.0",
"k-bucket": "^4.0.1",
"libp2p-crypto": "~0.13.0",
"libp2p-crypto": "~0.15.0",
"libp2p-record": "~0.6.1",

@@ -55,7 +55,7 @@ "multihashes": "~0.4.14",

"peer-id": "~0.11.0",
"peer-info": "~0.14.1",
"peer-info": "~0.15.0",
"priorityqueue": "~0.2.1",
"protons": "^1.0.1",
"pull-length-prefixed": "^1.3.1",
"pull-stream": "^3.6.8",
"pull-stream": "^3.6.9",
"varint": "^5.0.0",

@@ -65,14 +65,14 @@ "xor-distance": "^1.0.0"

"devDependencies": {
"aegir": "^15.3.0",
"aegir": "^18.0.2",
"chai": "^4.2.0",
"datastore-level": "~0.9.0",
"datastore-level": "~0.10.0",
"dirty-chai": "^2.0.1",
"interface-connection": "~0.3.2",
"libp2p-mplex": "~0.8.1",
"libp2p-switch": "~0.40.5",
"libp2p-tcp": "~0.12.0",
"lodash": "^4.17.10",
"interface-connection": "~0.3.3",
"libp2p-mplex": "~0.8.4",
"libp2p-switch": "~0.41.4",
"libp2p-tcp": "~0.13.0",
"lodash": "^4.17.11",
"lodash.random": "^3.2.0",
"lodash.range": "^3.2.0",
"peer-book": "~0.8.0",
"peer-book": "~0.9.0",
"sinon": "^6.3.4"

@@ -79,0 +79,0 @@ },

@@ -45,4 +45,4 @@ 'use strict'

options = options || {}
options.validators = options.validators
options.selectors = options.selectors
options.validators = options.validators || {}
options.selectors = options.selectors || {}

@@ -49,0 +49,0 @@ /**

@@ -513,3 +513,3 @@ 'use strict'

if (pathProviders.length >= pathSize) {
return cb(null, {success: true})
return cb(null, { success: true })
}

@@ -516,0 +516,0 @@

@@ -126,3 +126,3 @@ 'use strict'

pull(
this.datastore.query({prefix: c.PROVIDERS_KEY_PREFIX}),
this.datastore.query({ prefix: c.PROVIDERS_KEY_PREFIX }),
pull.map((entry) => {

@@ -320,3 +320,3 @@ const parts = entry.key.toString().split('/')

pull(
store.query({prefix: makeProviderKey(cid)}),
store.query({ prefix: makeProviderKey(cid) }),
pull.map((entry) => {

@@ -323,0 +323,0 @@ const parts = entry.key.toString().split('/')

@@ -733,3 +733,3 @@ /* eslint-env mocha */

(cb) => dht._add(peerInfos[1], cb),
(cb) => dht._nearestPeersToQuery({key: 'hello'}, cb)
(cb) => dht._nearestPeersToQuery({ key: 'hello' }, cb)
], (err, res) => {

@@ -755,3 +755,3 @@ expect(err).to.not.exist()

(cb) => dht._add(peerInfos[2], cb),
(cb) => dht._betterPeersToQuery({key: 'hello'}, peerInfos[1], cb)
(cb) => dht._betterPeersToQuery({ key: 'hello' }, peerInfos[1], cb)
], (err, res) => {

@@ -758,0 +758,0 @@ expect(err).to.not.exist()

@@ -32,3 +32,3 @@ /* eslint-env mocha */

this.timeout(10 * 1000)
map(range(5), (n, cb) => PeerId.create({bits: 1024}, cb), (err, peers) => {
map(range(5), (n, cb) => PeerId.create({ bits: 1024 }, cb), (err, peers) => {
expect(err).to.not.exist()

@@ -35,0 +35,0 @@

@@ -18,3 +18,3 @@ /* eslint-env mocha */

function createPeerId (n, callback) {
map(range(n), (i, cb) => PeerId.create({bits: 512}, cb), callback)
map(range(n), (i, cb) => PeerId.create({ bits: 512 }, cb), callback)
}

@@ -21,0 +21,0 @@

@@ -9,3 +9,3 @@ 'use strict'

function createPeerInfo (n, callback) {
times(n, (i, cb) => PeerId.create({bits: 512}, cb), (err, ids) => {
times(n, (i, cb) => PeerId.create({ bits: 512 }, cb), (err, ids) => {
if (err) { return callback(err) }

@@ -12,0 +12,0 @@ callback(null, ids.map((i) => new PeerInfo(i)))

@@ -15,3 +15,3 @@ 'use strict'

(cb) => multihashing(bytes, 'sha2-256', cb),
(h, cb) => cb(null, {cid: new CID(h), value: bytes})
(h, cb) => cb(null, { cid: new CID(h), value: bytes })
], cb)

@@ -18,0 +18,0 @@ }, callback)

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