Fix dependabot issues

This commit is contained in:
Andrew Eisenberg 2021-10-21 15:24:20 -07:00
parent c89d9bd8b0
commit 531c6ba7c8
705 changed files with 53406 additions and 20466 deletions

6
node_modules/global-dirs/index.js generated vendored
View file

@ -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);
};