@supertape/formatter-progress-bar 4.2.0 → 5.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.
@@ -14,7 +14,6 @@ const {red} = chalk;
14
14
  const formatErrorsCount = (a) => a ? red(a) : OK;
15
15
 
16
16
  const isStr = (a) => typeof a === 'string';
17
-
18
17
  const {stderr} = process;
19
18
 
20
19
  let SUPERTAPE_PROGRESS_BAR;
@@ -120,7 +119,7 @@ export const end = ({barStore, out}) => ({count, passed, failed, skiped}) => {
120
119
  out(`# pass ${passed}`);
121
120
 
122
121
  if (skiped)
123
- out(`# ⚠️ skip ${skiped}`);
122
+ out(formatSkip(skiped));
124
123
 
125
124
  out('');
126
125
 
@@ -199,3 +198,10 @@ function _createProgress({total, color, test}) {
199
198
 
200
199
  return bar;
201
200
  }
201
+
202
+ function formatSkip(skiped) {
203
+ const {TERMINAL_EMULATOR} = process.env;
204
+ const spaces = /JetBrains/.test(TERMINAL_EMULATOR) ? '' : ' ';
205
+
206
+ return `# ⚠️ ${spaces}skip ${skiped}`;
207
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supertape/formatter-progress-bar",
3
- "version": "4.2.0",
3
+ "version": "5.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",
@@ -35,20 +35,20 @@
35
35
  "supertape"
36
36
  ],
37
37
  "devDependencies": {
38
- "c8": "^8.0.0",
38
+ "c8": "^9.0.0",
39
39
  "eslint": "^8.0.0-beta.0",
40
40
  "eslint-plugin-n": "^16.0.1",
41
- "eslint-plugin-putout": "^21.0.1",
42
- "madrun": "^9.0.0",
41
+ "eslint-plugin-putout": "^22.0.0",
42
+ "madrun": "^10.0.0",
43
43
  "montag": "^1.0.0",
44
44
  "nodemon": "^3.0.1",
45
45
  "pullout": "^4.0.0",
46
- "putout": "^33.0.0",
47
- "supertape": "^8.0.0"
46
+ "putout": "^35.0.0",
47
+ "supertape": "^10.0.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "engines": {
51
- "node": ">=16"
51
+ "node": ">=18"
52
52
  },
53
53
  "publishConfig": {
54
54
  "access": "public"