Skip to content

Commit

Permalink
feat(brave): Embedded HTTP Gateway for /ipns/{fqdn} with sharding (#719)
Browse files Browse the repository at this point in the history
feat(brave): Embedded HTTP Gateway for /ipns/{fqdn} with sharding
  • Loading branch information
lidel authored May 8, 2019
2 parents 8a374af + dd4658e commit 4d935ba
Show file tree
Hide file tree
Showing 3 changed files with 337 additions and 291 deletions.
2 changes: 1 addition & 1 deletion add-on/src/lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.optionDefaults = Object.freeze({
ipfsApiUrl: buildIpfsApiUrl(),
ipfsApiPollMs: 3000,
ipfsProxy: true, // window.ipfs
logNamespaces: 'jsipfs*,ipfs*,-*:mfs*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*'
logNamespaces: 'jsipfs*,ipfs*,-*:ipns*,-ipfs:preload*,-ipfs-http-client:request*'
})

function buildCustomGatewayUrl () {
Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@
"@hapi/hapi": "https://github.com/lidel/hapi/tarball/ccbf84ba5edc9b24564fdd166e3ee6d81c4c02d8/hapi.tar.gz",
"pino": "5.12.3",
"hapi-pino": "https://github.com/pinojs/hapi-pino/tarball/3767ed6b67601831e176e084ed82ba4ed9f726e6/hapi-pino.tar.gz",
"ipfs-http-response": "https://github.com/ipfs/js-ipfs-http-response/tarball/7c2a49f43d1903689b50f87e14d1e5f046e3fe78/js-ipfs-http-response.gz",
"ipfs-mfs": "https://github.com/ipfs/js-ipfs-mfs/tarball/c644291f31a57f7bc65318ba8bf83e002b83e030/js-ipfs-mfs.gz",
"iso-stream-http": "0.1.2",
"stream-http": "npm:iso-stream-http@0.1.2",
"pull-to-stream": "0.1.1",
"multiaddr": "6.0.6"
},
"devDependencies": {
"@babel/core": "7.4.3",
"@babel/preset-env": "7.4.3",
"@babel/core": "7.4.4",
"@babel/preset-env": "7.4.4",
"babel-loader": "8.0.5",
"babel-plugin-syntax-async-generators": "6.13.0",
"chai": "4.2.0",
Expand All @@ -86,13 +88,13 @@
"firefox-addons-add-update-version": "https://github.com/lidel/firefox-addons-add-update-version/tarball/7901bf69b4ed122a20cd5e10ed7f8dae9b00dde7/firefox-addons-add-update-version.tar.gz",
"fs-promise": "2.0.3",
"get-firefox": "2.2.1",
"husky": "2.1.0",
"husky": "2.2.0",
"ignore-styles": "5.0.1",
"json": "9.0.6",
"mem-storage-area": "1.0.3",
"mocha": "6.1.4",
"npm-run-all": "4.1.5",
"nyc": "14.0.0",
"nyc": "14.1.0",
"raw-loader": "2.0.0",
"request-progress": "3.0.0",
"shx": "0.3.2",
Expand All @@ -107,25 +109,25 @@
"web-ext": "3.0.0",
"webpack": "4.30.0",
"webpack-bundle-analyzer": "3.3.2",
"webpack-cli": "3.3.1",
"webpack-cli": "3.3.2",
"webpack-merge": "4.2.1"
},
"dependencies": {
"@material/switch": "1.1.0",
"@material/switch": "2.0.0",
"browser-process-hrtime": "1.0.0",
"choo": "6.13.3",
"chrome-dgram": "3.0.1",
"chrome-net": "https://github.com/lidel/chrome-net/tarball/838ffde4a33721888f74783821e0486dfcc88797/chrome-net.tar.gz",
"debug": "4.1.1",
"doc-sniff": "1.0.1",
"drag-and-drop-files": "0.0.1",
"file-type": "10.11.0",
"file-type": "11.0.0",
"filesize": "4.1.2",
"http-dns": "3.0.1",
"http-node": "1.2.0",
"ipfs": "https://github.com/lidel/js-ipfs/tarball/17712a4b86bacb748ed429bd2a3ca73976e54ae0/js-ipfs.tar.gz",
"ipfs": "https://github.com/lidel/js-ipfs/tarball/4081cbd69a252ec8adcec1e965724246669c9e9f/js-ipfs.tar.gz",
"ipfs-css": "0.12.0",
"ipfs-http-client": "30.1.3",
"ipfs-http-client": "30.1.4",
"ipfs-http-response": "0.2.2",
"ipfs-postmsg-proxy": "3.1.1",
"ipfsx": "0.17.0",
Expand Down
Loading

0 comments on commit 4d935ba

Please sign in to comment.