Skip to content

Commit aa10486

Browse files
authoredOct 21, 2020
chore: update ipfs-http-client peer dep (#45)
* chore: update ipfs-http-client peer dep Fixes this sort of error: ``` npm ERR! Conflicting peer dependency: ipfs-http-client@46.1.2 npm ERR! node_modules/ipfs-http-client npm ERR! peer ipfs-http-client@"^46.0.0" from libp2p-delegated-content-routing@0.7.0 npm ERR! node_modules/libp2p-delegated-content-routing npm ERR! libp2p-delegated-content-routing@"^0.7.0" from the root project ``` * chore: update deps and fix linting
1 parent 0043e9b commit aa10486

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
 

‎package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"coverage": "aegir coverage"
1919
},
2020
"devDependencies": {
21-
"aegir": "^26.0.0",
22-
"go-ipfs": "^0.6.0",
23-
"ipfs-http-client": "^46.0.0",
24-
"ipfs-utils": "^3.0.0",
25-
"ipfsd-ctl": "^5.0.0",
21+
"aegir": "^28.0.2",
22+
"go-ipfs": "^0.7.0",
23+
"ipfs-http-client": "^47.0.1",
24+
"ipfs-utils": "^4.0.0",
25+
"ipfsd-ctl": "^7.0.2",
2626
"it-drain": "^1.0.0",
2727
"peer-id": "^0.14.0",
2828
"uint8arrays": "^1.1.0"
@@ -35,7 +35,7 @@
3535
"p-queue": "^6.2.1"
3636
},
3737
"peerDependencies": {
38-
"ipfs-http-client": "^46.0.0"
38+
"ipfs-http-client": "^47.0.1"
3939
},
4040
"browser": {
4141
"go-ipfs": false

‎src/index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class DelegatedContentRouting {
6161
*
6262
* @param {CID} key
6363
* @param {object} options
64-
* @param {number} options.timeout How long the query can take. Defaults to 30 seconds
65-
* @param {number} options.numProviders How many providers to find, defaults to 20
64+
* @param {number} options.timeout - How long the query can take. Defaults to 30 seconds
65+
* @param {number} options.numProviders - How many providers to find, defaults to 20
6666
* @returns {AsyncIterable<{ id: PeerId, multiaddrs: Multiaddr[] }>}
6767
*/
6868
async * findProviders (key, options = {}) {
@@ -107,7 +107,6 @@ class DelegatedContentRouting {
107107
* - call refs on the delegated node, so it fetches the content
108108
*
109109
* @param {CID} key
110-
* @param {function(Error)} callback
111110
* @returns {Promise<void>}
112111
*/
113112
async provide (key) {

0 commit comments

Comments
 (0)
Please sign in to comment.