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

Commit

Permalink
Merge pull request #858 from 3box/release/v1.20.2
Browse files Browse the repository at this point in the history
release v1.20.2
  • Loading branch information
zachferland authored Jul 9, 2020
2 parents 5e89a19 + 082e905 commit b50c8e4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 44 deletions.
5 changes: 5 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes

## v1.20.1 - 2020-07-09
Fixes getting verified accounts (getVerifiedAccounts)

* fix: pass correct ipfs mock to resolve did

## v1.20.1 - 2020-06-23
* fix: bump libp2p-pubsub

Expand Down
50 changes: 15 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3box",
"version": "1.20.1",
"version": "1.20.2",
"description": "Interact with user data",
"main": "lib/3box.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/3box.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ class Box extends BoxApi {
if (opts.ghostPinbot) {
ipfs.swarm.connect(opts.ghostPinbot)
}
if (browserHuh && ipfs.libp2p) {
if (browserHuh && ipfs.libp2p && !opts.disableRendezvous) {
ipfs.libp2p.transportManager.listen(multiaddr(RENDEZVOUS_ADDRESS)).catch(console.warn)
}
return ipfs
Expand Down
12 changes: 5 additions & 7 deletions src/utils/verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ const getHttpsResolver = require('https-did-resolver').default
const PROFILE_SERVER_URL = config.profile_server_url

// Mocks ipfs obj for 3id resolve, to resolve through api, until ipfs instance is available
const ipfs = (didServerUrl) => {
return {
dag: {
get: async (cid) => {
const req = `${didServerUrl}/did-doc?cid=${encodeURIComponent(cid)}`
return utils.fetchJson(req)
}
const ipfs = {
dag: {
get: async (cid) => {
const req = `${PROFILE_SERVER_URL}/did-doc?cid=${encodeURIComponent(cid)}`
return utils.fetchJson(req)
}
}
}
Expand Down

0 comments on commit b50c8e4

Please sign in to comment.