Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit b50c8e4

Browse files
authored
Merge pull request #858 from 3box/release/v1.20.2
release v1.20.2
2 parents 5e89a19 + 082e905 commit b50c8e4

File tree

5 files changed

+27
-44
lines changed

5 files changed

+27
-44
lines changed

RELEASE-NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## v1.20.1 - 2020-07-09
4+
Fixes getting verified accounts (getVerifiedAccounts)
5+
6+
* fix: pass correct ipfs mock to resolve did
7+
38
## v1.20.1 - 2020-06-23
49
* fix: bump libp2p-pubsub
510

package-lock.json

Lines changed: 15 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "3box",
3-
"version": "1.20.1",
3+
"version": "1.20.2",
44
"description": "Interact with user data",
55
"main": "lib/3box.js",
66
"directories": {

src/3box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ class Box extends BoxApi {
583583
if (opts.ghostPinbot) {
584584
ipfs.swarm.connect(opts.ghostPinbot)
585585
}
586-
if (browserHuh && ipfs.libp2p) {
586+
if (browserHuh && ipfs.libp2p && !opts.disableRendezvous) {
587587
ipfs.libp2p.transportManager.listen(multiaddr(RENDEZVOUS_ADDRESS)).catch(console.warn)
588588
}
589589
return ipfs

src/utils/verifier.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ const getHttpsResolver = require('https-did-resolver').default
1111
const PROFILE_SERVER_URL = config.profile_server_url
1212

1313
// Mocks ipfs obj for 3id resolve, to resolve through api, until ipfs instance is available
14-
const ipfs = (didServerUrl) => {
15-
return {
16-
dag: {
17-
get: async (cid) => {
18-
const req = `${didServerUrl}/did-doc?cid=${encodeURIComponent(cid)}`
19-
return utils.fetchJson(req)
20-
}
14+
const ipfs = {
15+
dag: {
16+
get: async (cid) => {
17+
const req = `${PROFILE_SERVER_URL}/did-doc?cid=${encodeURIComponent(cid)}`
18+
return utils.fetchJson(req)
2119
}
2220
}
2321
}

0 commit comments

Comments
 (0)