@supertape/formatter-progress-bar 3.0.0 → 4.0.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.
@@ -1,5 +1,4 @@
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';
@@ -35,11 +34,24 @@ export function createFormatter(bar) {
35
34
  const barStore = fullstore(bar);
36
35
 
37
36
  return {
38
- start: start({barStore, out}),
39
- test: test({store}),
40
- testEnd: testEnd({barStore}),
41
- fail: fail({out, store}),
42
- end: end({barStore, out}),
37
+ start: start({
38
+ barStore,
39
+ out,
40
+ }),
41
+ test: test({
42
+ store,
43
+ }),
44
+ testEnd: testEnd({
45
+ barStore,
46
+ }),
47
+ fail: fail({
48
+ out,
49
+ store,
50
+ }),
51
+ end: end({
52
+ barStore,
53
+ out,
54
+ }),
43
55
  };
44
56
  }
45
57
 
@@ -134,6 +146,7 @@ function createOutput() {
134
146
 
135
147
  if (!args.length) {
136
148
  const result = output.join('\n');
149
+
137
150
  output = [];
138
151
 
139
152
  return result;
@@ -188,4 +201,3 @@ function _createProgress({total, color, test}) {
188
201
 
189
202
  return bar;
190
203
  }
191
-
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@supertape/formatter-progress-bar",
3
- "version": "3.0.0",
3
+ "version": "4.0.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": "^7.3.5",
39
+ "c8": "^8.0.0",
41
40
  "eslint": "^8.0.0-beta.0",
42
- "eslint-plugin-node": "^11.1.0",
43
- "eslint-plugin-putout": "^16.0.1",
41
+ "eslint-plugin-n": "^16.0.1",
42
+ "eslint-plugin-putout": "^19.0.3",
44
43
  "madrun": "^9.0.0",
45
44
  "montag": "^1.0.0",
46
- "nodemon": "^2.0.2",
45
+ "nodemon": "^3.0.1",
47
46
  "pullout": "^4.0.0",
48
- "putout": "^27.2.0",
49
- "supertape": "^7.0.0"
47
+ "putout": "^31.0.3",
48
+ "supertape": "^8.0.0"
50
49
  },
51
50
  "license": "MIT",
52
51
  "engines": {
53
- "node": ">=14"
52
+ "node": ">=16"
54
53
  },
55
54
  "publishConfig": {
56
55
  "access": "public"