@supertape/formatter-time 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/lib/time.js +7 -4
  2. package/package.json +9 -9
package/lib/time.js CHANGED
@@ -92,10 +92,12 @@ export const testEnd = ({barStore, clock, timerStore}) => ({count, total, failed
92
92
  total,
93
93
  test,
94
94
  failed: formatErrorsCount(failed),
95
- time: !timer ? '' : getTime({
96
- clock,
97
- timer: timerStore(),
98
- }),
95
+ time: !timer
96
+ ? ''
97
+ : getTime({
98
+ clock,
99
+ timer: timerStore(),
100
+ }),
99
101
  });
100
102
  };
101
103
 
@@ -199,6 +201,7 @@ function _createProgress({total, color, test}) {
199
201
  });
200
202
 
201
203
  const colorFn = getColorFn(color);
204
+
202
205
  const bar = new cliProgress.SingleBar({
203
206
  format: `${colorFn('{bar}')} {percentage}% | {failed} | {count}/{total} | {time} | {test}`,
204
207
  barCompleteChar: '\u2588',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-time",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
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",
@@ -23,7 +23,7 @@
23
23
  "wisdom": "madrun wisdom"
24
24
  },
25
25
  "dependencies": {
26
- "chalk": "^5.3.0",
26
+ "chalk": "^6.0.0",
27
27
  "ci-info": "^4.0.0",
28
28
  "cli-progress": "^3.8.2",
29
29
  "fullstore": "^4.0.0",
@@ -36,15 +36,15 @@
36
36
  "supertape"
37
37
  ],
38
38
  "devDependencies": {
39
- "c8": "^10.1.2",
40
- "eslint": "^9.1.1",
41
- "eslint-plugin-putout": "^29.0.2",
42
- "madrun": "^12.1.0",
43
- "montag": "^1.0.0",
39
+ "eslint": "^10.0.2",
40
+ "eslint-plugin-putout": "^31.0.1",
41
+ "madrun": "^13.0.0",
42
+ "montag": "^2.0.1",
44
43
  "nodemon": "^3.0.1",
45
44
  "pullout": "^5.0.1",
46
- "putout": "^41.0.2",
47
- "supertape": "^12.0.0"
45
+ "putout": "^42.0.17",
46
+ "superc8": "^12.0.0",
47
+ "supertape": "^13.0.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "engines": {