Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

44
node_modules/pkg-dir/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,44 @@
declare const pkgDir: {
/**
Find the root directory of a Node.js project or npm package.
@param cwd - Directory to start from. Default: `process.cwd()`.
@returns The project root path or `undefined` if it couldn't be found.
@example
```
// /
// └── Users
// └── sindresorhus
// └── foo
// ├── package.json
// └── bar
// ├── baz
// └── example.js
// example.js
import pkgDir = require('pkg-dir');
(async () => {
const rootDir = await pkgDir(__dirname);
console.log(rootDir);
//=> '/Users/sindresorhus/foo'
})();
```
*/
(cwd?: string): Promise<string | undefined>;
/**
Synchronously find the root directory of a Node.js project or npm package.
@param cwd - Directory to start from. Default: `process.cwd()`.
@returns The project root path or `undefined` if it couldn't be found.
*/
sync(cwd?: string): string | undefined;
// TODO: Remove this for the next major release
default: typeof pkgDir;
};
export = pkgDir;

13
node_modules/pkg-dir/index.js generated vendored
View File

@@ -2,9 +2,16 @@
const path = require('path');
const findUp = require('find-up');
module.exports = cwd => findUp('package.json', {cwd}).then(fp => fp ? path.dirname(fp) : null);
const pkgDir = async cwd => {
const filePath = await findUp('package.json', {cwd});
return filePath && path.dirname(filePath);
};
module.exports = pkgDir;
// TODO: Remove this for the next major release
module.exports.default = pkgDir;
module.exports.sync = cwd => {
const fp = findUp.sync('package.json', {cwd});
return fp ? path.dirname(fp) : null;
const filePath = findUp.sync('package.json', {cwd});
return filePath && path.dirname(filePath);
};

44
node_modules/pkg-dir/package.json generated vendored
View File

@@ -1,34 +1,27 @@
{
"_args": [
[
"pkg-dir@3.0.0",
"/Users/drew.heavner/Documents/Github/upload-google-play"
]
],
"_development": true,
"_from": "pkg-dir@^3.0.0",
"_id": "pkg-dir@3.0.0",
"_from": "pkg-dir@^4.2.0",
"_id": "pkg-dir@4.2.0",
"_inBundle": false,
"_integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==",
"_integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
"_location": "/pkg-dir",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "pkg-dir@^3.0.0",
"raw": "pkg-dir@^4.2.0",
"name": "pkg-dir",
"escapedName": "pkg-dir",
"rawSpec": "^3.0.0",
"rawSpec": "^4.2.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
"fetchSpec": "^4.2.0"
},
"_requiredBy": [
"/import-local"
],
"_resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz",
"_shasum": "2749020f239ed990881b1f71210d51eb6523bea3",
"_spec": "pkg-dir@^3.0.0",
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play/node_modules/import-local",
"_resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
"_shasum": "f099133df7ede422e81d1d8448270eeb3e4261f3",
"_spec": "pkg-dir@^4.2.0",
"_where": "/home/codespace/workspace/upload-google-play/node_modules/import-local",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -39,19 +32,22 @@
},
"bundleDependencies": false,
"dependencies": {
"find-up": "^3.0.0"
"find-up": "^4.0.0"
},
"deprecated": false,
"description": "Find the root directory of a Node.js project or npm package",
"devDependencies": {
"ava": "*",
"xo": "*"
"ava": "^1.4.1",
"tempy": "^0.3.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/pkg-dir#readme",
"keywords": [
@@ -86,7 +82,7 @@
"url": "git+https://github.com/sindresorhus/pkg-dir.git"
},
"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd"
},
"version": "3.0.0"
"version": "4.2.0"
}

4
node_modules/pkg-dir/readme.md generated vendored
View File

@@ -40,11 +40,11 @@ const pkgDir = require('pkg-dir');
### pkgDir([cwd])
Returns a `Promise` for either the project root path or `null` if it couldn't be found.
Returns a `Promise` for either the project root path or `undefined` if it couldn't be found.
### pkgDir.sync([cwd])
Returns the project root path or `null`.
Returns the project root path or `undefined` if it couldn't be found.
#### cwd