libp2p-kad-dht
Advanced tools
Comparing version 0.14.1 to 0.14.2
@@ -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) |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173225
+ Addedasmcrypto.js@2.3.2(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addediso-random-stream@1.1.2(transitive)
+ Addedlibp2p-crypto@0.15.00.16.4(transitive)
+ Addedlibp2p-crypto-secp256k1@0.3.1(transitive)
+ Addednode-forge@0.10.0(transitive)
+ Addedpeer-id@0.12.5(transitive)
+ Addedpeer-info@0.15.1(transitive)
+ Addedpem-jwk@2.0.0(transitive)
+ Addedunique-by@1.0.0(transitive)
+ Addedursa-optional@0.10.20.9.10(transitive)
- Removeddebug@3.2.7(transitive)
- Removedip-address@5.9.4(transitive)
- Removedjsbn@1.1.0(transitive)
- Removedlibp2p-crypto@0.12.1(transitive)
- Removedlodash.filter@4.6.0(transitive)
- Removedlodash.map@4.6.0(transitive)
- Removedlodash.uniqby@4.7.0(transitive)
- Removedmultiaddr@4.0.0(transitive)
- Removedpeer-id@0.10.7(transitive)
- Removedpeer-info@0.14.1(transitive)
- Removedsprintf-js@1.1.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedcids@~0.5.7
Updateddebug@^4.1.1
Updatedhashlru@^2.3.0
Updatedlibp2p-crypto@~0.15.0
Updatedpeer-info@~0.15.0
Updatedpull-stream@^3.6.9