Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2019-06-29 02:22:53 +0300
committerisaacs <i@izs.me>2019-06-30 06:23:54 +0300
commit8bd8e909f0699654e8ae5711e3421ad8edfcdcea (patch)
treeb943dc7dede5e7e50f49bc27bcfc94652f9ac37f /node_modules/cacache/lib/verify.js
parent87fef4e356f30941f2ee39f2f774ad2086239a00 (diff)
cacache@11.3.3
Diffstat (limited to 'node_modules/cacache/lib/verify.js')
-rw-r--r--node_modules/cacache/lib/verify.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/cacache/lib/verify.js b/node_modules/cacache/lib/verify.js
index 3468bc6b8..8eaab0b7d 100644
--- a/node_modules/cacache/lib/verify.js
+++ b/node_modules/cacache/lib/verify.js
@@ -130,7 +130,7 @@ function garbageCollect (cache, opts) {
})
})
}
- }, {concurrency: opts.concurrency}))
+ }, { concurrency: opts.concurrency }))
})
})
}
@@ -150,7 +150,7 @@ function verifyContent (filepath, sri) {
contentInfo.valid = false
})
}).then(() => contentInfo)
- }).catch({code: 'ENOENT'}, () => ({size: 0, valid: false}))
+ }).catch({ code: 'ENOENT' }, () => ({ size: 0, valid: false }))
}
function rebuildIndex (cache, opts) {
@@ -183,7 +183,7 @@ function rebuildIndex (cache, opts) {
}
return BB.map(Object.keys(buckets), key => {
return rebuildBucket(cache, buckets[key], stats, opts)
- }, {concurrency: opts.concurrency}).then(() => stats)
+ }, { concurrency: opts.concurrency }).then(() => stats)
})
}
@@ -200,7 +200,7 @@ function rebuildBucket (cache, bucket, stats, opts) {
metadata: entry.metadata,
size: entry.size
}).then(() => { stats.totalEntries++ })
- }).catch({code: 'ENOENT'}, () => {
+ }).catch({ code: 'ENOENT' }, () => {
stats.rejectedEntries++
stats.missingContent++
})