escover 2.5.1 → 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,8 @@
1
+ 2023.03.06, v2.5.2
2
+
3
+ feature:
4
+ - package: putout v29.0.0
5
+
1
6
  2022.10.20, v2.5.1
2
7
 
3
8
  feature:
@@ -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.1",
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": "^28.0.0",
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",