Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
6
node_modules/global-dirs/index.js
generated
vendored
6
node_modules/global-dirs/index.js
generated
vendored
|
|
@ -9,12 +9,14 @@ const isWindows = process.platform === 'win32';
|
|||
const readRc = filePath => {
|
||||
try {
|
||||
return ini.parse(fs.readFileSync(filePath, 'utf8')).prefix;
|
||||
} catch (_) {}
|
||||
} catch {}
|
||||
};
|
||||
|
||||
const getEnvNpmPrefix = () => {
|
||||
// TODO: Remove the `.reduce` call.
|
||||
// eslint-disable-next-line unicorn/no-array-reduce
|
||||
return Object.keys(process.env).reduce((prefix, name) => {
|
||||
return (/^npm_config_prefix$/i).test(name) ? process.env[name] : prefix;
|
||||
return /^npm_config_prefix$/i.test(name) ? process.env[name] : prefix;
|
||||
}, undefined);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue