Skip to content

Commit

Permalink
Add support for ZeroNet (#7038)
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 authored and Gudahtt committed Oct 31, 2019
1 parent fe28e0d commit 3060632
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions app/scripts/lib/ens-ipfs/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function setupEnsIpfsResolver ({ provider }) {
url = `https://swarm-gateways.net/bzz:/${hash}${path}${search || ''}`
} else if (type === 'onion' || type === 'onion3') {
url = `http://${hash}.onion${path}${search || ''}`
} else if (type === 'zeronet') {
url = `http://127.0.0.1:43110/${hash}${path}${search || ''}`
}
} catch (err) {
console.warn(err)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"c3": "^0.6.7",
"classnames": "^2.2.5",
"clone": "^2.1.2",
"content-hash": "^2.4.3",
"content-hash": "^2.4.4",
"copy-to-clipboard": "^3.0.8",
"currency-formatter": "^1.4.2",
"d3": "^5.7.0",
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6924,13 +6924,13 @@ [email protected], content-disposition@^0.5.2:
dependencies:
safe-buffer "5.1.2"

content-hash@^2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/content-hash/-/content-hash-2.4.3.tgz#89e6d295bbf2c53fb69b3d8fb43ae572ac7b6096"
integrity sha512-QBfQRlBBCJP94fV8zcUMChGMKzQMAZX6rn36yldc2A16C47tWdOTYjPosyZ7/AfdyW/xB5cP3RgZIAomnUDGIA==
content-hash@^2.4.4:
version "2.4.4"
resolved "https://registry.yarnpkg.com/content-hash/-/content-hash-2.4.4.tgz#4bec87caecfcff8cf1a37645301cbef4728a083f"
integrity sha512-3FaUsqt7VR725pVxe0vIScGI5efmpryIXdVSeXafQ63fb5gRGparAQlAGxTSOiv0yRg7YeliseXuB20ByD1duQ==
dependencies:
cids "^0.6.0"
multicodec "^0.5.4"
multicodec "^0.5.5"
multihashes "^0.4.15"

content-type-parser@^1.0.1:
Expand Down Expand Up @@ -18360,20 +18360,20 @@ multicast-dns@^7.2.0:
dns-packet "^4.0.0"
thunky "^1.0.2"

multicodec@^0.5.4, multicodec@~0.5.0:
version "0.5.4"
resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-0.5.4.tgz#ab2afb0cd00cd853c5a2eecb0dd1404dc7745388"
integrity sha512-0lPLiZ58b2jyXylx2qgda9/6N0YCNIpBxRsZ8sxYayVjEKh58XyNN74VTTQOR/ZCQFgbj0CsqfyRpEDPPlOMkw==
dependencies:
varint "^5.0.0"

multicodec@~0.5.1, multicodec@~0.5.3:
multicodec@^0.5.5, multicodec@~0.5.1, multicodec@~0.5.3:
version "0.5.5"
resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-0.5.5.tgz#55c2535b44eca9ea40a13771420153fe075bb36d"
integrity sha512-1kOifvwAqp9IdiiTKmpK2tS+LY6GHZdKpk3S2EvW4T32vlwDyA3hJoZtGauzqdedUPVNGChnTksEotVOCVlC+Q==
dependencies:
varint "^5.0.0"

multicodec@~0.5.0:
version "0.5.4"
resolved "https://registry.yarnpkg.com/multicodec/-/multicodec-0.5.4.tgz#ab2afb0cd00cd853c5a2eecb0dd1404dc7745388"
integrity sha512-0lPLiZ58b2jyXylx2qgda9/6N0YCNIpBxRsZ8sxYayVjEKh58XyNN74VTTQOR/ZCQFgbj0CsqfyRpEDPPlOMkw==
dependencies:
varint "^5.0.0"

multihashes@^0.4.12:
version "0.4.13"
resolved "https://registry.yarnpkg.com/multihashes/-/multihashes-0.4.13.tgz#d10bd71bd51d24aa894e2a6f1457146bb7bac125"
Expand Down

0 comments on commit 3060632

Please sign in to comment.