diff --git a/node_modules/cacache/lib/entry-index.js b/node_modules/cacache/lib/entry-index.js index ace910c113c73..f73a11ca29ddf 100644 --- a/node_modules/cacache/lib/entry-index.js +++ b/node_modules/cacache/lib/entry-index.js @@ -20,9 +20,7 @@ const indexV = require('../package.json')['cache-version'].index const { moveFile } = require('@npmcli/fs') const pMap = require('p-map') -const lsStreamOpts = { - concurrency: 5, -} +const lsStreamConcurrency = 5 module.exports.NotFoundError = class NotFoundError extends Error { @@ -220,11 +218,11 @@ function lsStream (cache) { throw err } }, - { concurrency: lsStreamOpts.concurrency }) + { concurrency: lsStreamConcurrency }) }, - { concurrency: lsStreamOpts.concurrency }) + { concurrency: lsStreamConcurrency }) }, - { concurrency: lsStreamOpts.concurrency }) + { concurrency: lsStreamConcurrency }) stream.end() return stream }).catch(err => stream.emit('error', err))