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

87
node_modules/read-pkg-up/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,87 @@
import {Except} from 'type-fest';
import readPkg = require('read-pkg');
declare namespace readPkgUp {
type Options = {
/**
Directory to start looking for a package.json file.
@default process.cwd()
*/
cwd?: string;
} & Except<readPkg.Options, 'cwd'>;
type NormalizeOptions = {
/**
Directory to start looking for a package.json file.
@default process.cwd()
*/
cwd?: string;
} & Except<readPkg.NormalizeOptions, 'cwd'>;
type PackageJson = readPkg.PackageJson;
type NormalizedPackageJson = readPkg.NormalizedPackageJson;
interface ReadResult {
packageJson: PackageJson;
path: string;
}
interface NormalizedReadResult {
packageJson: NormalizedPackageJson;
path: string;
}
}
declare const readPkgUp: {
/**
Read the closest `package.json` file.
@example
```
import readPkgUp = require('read-pkg-up');
(async () => {
console.log(await readPkgUp());
// {
// packageJson: {
// name: 'awesome-package',
// version: '1.0.0',
// …
// },
// path: '/Users/sindresorhus/dev/awesome-package/package.json'
// }
})();
```
*/
(options?: readPkgUp.NormalizeOptions): Promise<
readPkgUp.NormalizedReadResult | undefined
>;
(options: readPkgUp.Options): Promise<readPkgUp.ReadResult | undefined>;
/**
Synchronously read the closest `package.json` file.
@example
```
import readPkgUp = require('read-pkg-up');
console.log(readPkgUp.sync());
// {
// packageJson: {
// name: 'awesome-package',
// version: '1.0.0',
// …
// },
// path: '/Users/sindresorhus/dev/awesome-package/package.json'
// }
```
*/
sync(
options?: readPkgUp.NormalizeOptions
): readPkgUp.NormalizedReadResult | undefined;
sync(options: readPkgUp.Options): readPkgUp.ReadResult | undefined;
};
export = readPkgUp;

36
node_modules/read-pkg-up/index.js generated vendored
View File

@@ -1,26 +1,30 @@
'use strict';
const path = require('path');
const findUp = require('find-up');
const readPkg = require('read-pkg');
module.exports = options => {
return findUp('package.json', options).then(fp => {
if (!fp) {
return {};
}
module.exports = async options => {
const filePath = await findUp('package.json', options);
return readPkg(fp, options).then(pkg => ({pkg, path: fp}));
});
};
module.exports.sync = options => {
const fp = findUp.sync('package.json', options);
if (!fp) {
return {};
if (!filePath) {
return;
}
return {
pkg: readPkg.sync(fp, options),
path: fp
packageJson: await readPkg({...options, cwd: path.dirname(filePath)}),
path: filePath
};
};
module.exports.sync = options => {
const filePath = findUp.sync('package.json', options);
if (!filePath) {
return;
}
return {
packageJson: readPkg.sync({...options, cwd: path.dirname(filePath)}),
path: filePath
};
};

View File

@@ -1,37 +1,27 @@
{
"_args": [
[
"read-pkg-up@4.0.0",
"/Users/drew.heavner/Documents/Github/upload-google-play"
]
],
"_development": true,
"_from": "read-pkg-up@4.0.0",
"_id": "read-pkg-up@4.0.0",
"_from": "read-pkg-up@^7.0.1",
"_id": "read-pkg-up@7.0.1",
"_inBundle": false,
"_integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==",
"_integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==",
"_location": "/read-pkg-up",
"_phantomChildren": {
"load-json-file": "4.0.0",
"normalize-package-data": "2.5.0",
"path-type": "3.0.0"
},
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "read-pkg-up@4.0.0",
"raw": "read-pkg-up@^7.0.1",
"name": "read-pkg-up",
"escapedName": "read-pkg-up",
"rawSpec": "4.0.0",
"rawSpec": "^7.0.1",
"saveSpec": null,
"fetchSpec": "4.0.0"
"fetchSpec": "^7.0.1"
},
"_requiredBy": [
"/test-exclude"
"/jest-resolve"
],
"_resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz",
"_spec": "4.0.0",
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play",
"_resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz",
"_shasum": "f3a6135758459733ae2b95638056e1854e7ef507",
"_spec": "read-pkg-up@^7.0.1",
"_where": "/home/codespace/workspace/upload-google-play/node_modules/jest-resolve",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -40,21 +30,27 @@
"bugs": {
"url": "https://github.com/sindresorhus/read-pkg-up/issues"
},
"bundleDependencies": false,
"dependencies": {
"find-up": "^3.0.0",
"read-pkg": "^3.0.0"
"find-up": "^4.1.0",
"read-pkg": "^5.2.0",
"type-fest": "^0.8.1"
},
"deprecated": false,
"description": "Read the closest package.json file",
"devDependencies": {
"ava": "*",
"xo": "*"
"ava": "^2.4.0",
"tsd": "^0.9.0",
"xo": "^0.25.3"
},
"engines": {
"node": ">=6"
"node": ">=8"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],
"funding": "https://github.com/sponsors/sindresorhus",
"homepage": "https://github.com/sindresorhus/read-pkg-up#readme",
"keywords": [
"json",
@@ -64,7 +60,6 @@
"fs",
"graceful",
"load",
"pkg",
"package",
"find",
"up",
@@ -79,7 +74,6 @@
"parents",
"folder",
"directory",
"dir",
"walk",
"walking",
"path"
@@ -91,7 +85,7 @@
"url": "git+https://github.com/sindresorhus/read-pkg-up.git"
},
"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd"
},
"version": "4.0.0"
"version": "7.0.1"
}

31
node_modules/read-pkg-up/readme.md generated vendored
View File

@@ -2,23 +2,19 @@
> Read the closest package.json file
## Why
- [Finds the closest package.json](https://github.com/sindresorhus/find-up)
- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)
- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom)
- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)
- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)
## Install
```
$ npm install read-pkg-up
```
## Usage
```js
@@ -28,7 +24,7 @@ const readPkgUp = require('read-pkg-up');
console.log(await readPkgUp());
/*
{
pkg: {
packageJson: {
name: 'awesome-package',
version: '1.0.0',
…
@@ -39,35 +35,39 @@ const readPkgUp = require('read-pkg-up');
})();
```
## API
### readPkgUp([options])
### readPkgUp(options?)
Returns a `Promise` for the result object.
Returns a `Promise<object>` or `Promise<undefined>` if no `package.json` was found.
### readPkgUp.sync([options])
### readPkgUp.sync(options?)
Returns the result object.
Returns the result object or `undefined` if no `package.json` was found.
#### options
Type: `Object`
Type: `object`
##### cwd
Type: `string`<br>
Type: `string`\
Default: `process.cwd()`
Directory to start looking for a package.json file.
##### normalize
Type: `boolean`<br>
Type: `boolean`\
Default: `true`
[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.
## read-pkg-up for enterprise
Available as part of the Tidelift Subscription.
The maintainers of read-pkg-up and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-read-pkg-up?utm_source=npm-read-pkg-up&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
## Related
@@ -75,8 +75,3 @@ Default: `true`
- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories
- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)