fix: use sha256 to checkout external files

This commit is contained in:
Paul Frazee 2015-07-10 13:57:20 -05:00
parent f18b89e378
commit bfc579a584
3 changed files with 4 additions and 3 deletions

View File

@ -95,7 +95,7 @@ module.exports = function (sbot, checkout_dir) {
return cb(null, dst, false)
// yes, check its hash
var hasher = createHash()
var hasher = createHash('sha256')
pull(
toPull.source(fs.createReadStream(dst)),
hasher,

View File

@ -40,8 +40,9 @@ module.exports.open = function (url, sbot, blobs, opts, params) {
)
} else
console.log(err) // :TODO: something nicer
} else
} else {
shell.openItem(filepath)
}
})
} else {
// open in the browser

View File

@ -25,7 +25,7 @@
"electron-prebuilt": "^0.28.2"
},
"dependencies": {
"multiblob": "^1.4.3",
"multiblob": "^1.5.0",
"multicb": "^1.1.0",
"muxrpc": "^5.0.1",
"phoenix-api": "~8.1.0",