escover 3.5.1 → 3.6.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.
- package/ChangeLog +11 -0
- package/lib/cli/cli.js +4 -3
- package/lib/cli/version.js +1 -1
- package/lib/config.js +1 -1
- package/lib/coverage-file/coverage-file.js +2 -2
- package/lib/coverage-file/find-cache-dir.js +3 -3
- package/lib/escover.js +1 -2
- package/package.json +4 -4
package/ChangeLog
CHANGED
package/lib/cli/cli.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {execSync} from 'child_process';
|
|
1
|
+
import {execSync} from 'node:child_process';
|
|
2
2
|
import tryCatch from 'try-catch';
|
|
3
3
|
import yargsParser from 'yargs-parser';
|
|
4
4
|
import {version} from './version.js';
|
|
5
5
|
import reportLines from '../formatters/lines.js';
|
|
6
6
|
import reportFiles from '../formatters/files.js';
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
const noop = () => {};
|
|
8
9
|
|
|
9
10
|
const {ESCOVER_FORMAT} = process.env;
|
|
10
11
|
|
|
@@ -31,7 +32,7 @@ export const cli = ({argv, exit, readCoverage}) => {
|
|
|
31
32
|
const cmd = argv.slice(2);
|
|
32
33
|
|
|
33
34
|
if (cmd.length) {
|
|
34
|
-
execute(`"${cmd.join('" "')}"`,
|
|
35
|
+
execute(`"${cmd.join('" "')}"`, noop);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
const coverage = readCoverage();
|
package/lib/cli/version.js
CHANGED
package/lib/config.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeFileSync,
|
|
3
3
|
readFileSync,
|
|
4
|
-
} from 'fs';
|
|
4
|
+
} from 'node:fs';
|
|
5
5
|
import tryCatch from 'try-catch';
|
|
6
|
-
import {join} from 'path';
|
|
6
|
+
import {join} from 'node:path';
|
|
7
7
|
import {getFileEntries} from '../c4.js';
|
|
8
8
|
import {transform} from '../transform.js';
|
|
9
9
|
import {merge} from '../merge.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {join} from 'path';
|
|
2
|
-
import {cwd} from 'process';
|
|
3
|
-
import {mkdirSync} from 'fs';
|
|
1
|
+
import {join} from 'node:path';
|
|
2
|
+
import {cwd} from 'node:process';
|
|
3
|
+
import {mkdirSync} from 'node:fs';
|
|
4
4
|
|
|
5
5
|
export function findCacheDir() {
|
|
6
6
|
const name = join(cwd(), 'coverage');
|
package/lib/escover.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "escover",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
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",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@putout/plugin-convert-optional-to-logical": "^1.0.0",
|
|
43
43
|
"chalk": "^5.0.0",
|
|
44
|
-
"find-cache-dir": "^
|
|
44
|
+
"find-cache-dir": "^5.0.0",
|
|
45
45
|
"find-up": "^6.2.0",
|
|
46
46
|
"mock-import": "^3.0.1",
|
|
47
47
|
"montag": "^1.2.1",
|
|
48
48
|
"once": "^1.4.0",
|
|
49
49
|
"picomatch": "^2.3.1",
|
|
50
|
-
"putout": "^
|
|
50
|
+
"putout": "^31.0.0",
|
|
51
51
|
"strip-ansi": "^7.0.1",
|
|
52
52
|
"table": "^6.8.0",
|
|
53
53
|
"try-catch": "^3.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"escover": "^3.2.0",
|
|
65
65
|
"eslint": "^8.3.0",
|
|
66
66
|
"eslint-plugin-n": "^16.0.0",
|
|
67
|
-
"eslint-plugin-putout": "^
|
|
67
|
+
"eslint-plugin-putout": "^19.0.0",
|
|
68
68
|
"madrun": "^9.0.0",
|
|
69
69
|
"supertape": "^8.0.1"
|
|
70
70
|
}
|