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

View file

@ -55,6 +55,6 @@ declare const globalDirectories: {
```
*/
readonly yarn: globalDirectories.GlobalDirectories;
}
};
export = globalDirectories;

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

2
node_modules/global-dirs/license generated vendored
View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View file

@ -1,16 +1,17 @@
{
"name": "global-dirs",
"version": "2.0.1",
"version": "3.0.0",
"description": "Get the directory of globally installed packages and binaries",
"license": "MIT",
"repository": "sindresorhus/global-dirs",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "xo && ava && tsd"
@ -43,13 +44,13 @@
"resolve"
],
"dependencies": {
"ini": "^1.3.5"
"ini": "2.0.0"
},
"devDependencies": {
"ava": "^2.4.0",
"execa": "^3.2.0",
"import-fresh": "^3.1.0",
"tsd": "^0.10.0",
"xo": "^0.25.3"
"execa": "^5.0.0",
"import-fresh": "^3.3.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
}
}

7
node_modules/global-dirs/readme.md generated vendored
View file

@ -1,17 +1,15 @@
# global-dirs [![Build Status](https://travis-ci.org/sindresorhus/global-dirs.svg?branch=master)](https://travis-ci.org/sindresorhus/global-dirs)
# global-dirs
> Get the directory of globally installed packages and binaries
Uses the same resolution logic as `npm` and `yarn`.
## Install
```
$ npm install global-dirs
```
## Usage
```js
@ -30,7 +28,6 @@ console.log(globalDirectories.yarn.packages);
//=> '/Users/sindresorhus/.config/yarn/global/node_modules'
```
## API
### globalDirectories
@ -56,14 +53,12 @@ Directory with directories for packages and binaries. You probably want either o
Equivalent to `npm prefix --global`.
## Related
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally
---
<div align="center">