Skip to content

Commit

Permalink
feat: ipfsd-ctl 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Apr 22, 2020
1 parent 6ceb02e commit aa78dd4
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 20 deletions.
123 changes: 110 additions & 13 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
Expand Up @@ -85,7 +85,7 @@
"i18next-icu": "^1.3.1",
"i18next-node-fs-backend": "^2.1.3",
"ipfs-http-client": "^44.0.0",
"ipfsd-ctl": "^3.1.0",
"ipfsd-ctl": "^4.0.1",
"is-ipfs": "^1.0.0",
"it-all": "^1.0.1",
"it-concat": "^1.0.0",
Expand Down
6 changes: 0 additions & 6 deletions src/daemon/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ async function cleanup (ipfsd) {
}

async function spawn ({ flags, path, keysize }) {
// js-ipfsd-ctl stopped supporting IPFS_PATH after 1.x
// NOTE: https://github.com/ipfs/js-ipfsd-ctl/issues/497
if (process.env.IPFS_PATH) {
path = process.env.IPFS_PATH
}

const ipfsd = await Ctl.createController({
ipfsHttpModule: require('ipfs-http-client'),
ipfsBin: require('go-ipfs-dep').path(),
Expand Down

0 comments on commit aa78dd4

Please sign in to comment.