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
19
node_modules/supertap/dist/index.d.ts
generated
vendored
Normal file
19
node_modules/supertap/dist/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
export declare const start: () => string;
|
||||
interface Options {
|
||||
index: number;
|
||||
passed?: boolean;
|
||||
error?: Error | Record<string, unknown>;
|
||||
todo?: boolean;
|
||||
skip?: boolean;
|
||||
comment: string | string[];
|
||||
}
|
||||
export declare const test: (title: string, options: Options) => string;
|
||||
interface Stats {
|
||||
passed?: number;
|
||||
failed?: number;
|
||||
skipped?: number;
|
||||
todo?: number;
|
||||
crashed?: number;
|
||||
}
|
||||
export declare const finish: (stats: Stats) => string;
|
||||
export {};
|
||||
67
node_modules/supertap/dist/index.js
generated
vendored
Normal file
67
node_modules/supertap/dist/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
import { serializeError } from 'serialize-error';
|
||||
import indentString from 'indent-string';
|
||||
import stripAnsi from 'strip-ansi';
|
||||
import yaml from 'js-yaml';
|
||||
const serializeErrorForTap = (error) => {
|
||||
var _a;
|
||||
const object = serializeError(error);
|
||||
object['at'] = ((_a = object.stack) !== null && _a !== void 0 ? _a : '')
|
||||
.split('\n')
|
||||
.slice(1, 2)
|
||||
.map((line) => line.replace(/at/, '').trim())
|
||||
.shift();
|
||||
delete object.stack;
|
||||
return object;
|
||||
};
|
||||
export const start = () => 'TAP version 13';
|
||||
export const test = (title, options) => {
|
||||
const { error } = options;
|
||||
let { passed } = options;
|
||||
let directive = '';
|
||||
if (!error) {
|
||||
if (options.todo) {
|
||||
directive = '# TODO';
|
||||
passed = false;
|
||||
}
|
||||
else if (options.skip) {
|
||||
directive = '# SKIP';
|
||||
passed = true;
|
||||
}
|
||||
}
|
||||
let comment = '';
|
||||
if (options.comment) {
|
||||
const comments = Array.isArray(options.comment)
|
||||
? options.comment
|
||||
: [options.comment];
|
||||
comment = comments
|
||||
.map(line => indentString(line, 4).replace(/^ {4}/gm, '# '))
|
||||
.join('\n');
|
||||
}
|
||||
const output = [
|
||||
`${passed ? 'ok' : 'not ok'} ${options.index} - ${stripAnsi(title)} ${directive}`.trim(),
|
||||
comment,
|
||||
];
|
||||
if (error) {
|
||||
const object = error instanceof Error ? serializeErrorForTap(error) : error;
|
||||
output.push([' ---', indentString(yaml.safeDump(object).trim(), 4), ' ...'].join('\n'));
|
||||
}
|
||||
return output.filter(Boolean).join('\n');
|
||||
};
|
||||
export const finish = (stats) => {
|
||||
var _a, _b, _c, _d, _e;
|
||||
stats = stats !== null && stats !== void 0 ? stats : {};
|
||||
const passed = (_a = stats.passed) !== null && _a !== void 0 ? _a : 0;
|
||||
const failed = (_b = stats.failed) !== null && _b !== void 0 ? _b : 0;
|
||||
const skipped = (_c = stats.skipped) !== null && _c !== void 0 ? _c : 0;
|
||||
const todo = (_d = stats.todo) !== null && _d !== void 0 ? _d : 0;
|
||||
const crashed = (_e = stats.crashed) !== null && _e !== void 0 ? _e : 0;
|
||||
return [
|
||||
`\n1..${passed + failed + skipped + todo}`,
|
||||
`# tests ${passed + failed + skipped}`,
|
||||
`# pass ${passed}`,
|
||||
skipped > 0 ? `# skip ${skipped}` : null,
|
||||
`# fail ${failed + crashed + todo}\n`,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join('\n');
|
||||
};
|
||||
75
node_modules/supertap/index.js
generated
vendored
75
node_modules/supertap/index.js
generated
vendored
|
|
@ -1,75 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const {serializeError} = require('serialize-error');
|
||||
const indentString = require('indent-string');
|
||||
const stripAnsi = require('strip-ansi');
|
||||
const arrify = require('arrify');
|
||||
const yaml = require('js-yaml');
|
||||
|
||||
const serializeErrorForTap = err => {
|
||||
const object = serializeError(err);
|
||||
object.at = object.stack
|
||||
.split('\n')
|
||||
.slice(1, 2)
|
||||
.map(line => line.replace(/at/, '').trim())
|
||||
.shift();
|
||||
delete object.stack;
|
||||
return object;
|
||||
};
|
||||
|
||||
exports.start = () => 'TAP version 13';
|
||||
|
||||
exports.test = (title, options) => {
|
||||
const {error} = options;
|
||||
let {passed} = options;
|
||||
let directive = '';
|
||||
|
||||
if (!error) {
|
||||
if (options.todo) {
|
||||
directive = '# TODO';
|
||||
passed = false;
|
||||
} else if (options.skip) {
|
||||
directive = '# SKIP';
|
||||
passed = true;
|
||||
}
|
||||
}
|
||||
|
||||
const comment = arrify(options.comment)
|
||||
.map(line => indentString(line, 4).replace(/^ {4}/gm, '# '))
|
||||
.join('\n');
|
||||
|
||||
const output = [
|
||||
`${passed ? 'ok' : 'not ok'} ${options.index} - ${stripAnsi(title)} ${directive}`.trim(),
|
||||
comment
|
||||
];
|
||||
|
||||
if (error) {
|
||||
const object = error instanceof Error ? serializeErrorForTap(error) : error;
|
||||
|
||||
output.push([
|
||||
' ---',
|
||||
indentString(yaml.safeDump(object).trim(), 4),
|
||||
' ...'
|
||||
].join('\n'));
|
||||
}
|
||||
|
||||
return output.filter(Boolean).join('\n');
|
||||
};
|
||||
|
||||
exports.finish = stats => {
|
||||
stats = stats || {};
|
||||
|
||||
const passed = stats.passed || 0;
|
||||
const failed = stats.failed || 0;
|
||||
const skipped = stats.skipped || 0;
|
||||
const todo = stats.todo || 0;
|
||||
const crashed = stats.crashed || 0;
|
||||
|
||||
return [
|
||||
`\n1..${passed + failed + skipped + todo}`,
|
||||
`# tests ${passed + failed + skipped}`,
|
||||
`# pass ${passed}`,
|
||||
skipped > 0 ? `# skip ${skipped}` : null,
|
||||
`# fail ${failed + crashed + todo}\n`
|
||||
].filter(Boolean).join('\n');
|
||||
};
|
||||
33
node_modules/supertap/node_modules/ansi-regex/index.d.ts
generated
vendored
Normal file
33
node_modules/supertap/node_modules/ansi-regex/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
export interface Options {
|
||||
/**
|
||||
Match only the first ANSI escape.
|
||||
|
||||
@default false
|
||||
*/
|
||||
readonly onlyFirst: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
Regular expression for matching ANSI escape codes.
|
||||
|
||||
@example
|
||||
```
|
||||
import ansiRegex from 'ansi-regex';
|
||||
|
||||
ansiRegex().test('\u001B[4mcake\u001B[0m');
|
||||
//=> true
|
||||
|
||||
ansiRegex().test('cake');
|
||||
//=> false
|
||||
|
||||
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
|
||||
//=> ['\u001B[4m', '\u001B[0m']
|
||||
|
||||
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
|
||||
//=> ['\u001B[4m']
|
||||
|
||||
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
|
||||
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
|
||||
```
|
||||
*/
|
||||
export default function ansiRegex(options?: Options): RegExp;
|
||||
8
node_modules/supertap/node_modules/ansi-regex/index.js
generated
vendored
Normal file
8
node_modules/supertap/node_modules/ansi-regex/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export default function ansiRegex({onlyFirst = false} = {}) {
|
||||
const pattern = [
|
||||
'[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
|
||||
'(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
|
||||
].join('|');
|
||||
|
||||
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
||||
}
|
||||
9
node_modules/supertap/node_modules/ansi-regex/license
generated
vendored
Normal file
9
node_modules/supertap/node_modules/ansi-regex/license
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
58
node_modules/supertap/node_modules/ansi-regex/package.json
generated
vendored
Normal file
58
node_modules/supertap/node_modules/ansi-regex/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"name": "ansi-regex",
|
||||
"version": "6.0.1",
|
||||
"description": "Regular expression for matching ANSI escape codes",
|
||||
"license": "MIT",
|
||||
"repository": "chalk/ansi-regex",
|
||||
"funding": "https://github.com/chalk/ansi-regex?sponsor=1",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd",
|
||||
"view-supported": "node fixtures/view-codes.js"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"ansi",
|
||||
"styles",
|
||||
"color",
|
||||
"colour",
|
||||
"colors",
|
||||
"terminal",
|
||||
"console",
|
||||
"cli",
|
||||
"string",
|
||||
"tty",
|
||||
"escape",
|
||||
"formatting",
|
||||
"rgb",
|
||||
"256",
|
||||
"shell",
|
||||
"xterm",
|
||||
"command-line",
|
||||
"text",
|
||||
"regex",
|
||||
"regexp",
|
||||
"re",
|
||||
"match",
|
||||
"test",
|
||||
"find",
|
||||
"pattern"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.38.2"
|
||||
}
|
||||
}
|
||||
72
node_modules/supertap/node_modules/ansi-regex/readme.md
generated
vendored
Normal file
72
node_modules/supertap/node_modules/ansi-regex/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# ansi-regex
|
||||
|
||||
> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install ansi-regex
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import ansiRegex from 'ansi-regex';
|
||||
|
||||
ansiRegex().test('\u001B[4mcake\u001B[0m');
|
||||
//=> true
|
||||
|
||||
ansiRegex().test('cake');
|
||||
//=> false
|
||||
|
||||
'\u001B[4mcake\u001B[0m'.match(ansiRegex());
|
||||
//=> ['\u001B[4m', '\u001B[0m']
|
||||
|
||||
'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
|
||||
//=> ['\u001B[4m']
|
||||
|
||||
'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
|
||||
//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### ansiRegex(options?)
|
||||
|
||||
Returns a regex for matching ANSI escape codes.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### onlyFirst
|
||||
|
||||
Type: `boolean`\
|
||||
Default: `false` *(Matches any ANSI escape codes in a string)*
|
||||
|
||||
Match only the first ANSI escape.
|
||||
|
||||
## FAQ
|
||||
|
||||
### Why do you test for codes not in the ECMA 48 standard?
|
||||
|
||||
Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
|
||||
|
||||
On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
|
||||
|
||||
## Maintainers
|
||||
|
||||
- [Sindre Sorhus](https://github.com/sindresorhus)
|
||||
- [Josh Junon](https://github.com/qix-)
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&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>
|
||||
38
node_modules/supertap/node_modules/indent-string/index.d.ts
generated
vendored
Normal file
38
node_modules/supertap/node_modules/indent-string/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
export interface Options {
|
||||
/**
|
||||
The string to use for the indent.
|
||||
|
||||
@default ' '
|
||||
*/
|
||||
readonly indent?: string;
|
||||
|
||||
/**
|
||||
Also indent empty lines.
|
||||
|
||||
@default false
|
||||
*/
|
||||
readonly includeEmptyLines?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
Indent each line in a string.
|
||||
|
||||
@param string - The string to indent.
|
||||
@param count - How many times you want `options.indent` repeated. Default: `1`.
|
||||
|
||||
@example
|
||||
```
|
||||
import indentString from 'indent-string';
|
||||
|
||||
indentString('Unicorns\nRainbows', 4);
|
||||
//=> ' Unicorns\n Rainbows'
|
||||
|
||||
indentString('Unicorns\nRainbows', 4, {indent: '♥'});
|
||||
//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
|
||||
```
|
||||
*/
|
||||
export default function indentString(
|
||||
string: string,
|
||||
count?: number,
|
||||
options?: Options
|
||||
): string;
|
||||
38
node_modules/supertap/node_modules/indent-string/index.js
generated
vendored
Normal file
38
node_modules/supertap/node_modules/indent-string/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
export default function indentString(string, count = 1, options = {}) {
|
||||
const {
|
||||
indent = ' ',
|
||||
includeEmptyLines = false
|
||||
} = options;
|
||||
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError(
|
||||
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
||||
);
|
||||
}
|
||||
|
||||
if (typeof count !== 'number') {
|
||||
throw new TypeError(
|
||||
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
||||
);
|
||||
}
|
||||
|
||||
if (count < 0) {
|
||||
throw new RangeError(
|
||||
`Expected \`count\` to be at least 0, got \`${count}\``
|
||||
);
|
||||
}
|
||||
|
||||
if (typeof indent !== 'string') {
|
||||
throw new TypeError(
|
||||
`Expected \`options.indent\` to be a \`string\`, got \`${typeof indent}\``
|
||||
);
|
||||
}
|
||||
|
||||
if (count === 0) {
|
||||
return string;
|
||||
}
|
||||
|
||||
const regex = includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
||||
|
||||
return string.replace(regex, indent.repeat(count));
|
||||
}
|
||||
9
node_modules/supertap/node_modules/indent-string/license
generated
vendored
Normal file
9
node_modules/supertap/node_modules/indent-string/license
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
40
node_modules/supertap/node_modules/indent-string/package.json
generated
vendored
Normal file
40
node_modules/supertap/node_modules/indent-string/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"name": "indent-string",
|
||||
"version": "5.0.0",
|
||||
"description": "Indent each line in a string",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/indent-string",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"indent",
|
||||
"string",
|
||||
"pad",
|
||||
"align",
|
||||
"line",
|
||||
"text",
|
||||
"each",
|
||||
"every"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.14.0",
|
||||
"xo": "^0.38.2"
|
||||
}
|
||||
}
|
||||
73
node_modules/supertap/node_modules/indent-string/readme.md
generated
vendored
Normal file
73
node_modules/supertap/node_modules/indent-string/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# indent-string
|
||||
|
||||
> Indent each line in a string
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install indent-string
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import indentString from 'indent-string';
|
||||
|
||||
indentString('Unicorns\nRainbows', 4);
|
||||
//=> ' Unicorns\n Rainbows'
|
||||
|
||||
indentString('Unicorns\nRainbows', 4, {indent: '♥'});
|
||||
//=> '♥♥♥♥Unicorns\n♥♥♥♥Rainbows'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### indentString(string, count?, options?)
|
||||
|
||||
#### string
|
||||
|
||||
Type: `string`
|
||||
|
||||
The string to indent.
|
||||
|
||||
#### count
|
||||
|
||||
Type: `number`\
|
||||
Default: `1`
|
||||
|
||||
How many times you want `options.indent` repeated.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### indent
|
||||
|
||||
Type: `string`\
|
||||
Default: `' '`
|
||||
|
||||
The string to use for the indent.
|
||||
|
||||
##### includeEmptyLines
|
||||
|
||||
Type: `boolean`\
|
||||
Default: `false`
|
||||
|
||||
Also indent empty lines.
|
||||
|
||||
## Related
|
||||
|
||||
- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module
|
||||
- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-indent-string?utm_source=npm-indent-string&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>
|
||||
15
node_modules/supertap/node_modules/strip-ansi/index.d.ts
generated
vendored
Normal file
15
node_modules/supertap/node_modules/strip-ansi/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
|
||||
|
||||
@example
|
||||
```
|
||||
import stripAnsi from 'strip-ansi';
|
||||
|
||||
stripAnsi('\u001B[4mUnicorn\u001B[0m');
|
||||
//=> 'Unicorn'
|
||||
|
||||
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
|
||||
//=> 'Click'
|
||||
```
|
||||
*/
|
||||
export default function stripAnsi(string: string): string;
|
||||
9
node_modules/supertap/node_modules/strip-ansi/index.js
generated
vendored
Normal file
9
node_modules/supertap/node_modules/strip-ansi/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import ansiRegex from 'ansi-regex';
|
||||
|
||||
export default function stripAnsi(string) {
|
||||
if (typeof string !== 'string') {
|
||||
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
||||
}
|
||||
|
||||
return string.replace(ansiRegex(), '');
|
||||
}
|
||||
9
node_modules/supertap/node_modules/strip-ansi/license
generated
vendored
Normal file
9
node_modules/supertap/node_modules/strip-ansi/license
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
57
node_modules/supertap/node_modules/strip-ansi/package.json
generated
vendored
Normal file
57
node_modules/supertap/node_modules/strip-ansi/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"name": "strip-ansi",
|
||||
"version": "7.0.1",
|
||||
"description": "Strip ANSI escape codes from a string",
|
||||
"license": "MIT",
|
||||
"repository": "chalk/strip-ansi",
|
||||
"funding": "https://github.com/chalk/strip-ansi?sponsor=1",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"strip",
|
||||
"trim",
|
||||
"remove",
|
||||
"ansi",
|
||||
"styles",
|
||||
"color",
|
||||
"colour",
|
||||
"colors",
|
||||
"terminal",
|
||||
"console",
|
||||
"string",
|
||||
"tty",
|
||||
"escape",
|
||||
"formatting",
|
||||
"rgb",
|
||||
"256",
|
||||
"shell",
|
||||
"xterm",
|
||||
"log",
|
||||
"logging",
|
||||
"command-line",
|
||||
"text"
|
||||
],
|
||||
"dependencies": {
|
||||
"ansi-regex": "^6.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.17.0",
|
||||
"xo": "^0.44.0"
|
||||
}
|
||||
}
|
||||
41
node_modules/supertap/node_modules/strip-ansi/readme.md
generated
vendored
Normal file
41
node_modules/supertap/node_modules/strip-ansi/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# strip-ansi
|
||||
|
||||
> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install strip-ansi
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import stripAnsi from 'strip-ansi';
|
||||
|
||||
stripAnsi('\u001B[4mUnicorn\u001B[0m');
|
||||
//=> 'Unicorn'
|
||||
|
||||
stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
|
||||
//=> 'Click'
|
||||
```
|
||||
|
||||
## strip-ansi for enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of strip-ansi 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-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
|
||||
## Related
|
||||
|
||||
- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
|
||||
- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
|
||||
- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
|
||||
- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
|
||||
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
||||
|
||||
## Maintainers
|
||||
|
||||
- [Sindre Sorhus](https://github.com/sindresorhus)
|
||||
- [Josh Junon](https://github.com/qix-)
|
||||
|
||||
39
node_modules/supertap/package.json
generated
vendored
39
node_modules/supertap/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "supertap",
|
||||
"version": "2.0.0",
|
||||
"version": "3.0.1",
|
||||
"description": "Generate TAP output",
|
||||
"license": "MIT",
|
||||
"repository": "vadimdemedes/supertap",
|
||||
|
|
@ -10,13 +10,20 @@
|
|||
"url": "github.com/vadimdemedes"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch",
|
||||
"prepare": "npm run build",
|
||||
"pretest": "npm run build",
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"index.js"
|
||||
"dist"
|
||||
],
|
||||
"keywords": [
|
||||
"tap",
|
||||
|
|
@ -24,18 +31,21 @@
|
|||
"output"
|
||||
],
|
||||
"dependencies": {
|
||||
"arrify": "^2.0.1",
|
||||
"indent-string": "^4.0.0",
|
||||
"js-yaml": "^3.14.0",
|
||||
"indent-string": "^5.0.0",
|
||||
"js-yaml": "^3.14.1",
|
||||
"serialize-error": "^7.0.1",
|
||||
"strip-ansi": "^6.0.0"
|
||||
"strip-ansi": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^3.14.0",
|
||||
"@sindresorhus/tsconfig": "^2.0.0",
|
||||
"@types/js-yaml": "^3.12.7",
|
||||
"@vdemedes/prettier-config": "^2.0.0",
|
||||
"ava": "^4.0.1",
|
||||
"ctrlc-exit": "^1.0.0",
|
||||
"execa": "^5.0.0",
|
||||
"execa": "^6.0.0",
|
||||
"faucet": "^0.0.1",
|
||||
"p-each-series": "^2.2.0",
|
||||
"p-each-series": "^3.0.0",
|
||||
"prettier": "^2.5.1",
|
||||
"tap-dot": "^2.0.0",
|
||||
"tap-json": "^1.0.0",
|
||||
"tap-min": "^2.0.0",
|
||||
|
|
@ -44,10 +54,15 @@
|
|||
"tap-pessimist": "^1.0.1",
|
||||
"tap-spec": "^5.0.0",
|
||||
"tap-summary": "^4.0.0",
|
||||
"typescript": "^4.5.5",
|
||||
"wait-for-enter": "^1.0.0",
|
||||
"xo": "^0.36.1"
|
||||
"xo": "^0.47.0"
|
||||
},
|
||||
"ava": {
|
||||
"serial": true
|
||||
}
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true
|
||||
},
|
||||
"prettier": "@vdemedes/prettier-config"
|
||||
}
|
||||
|
|
|
|||
7
node_modules/supertap/readme.md
generated
vendored
7
node_modules/supertap/readme.md
generated
vendored
|
|
@ -21,7 +21,7 @@ $ npm install supertap
|
|||
## Usage
|
||||
|
||||
```js
|
||||
const supertap = require('supertap');
|
||||
import * as supertap from 'supertap';
|
||||
|
||||
console.log(supertap.start());
|
||||
|
||||
|
|
@ -121,8 +121,3 @@ Type: `number`<br>
|
|||
Default: `0`
|
||||
|
||||
Number of tests that passed, failed, skipped or marked as todo. `crashed` is a special option, which adds to failed test count in the output, but not total test count. AVA uses it to count unhandled exceptions.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Vadim Demedes](https://github.com/vadimdemedes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue