escover 2.5.0 → 2.5.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 CHANGED
@@ -1,3 +1,14 @@
1
+ 2023.03.06, v2.5.2
2
+
3
+ feature:
4
+ - package: putout v29.0.0
5
+
6
+ 2022.10.20, v2.5.1
7
+
8
+ feature:
9
+ - package: putout v28.0.0
10
+ - package: supertape v8.0.1
11
+
1
12
  2022.07.30, v2.5.0
2
13
 
3
14
  feature:
package/README.md CHANGED
@@ -118,7 +118,7 @@ If you want to disable coverage on status code without erroring, use `ESCOVER_SU
118
118
  import {SKIPED} from 'supertape/exit-codes';
119
119
 
120
120
  const env = {
121
- ESCOVER_SUCCESS_EXIT_CODE: SKIPPED,
121
+ ESCOVER_SUCCESS_EXIT_CODE: SKIPED,
122
122
  };
123
123
 
124
124
  export default {
@@ -79,7 +79,7 @@ function parseCoverageFile(coverageFile) {
79
79
  const files = [];
80
80
 
81
81
  for (const {name, lines} of coverageFile) {
82
- const filename = name.replace(CWD + '/', '');
82
+ const filename = name.replace(`${CWD}/`, '');
83
83
  const uncoveredLines = parseUncoveredLines(lines);
84
84
 
85
85
  const linesCount = keys(lines).length;
@@ -7,6 +7,8 @@ import {
7
7
  import {addMarkToArgument} from './argument.js';
8
8
  import {addMarkToArrowFunction} from './arrow.js';
9
9
 
10
+ const noop = () => {};
11
+
10
12
  const {
11
13
  NumericLiteral,
12
14
  SequenceExpression,
@@ -42,7 +44,7 @@ export const fix = (path, {options}) => {
42
44
 
43
45
  const {
44
46
  c4 = {
45
- init: () => {},
47
+ init: noop,
46
48
  },
47
49
  } = options;
48
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "Coverage for EcmaScript Modules",
6
6
  "main": "lib/escover.js",
@@ -47,7 +47,7 @@
47
47
  "montag": "^1.2.1",
48
48
  "once": "^1.4.0",
49
49
  "picomatch": "^2.3.1",
50
- "putout": "^27.0.1",
50
+ "putout": "^29.0.0",
51
51
  "strip-ansi": "^7.0.1",
52
52
  "table": "^6.8.0",
53
53
  "try-catch": "^3.0.0",
@@ -66,6 +66,6 @@
66
66
  "eslint-plugin-n": "^15.2.4",
67
67
  "eslint-plugin-putout": "^16.0.0",
68
68
  "madrun": "^9.0.0",
69
- "supertape": "^7.0.0"
69
+ "supertape": "^8.0.1"
70
70
  }
71
71
  }