Skip to content

Commit 528adf3

Browse files
authored
chore: update deps (#30)
* chore: update deps * refactor: simplify timeout option * fix: pass correct timeout option * chore: update http client
1 parent bdb89b6 commit 528adf3

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
"coverage": "aegir coverage"
1919
},
2020
"devDependencies": {
21-
"aegir": "^21.4.5",
21+
"aegir": "^21.7.0",
2222
"chai": "^4.2.0",
2323
"dirty-chai": "^2.0.1",
2424
"go-ipfs-dep": "0.4.23-3",
25-
"ipfs-utils": "^1.2.1",
25+
"ipfs-utils": "^2.2.0",
2626
"ipfsd-ctl": "^3.0.0"
2727
},
2828
"dependencies": {
2929
"debug": "^4.1.1",
30-
"ipfs-http-client": "^43.0.1",
31-
"p-queue": "^6.2.1",
32-
"peer-id": "~0.13.5",
33-
"peer-info": "^0.17.1"
30+
"ipfs-http-client": "^44.0.0",
31+
"p-queue": "^6.3.0",
32+
"peer-id": "^0.13.11",
33+
"peer-info": "^0.17.5"
3434
},
3535
"contributors": [
3636
"Jacob Heun <[email protected]>",

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ class DelegatedPeerRouting {
4949
try {
5050
return await this._httpQueue.add(async () => {
5151
const { addrs } = await this.dht.findPeer(id, {
52-
searchParams: {
53-
timeout: `${options.timeout}ms`// The api requires specification of the time unit (s/ms)
54-
}
52+
timeout: options.timeout
5553
})
5654

5755
const peerInfo = new PeerInfo(PeerId.createFromCID(id))

0 commit comments

Comments
 (0)