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

43
node_modules/parse-json/index.js generated vendored
View File

@@ -1,12 +1,15 @@
'use strict';
const errorEx = require('error-ex');
const fallback = require('json-parse-better-errors');
const fallback = require('json-parse-even-better-errors');
const {default: LinesAndColumns} = require('lines-and-columns');
const {codeFrameColumns} = require('@babel/code-frame');
const JSONError = errorEx('JSONError', {
fileName: errorEx.append('in %s')
fileName: errorEx.append('in %s'),
codeFrame: errorEx.append('\n\n%s\n')
});
module.exports = (input, reviver, filename) => {
module.exports = (string, reviver, filename) => {
if (typeof reviver === 'string') {
filename = reviver;
reviver = null;
@@ -14,20 +17,34 @@ module.exports = (input, reviver, filename) => {
try {
try {
return JSON.parse(input, reviver);
} catch (err) {
fallback(input, reviver);
throw err;
return JSON.parse(string, reviver);
} catch (error) {
fallback(string, reviver);
throw error;
}
} catch (err) {
err.message = err.message.replace(/\n/g, '');
} catch (error) {
error.message = error.message.replace(/\n/g, '');
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
const jsonErr = new JSONError(err);
const jsonError = new JSONError(error);
if (filename) {
jsonErr.fileName = filename;
jsonError.fileName = filename;
}
throw jsonErr;
if (indexMatch && indexMatch.length > 0) {
const lines = new LinesAndColumns(string);
const index = Number(indexMatch[1]);
const location = lines.locationForIndex(index);
const codeFrame = codeFrameColumns(
string,
{start: {line: location.line + 1, column: location.column + 1}},
{highlightCode: true}
);
jsonError.codeFrame = codeFrame;
}
throw jsonError;
}
};

2
node_modules/parse-json/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:

52
node_modules/parse-json/package.json generated vendored
View File

@@ -1,58 +1,57 @@
{
"_args": [
[
"parse-json@4.0.0",
"/Users/drew.heavner/Documents/Github/upload-google-play"
]
],
"_development": true,
"_from": "parse-json@4.0.0",
"_id": "parse-json@4.0.0",
"_from": "parse-json@^5.0.0",
"_id": "parse-json@5.1.0",
"_inBundle": false,
"_integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
"_integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==",
"_location": "/parse-json",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "parse-json@4.0.0",
"raw": "parse-json@^5.0.0",
"name": "parse-json",
"escapedName": "parse-json",
"rawSpec": "4.0.0",
"rawSpec": "^5.0.0",
"saveSpec": null,
"fetchSpec": "4.0.0"
"fetchSpec": "^5.0.0"
},
"_requiredBy": [
"/load-json-file"
"/read-pkg"
],
"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
"_spec": "4.0.0",
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play",
"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz",
"_shasum": "f96088cdf24a8faa9aea9a009f2d9d942c999646",
"_spec": "parse-json@^5.0.0",
"_where": "/home/codespace/workspace/upload-google-play/node_modules/read-pkg",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/parse-json/issues"
},
"bundleDependencies": false,
"dependencies": {
"@babel/code-frame": "^7.0.0",
"error-ex": "^1.3.1",
"json-parse-better-errors": "^1.0.1"
"json-parse-even-better-errors": "^2.3.0",
"lines-and-columns": "^1.1.6"
},
"deprecated": false,
"description": "Parse JSON with more helpful errors",
"devDependencies": {
"ava": "*",
"nyc": "^11.2.1",
"xo": "*"
"ava": "^1.4.1",
"nyc": "^14.1.1",
"xo": "^0.24.0"
},
"engines": {
"node": ">=4"
"node": ">=8"
},
"files": [
"index.js",
"vendor"
],
"funding": "https://github.com/sponsors/sindresorhus",
"homepage": "https://github.com/sindresorhus/parse-json#readme",
"keywords": [
"parse",
@@ -63,8 +62,7 @@
"humanize",
"friendly",
"helpful",
"string",
"str"
"string"
],
"license": "MIT",
"name": "parse-json",
@@ -75,5 +73,5 @@
"scripts": {
"test": "xo && nyc ava"
},
"version": "4.0.0"
"version": "5.1.0"
}

55
node_modules/parse-json/readme.md generated vendored
View File

@@ -1,19 +1,18 @@
# parse-json [![Build Status](https://travis-ci.org/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-json)
# parse-json [![Build Status](https://travis-ci.com/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.com/github/sindresorhus/parse-json)
> Parse JSON with more helpful errors
## Install
```
$ npm install parse-json
```
## Usage
```js
const parseJson = require('parse-json');
const json = '{\n\t"foo": true,\n}';
@@ -28,39 +27,48 @@ SyntaxError: Unexpected token }
parseJson(json);
/*
JSONError: Trailing comma in object at 3:1
}
^
JSONError: Unexpected token } in JSON at position 16 while parsing near '{ "foo": true,}'
1 | {
2 | "foo": true,
> 3 | }
| ^
*/
parseJson(json, 'foo.json');
/*
JSONError: Trailing comma in object in foo.json:3:1
}
^
JSONError: Unexpected token } in JSON at position 16 while parsing near '{ "foo": true,}' in foo.json
1 | {
2 | "foo": true,
> 3 | }
| ^
*/
// You can also add the filename at a later point
try {
parseJson(json);
} catch (err) {
err.fileName = 'foo.json';
throw err;
} catch (error) {
error.fileName = 'foo.json';
throw error;
}
/*
JSONError: Trailing comma in object in foo.json:3:1
}
^
JSONError: Unexpected token } in JSON at position 16 while parsing near '{ "foo": true,}' in foo.json
1 | {
2 | "foo": true,
> 3 | }
| ^
*/
```
## API
### parseJson(input, [reviver], [filename])
### parseJson(string, reviver?, filename?)
#### input
#### string
Type: `string`
@@ -77,7 +85,14 @@ Type: `string`
Filename displayed in the error message.
---
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-parse-json?utm_source=npm-parse-json&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>