Update ava to 4.3.3
The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3) mention compatibility with Node 18.8.
This commit is contained in:
parent
21530f507f
commit
bea5e4b220
160 changed files with 2647 additions and 2263 deletions
10
node_modules/yargs-parser/build/index.cjs
generated
vendored
10
node_modules/yargs-parser/build/index.cjs
generated
vendored
|
|
@ -256,10 +256,10 @@ class YargsParser {
|
|||
let m;
|
||||
let next;
|
||||
let value;
|
||||
if (arg !== '--' && isUnknownOptionAsArg(arg)) {
|
||||
if (arg !== '--' && /^-/.test(arg) && isUnknownOptionAsArg(arg)) {
|
||||
pushPositional(arg);
|
||||
}
|
||||
else if (truncatedArg.match(/---+(=|$)/)) {
|
||||
else if (truncatedArg.match(/^---+(=|$)/)) {
|
||||
pushPositional(arg);
|
||||
continue;
|
||||
}
|
||||
|
|
@ -1004,11 +1004,13 @@ function stripQuotes(val) {
|
|||
: val;
|
||||
}
|
||||
|
||||
var _a, _b, _c;
|
||||
const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
|
||||
? Number(process.env.YARGS_MIN_NODE_VERSION)
|
||||
: 12;
|
||||
if (process && process.version) {
|
||||
const major = Number(process.version.match(/v([^.]+)/)[1]);
|
||||
const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);
|
||||
if (nodeVersion) {
|
||||
const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
|
||||
if (major < minNodeVersion) {
|
||||
throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
|
||||
}
|
||||
|
|
|
|||
6
node_modules/yargs-parser/build/lib/index.js
generated
vendored
6
node_modules/yargs-parser/build/lib/index.js
generated
vendored
|
|
@ -6,6 +6,7 @@
|
|||
* Copyright (c) 2016, Contributors
|
||||
* SPDX-License-Identifier: ISC
|
||||
*/
|
||||
var _a, _b, _c;
|
||||
import { format } from 'util';
|
||||
import { normalize, resolve } from 'path';
|
||||
import { camelCase, decamelize, looksLikeNumber } from './string-utils.js';
|
||||
|
|
@ -16,8 +17,9 @@ import { readFileSync } from 'fs';
|
|||
const minNodeVersion = (process && process.env && process.env.YARGS_MIN_NODE_VERSION)
|
||||
? Number(process.env.YARGS_MIN_NODE_VERSION)
|
||||
: 12;
|
||||
if (process && process.version) {
|
||||
const major = Number(process.version.match(/v([^.]+)/)[1]);
|
||||
const nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c = process === null || process === void 0 ? void 0 : process.version) === null || _c === void 0 ? void 0 : _c.slice(1);
|
||||
if (nodeVersion) {
|
||||
const major = Number(nodeVersion.match(/^([^.]+)/)[1]);
|
||||
if (major < minNodeVersion) {
|
||||
throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);
|
||||
}
|
||||
|
|
|
|||
4
node_modules/yargs-parser/build/lib/yargs-parser.js
generated
vendored
4
node_modules/yargs-parser/build/lib/yargs-parser.js
generated
vendored
|
|
@ -178,11 +178,11 @@ export class YargsParser {
|
|||
let next;
|
||||
let value;
|
||||
// any unknown option (except for end-of-options, "--")
|
||||
if (arg !== '--' && isUnknownOptionAsArg(arg)) {
|
||||
if (arg !== '--' && /^-/.test(arg) && isUnknownOptionAsArg(arg)) {
|
||||
pushPositional(arg);
|
||||
// ---, ---=, ----, etc,
|
||||
}
|
||||
else if (truncatedArg.match(/---+(=|$)/)) {
|
||||
else if (truncatedArg.match(/^---+(=|$)/)) {
|
||||
// options without key name are invalid.
|
||||
pushPositional(arg);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue