Skip to content

Commit

Permalink
chore: upgrade js-ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Jul 13, 2021
1 parent 214104e commit 84a0c48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion npm-shrinkwrap.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 @@ -19,7 +19,7 @@
"windows-elevate": "^1.0.1",
"level-js": "6.0.0",
"wrtc": "^0.4.7",
"ipfs": "0.52.1",
"ipfs": "0.55.4",
"go-ipfs": "^0.6.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const executePostInstall = async () => {
await execPassthru('sudo chmod 4755 -R node_modules/electron/dist/chrome-sandbox')
}

await execPassthru('npm i [email protected] ipfs@0.52.1 [email protected] --no-save')
await execPassthru('npm i [email protected] ipfs@0.55.4 [email protected] --no-save')
await execPassthru('electron-builder install-app-deps')
await execPassthru('npm rebuild ursa-optional')
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/core/ipfs/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ipfsFactory = async (conf = {}) => {
})

try {
await isInstance.start()
// await isInstance.start()
const ipfsID = await isInstance.id()
isInstance.kill = async () => isInstance.stop() // Alias to stop
isInstance.peerId = ipfsID // Add virtual attr needed for broadcasting
Expand All @@ -34,6 +34,7 @@ const ipfsFactory = async (conf = {}) => {
} catch (e) {
await isInstance.stop().catch(() => log.error('Error trying to stop node'))
log.error('Fail on start: cleanup node')
console.log(e)
return false
}
}
Expand Down

0 comments on commit 84a0c48

Please sign in to comment.