nav tabs on admin dashboard
This commit is contained in:
4
node_modules/cacache/lib/content/write.js
generated
vendored
4
node_modules/cacache/lib/content/write.js
generated
vendored
@@ -28,7 +28,9 @@ function write (cache, data, opts) {
|
||||
if (typeof opts.size === 'number' && data.length !== opts.size) {
|
||||
return BB.reject(sizeError(opts.size, data.length))
|
||||
}
|
||||
const sri = ssri.fromData(data, opts)
|
||||
const sri = ssri.fromData(data, {
|
||||
algorithms: opts.algorithms
|
||||
})
|
||||
if (opts.integrity && !ssri.checkData(data, opts.integrity, opts)) {
|
||||
return BB.reject(checksumError(opts.integrity, sri))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user