@supertape/formatter-progress-bar 3.0.0 → 4.1.0
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/lib/progress-bar.js +21 -8
- package/package.json +8 -9
package/lib/progress-bar.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {Writable} from 'stream';
|
|
2
|
-
|
|
1
|
+
import {Writable} from 'node:stream';
|
|
3
2
|
import cliProgress from 'cli-progress';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
4
|
import fullstore from 'fullstore';
|
|
6
5
|
import {isCI} from 'ci-info';
|
|
6
|
+
import process from 'node:process';
|
|
7
7
|
|
|
8
8
|
global._isCI = isCI;
|
|
9
9
|
|
|
@@ -35,11 +35,24 @@ export function createFormatter(bar) {
|
|
|
35
35
|
const barStore = fullstore(bar);
|
|
36
36
|
|
|
37
37
|
return {
|
|
38
|
-
start: start({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
start: start({
|
|
39
|
+
barStore,
|
|
40
|
+
out,
|
|
41
|
+
}),
|
|
42
|
+
test: test({
|
|
43
|
+
store,
|
|
44
|
+
}),
|
|
45
|
+
testEnd: testEnd({
|
|
46
|
+
barStore,
|
|
47
|
+
}),
|
|
48
|
+
fail: fail({
|
|
49
|
+
out,
|
|
50
|
+
store,
|
|
51
|
+
}),
|
|
52
|
+
end: end({
|
|
53
|
+
barStore,
|
|
54
|
+
out,
|
|
55
|
+
}),
|
|
43
56
|
};
|
|
44
57
|
}
|
|
45
58
|
|
|
@@ -134,6 +147,7 @@ function createOutput() {
|
|
|
134
147
|
|
|
135
148
|
if (!args.length) {
|
|
136
149
|
const result = output.join('\n');
|
|
150
|
+
|
|
137
151
|
output = [];
|
|
138
152
|
|
|
139
153
|
return result;
|
|
@@ -188,4 +202,3 @@ function _createProgress({total, color, test}) {
|
|
|
188
202
|
|
|
189
203
|
return bar;
|
|
190
204
|
}
|
|
191
|
-
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supertape/formatter-progress-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape formatter progress bar",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
7
7
|
"main": "./lib/progress-bar.js",
|
|
8
|
-
"commitType": "colon",
|
|
9
8
|
"release": false,
|
|
10
9
|
"tag": false,
|
|
11
10
|
"changelog": false,
|
|
@@ -37,20 +36,20 @@
|
|
|
37
36
|
],
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@babel/core": "^7.12.9",
|
|
40
|
-
"c8": "^
|
|
39
|
+
"c8": "^8.0.0",
|
|
41
40
|
"eslint": "^8.0.0-beta.0",
|
|
42
|
-
"eslint-plugin-
|
|
43
|
-
"eslint-plugin-putout": "^
|
|
41
|
+
"eslint-plugin-n": "^16.0.1",
|
|
42
|
+
"eslint-plugin-putout": "^20.0.0",
|
|
44
43
|
"madrun": "^9.0.0",
|
|
45
44
|
"montag": "^1.0.0",
|
|
46
|
-
"nodemon": "^
|
|
45
|
+
"nodemon": "^3.0.1",
|
|
47
46
|
"pullout": "^4.0.0",
|
|
48
|
-
"putout": "^
|
|
49
|
-
"supertape": "^
|
|
47
|
+
"putout": "^32.0.6",
|
|
48
|
+
"supertape": "^8.0.0"
|
|
50
49
|
},
|
|
51
50
|
"license": "MIT",
|
|
52
51
|
"engines": {
|
|
53
|
-
"node": ">=
|
|
52
|
+
"node": ">=16"
|
|
54
53
|
},
|
|
55
54
|
"publishConfig": {
|
|
56
55
|
"access": "public"
|