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
28
node_modules/yargs-parser/CHANGELOG.md
generated
vendored
28
node_modules/yargs-parser/CHANGELOG.md
generated
vendored
|
|
@ -2,6 +2,34 @@
|
|||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## [21.1.1](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.1.0...yargs-parser-v21.1.1) (2022-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **typescript:** ignore .cts files during publish ([#454](https://github.com/yargs/yargs-parser/issues/454)) ([d69f9c3](https://github.com/yargs/yargs-parser/commit/d69f9c3a91c3ad2f9494d0a94e29a8b76c41b81b)), closes [#452](https://github.com/yargs/yargs-parser/issues/452)
|
||||
|
||||
## [21.1.0](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.0.1...yargs-parser-v21.1.0) (2022-08-03)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* allow the browser build to be imported ([#443](https://github.com/yargs/yargs-parser/issues/443)) ([a89259f](https://github.com/yargs/yargs-parser/commit/a89259ff41d6f5312b3ce8a30bef343a993f395a))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **halt-at-non-option:** prevent known args from being parsed when "unknown-options-as-args" is enabled ([#438](https://github.com/yargs/yargs-parser/issues/438)) ([c474bc1](https://github.com/yargs/yargs-parser/commit/c474bc10c3aa0ae864b95e5722730114ef15f573))
|
||||
* node version check now uses process.versions.node ([#450](https://github.com/yargs/yargs-parser/issues/450)) ([d07bcdb](https://github.com/yargs/yargs-parser/commit/d07bcdbe43075f7201fbe8a08e491217247fe1f1))
|
||||
* parse options ending with 3+ hyphens ([#434](https://github.com/yargs/yargs-parser/issues/434)) ([4f1060b](https://github.com/yargs/yargs-parser/commit/4f1060b50759fadbac3315c5117b0c3d65b0a7d8))
|
||||
|
||||
### [21.0.1](https://github.com/yargs/yargs-parser/compare/yargs-parser-v21.0.0...yargs-parser-v21.0.1) (2022-02-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* return deno env object ([#432](https://github.com/yargs/yargs-parser/issues/432)) ([b00eb87](https://github.com/yargs/yargs-parser/commit/b00eb87b4860a890dd2dab0d6058241bbfd2b3ec))
|
||||
|
||||
## [21.0.0](https://www.github.com/yargs/yargs-parser/compare/yargs-parser-v20.2.9...yargs-parser-v21.0.0) (2021-11-15)
|
||||
|
||||
|
||||
|
|
|
|||
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;
|
||||
|
|
|
|||
16
node_modules/yargs-parser/package.json
generated
vendored
16
node_modules/yargs-parser/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "yargs-parser",
|
||||
"version": "21.0.0",
|
||||
"version": "21.1.1",
|
||||
"description": "the mighty option parser used by yargs",
|
||||
"main": "build/index.cjs",
|
||||
"exports": {
|
||||
|
|
@ -10,6 +10,9 @@
|
|||
"require": "./build/index.cjs"
|
||||
},
|
||||
"./build/index.cjs"
|
||||
],
|
||||
"./browser": [
|
||||
"./browser.js"
|
||||
]
|
||||
},
|
||||
"type": "module",
|
||||
|
|
@ -53,7 +56,6 @@
|
|||
"@types/node": "^16.11.4",
|
||||
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
||||
"@typescript-eslint/parser": "^3.10.1",
|
||||
"@wessberg/rollup-plugin-ts": "^1.2.28",
|
||||
"c8": "^7.3.0",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
|
|
@ -61,12 +63,13 @@
|
|||
"eslint-plugin-import": "^2.20.1",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"gts": "^3.0.0",
|
||||
"mocha": "^9.0.0",
|
||||
"puppeteer": "^11.0.0",
|
||||
"mocha": "^10.0.0",
|
||||
"puppeteer": "^16.0.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "^2.22.1",
|
||||
"rollup-plugin-cleanup": "^3.1.1",
|
||||
"serve": "^13.0.0",
|
||||
"rollup-plugin-ts": "^3.0.2",
|
||||
"serve": "^14.0.0",
|
||||
"standardx": "^7.0.0",
|
||||
"start-server-and-test": "^1.11.2",
|
||||
"ts-transform-default-export": "^1.0.2",
|
||||
|
|
@ -75,7 +78,8 @@
|
|||
"files": [
|
||||
"browser.js",
|
||||
"build",
|
||||
"!*.d.ts"
|
||||
"!*.d.ts",
|
||||
"!*.d.cts"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue