supertape 10.7.0 → 10.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +15 -0
- package/bin/subscribe.mjs +8 -7
- package/lib/cli.js +1 -2
- package/package.json +5 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
2024.07.19, v10.7.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 887fe8b supertape: glob v11.0.0
|
|
5
|
+
- 4b44c46 supertape: putout v36.0.2
|
|
6
|
+
- 5f38549 supertape: @putout/cli-validate-args v2.0.0
|
|
7
|
+
|
|
8
|
+
2024.07.03, v10.7.1
|
|
9
|
+
|
|
10
|
+
fix:
|
|
11
|
+
- cfc859b supertape: subscribe: empty
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- 14f15d6 supertape: c8 v10.1.2
|
|
15
|
+
|
|
1
16
|
2024.06.04, v10.7.0
|
|
2
17
|
|
|
3
18
|
feature:
|
package/bin/subscribe.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import keyPress from '@putout/cli-keypress';
|
|
2
|
-
import harnessCreator from '../lib/formatter/harness.js';
|
|
3
2
|
import {parse} from 'flatted';
|
|
3
|
+
import harnessCreator from '../lib/formatter/harness.js';
|
|
4
4
|
import {
|
|
5
5
|
SPLITTER,
|
|
6
6
|
CONSOLE_LOG,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
const one = (fn) => (a) => fn(a);
|
|
11
11
|
|
|
12
|
+
const maybeParse = (a) => a && parse(a);
|
|
12
13
|
const {createHarness} = harnessCreator;
|
|
13
14
|
const resolveFormatter = async (name) => await import(`@supertape/formatter-${name}`);
|
|
14
15
|
|
|
@@ -39,18 +40,18 @@ export async function subscribe({name, exit, worker, stdout}) {
|
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
function consoleLog({message}) {
|
|
43
|
+
export function consoleLog({message, logger = console}) {
|
|
43
44
|
const messages = message
|
|
44
45
|
.split(SPLITTER)
|
|
45
|
-
.map(one(
|
|
46
|
+
.map(one(maybeParse));
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
logger.log(...messages);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
function consoleError({message}) {
|
|
51
|
+
export function consoleError({message, logger = console}) {
|
|
51
52
|
const messages = message
|
|
52
53
|
.split(SPLITTER)
|
|
53
|
-
.map(one(
|
|
54
|
+
.map(one(maybeParse));
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
logger.error(...messages);
|
|
56
57
|
}
|
package/lib/cli.js
CHANGED
|
@@ -85,8 +85,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
|
|
|
85
85
|
return OK;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const validateArgs =
|
|
89
|
-
|
|
88
|
+
const {validateArgs} = await import('@putout/cli-validate-args');
|
|
90
89
|
const error = await validateArgs(args, [
|
|
91
90
|
...yargsOptions.boolean,
|
|
92
91
|
...yargsOptions.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "10.7.
|
|
3
|
+
"version": "10.7.2",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@cloudcmd/stub": "^4.0.0",
|
|
43
43
|
"@putout/cli-keypress": "^2.0.0",
|
|
44
|
-
"@putout/cli-validate-args": "^
|
|
44
|
+
"@putout/cli-validate-args": "^2.0.0",
|
|
45
45
|
"@supertape/engine-loader": "^2.0.0",
|
|
46
46
|
"@supertape/formatter-fail": "^3.0.0",
|
|
47
47
|
"@supertape/formatter-json-lines": "^2.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"cli-progress": "^3.8.2",
|
|
54
54
|
"flatted": "^3.3.1",
|
|
55
55
|
"fullstore": "^3.0.0",
|
|
56
|
-
"glob": "^
|
|
56
|
+
"glob": "^11.0.0",
|
|
57
57
|
"jest-diff": "^29.0.1",
|
|
58
58
|
"once": "^1.4.0",
|
|
59
59
|
"resolve": "^1.17.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@iocmd/wait": "^2.1.0",
|
|
78
78
|
"@putout/eslint-flat": "^2.0.0",
|
|
79
|
-
"c8": "^
|
|
79
|
+
"c8": "^10.1.2",
|
|
80
80
|
"check-dts": "^0.8.0",
|
|
81
81
|
"currify": "^4.0.0",
|
|
82
82
|
"eslint": "^9.1.1",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"montag": "^1.0.0",
|
|
88
88
|
"nodemon": "^3.0.1",
|
|
89
89
|
"pullout": "^5.0.1",
|
|
90
|
-
"putout": "^
|
|
90
|
+
"putout": "^36.0.2",
|
|
91
91
|
"runsome": "^1.0.0",
|
|
92
92
|
"try-catch": "^3.0.1",
|
|
93
93
|
"typescript": "^5.1.6"
|