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:
Diffstat (limited to 'node_modules/ssri/index.js')
-rw-r--r--node_modules/ssri/index.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/node_modules/ssri/index.js b/node_modules/ssri/index.js
index 6ec0d73df..8ece662ba 100644
--- a/node_modules/ssri/index.js
+++ b/node_modules/ssri/index.js
@@ -214,12 +214,9 @@ module.exports.checkStream = checkStream
function checkStream (stream, sri, opts) {
opts = opts || {}
const P = opts.Promise || Promise
- const checker = integrityStream({
- integrity: sri,
- size: opts.size,
- strict: opts.strict,
- pickAlgorithm: opts.pickAlgorithm
- })
+ const checker = integrityStream(Object.assign({}, opts, {
+ integrity: sri
+ }))
return new P((resolve, reject) => {
stream.pipe(checker)
stream.on('error', reject)