Skip to content

Commit

Permalink
feat(deps): upgraded to latest ssri
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 3, 2017
1 parent ff749e6 commit 9307ca5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js 100644 → 100755
Expand Up @@ -124,7 +124,7 @@ function check (argv) {
!argv.status && results.forEach(lines => {
lines.forEach(l => {
if (!l.err && !argv.quiet) {
console.log(`${l.file}: OK (${l.algorithm})`)
console.log(`${l.file}: OK (${l.hash.algorithm})`)
} else if (l.err) {
if (l.err.code === 'EBADCHECKSUM') {
stats.badChecksums++
Expand Down Expand Up @@ -174,8 +174,8 @@ function processDigestLines (argv, stats, digestFile) {
} else if (integrity && integrity.toString().length) {
const checkFile = fileStream(match[2])
promises.push(
ssri.checkStream(checkFile, integrity).then(algo => {
return {file: match[2], algorithm: algo}
ssri.checkStream(checkFile, integrity).then(hash => {
return {file: match[2], hash}
}).catch(err => {
return {file: match[2], err}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -41,7 +41,7 @@
"license": "CC0-1.0",
"dependencies": {
"split": "^1.0.0",
"ssri": "^2.0.0",
"ssri": "^3.0.0",
"yargs": "^7.0.2"
},
"devDependencies": {
Expand Down

0 comments on commit 9307ca5

Please sign in to comment.