fix: use sha256 to checkout external files
This commit is contained in:
parent
f18b89e378
commit
bfc579a584
@ -95,7 +95,7 @@ module.exports = function (sbot, checkout_dir) {
|
|||||||
return cb(null, dst, false)
|
return cb(null, dst, false)
|
||||||
|
|
||||||
// yes, check its hash
|
// yes, check its hash
|
||||||
var hasher = createHash()
|
var hasher = createHash('sha256')
|
||||||
pull(
|
pull(
|
||||||
toPull.source(fs.createReadStream(dst)),
|
toPull.source(fs.createReadStream(dst)),
|
||||||
hasher,
|
hasher,
|
||||||
|
@ -40,8 +40,9 @@ module.exports.open = function (url, sbot, blobs, opts, params) {
|
|||||||
)
|
)
|
||||||
} else
|
} else
|
||||||
console.log(err) // :TODO: something nicer
|
console.log(err) // :TODO: something nicer
|
||||||
} else
|
} else {
|
||||||
shell.openItem(filepath)
|
shell.openItem(filepath)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// open in the browser
|
// open in the browser
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
"electron-prebuilt": "^0.28.2"
|
"electron-prebuilt": "^0.28.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"multiblob": "^1.4.3",
|
"multiblob": "^1.5.0",
|
||||||
"multicb": "^1.1.0",
|
"multicb": "^1.1.0",
|
||||||
"muxrpc": "^5.0.1",
|
"muxrpc": "^5.0.1",
|
||||||
"phoenix-api": "~8.1.0",
|
"phoenix-api": "~8.1.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user