escover 4.1.0 → 4.3.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 +16 -0
- package/bin/escover.js +1 -1
- package/lib/cli/cli.js +1 -1
- package/lib/coverage-file/coverage-file.js +2 -10
- package/lib/escover.js +1 -4
- package/lib/formatters/files.js +1 -1
- package/lib/fresh.js +1 -4
- package/lib/instrument/index.js +1 -1
- package/package.json +11 -11
package/ChangeLog
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
2024.10.27, v4.3.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- 5371048 escover: @putout/plugin-convert-optional-to-logical v4.0.0
|
|
5
|
+
- c8f1128 escover: @putout/test v11.0.0
|
|
6
|
+
- 35ac493 escover: putout v36.11.0
|
|
7
|
+
- 0e4c521 escover: eslint-plugin-putout v23.2.0
|
|
8
|
+
- ffbaffa escover: c8 v10.1.2
|
|
9
|
+
|
|
10
|
+
2024.06.07, v4.2.0
|
|
11
|
+
|
|
12
|
+
feature:
|
|
13
|
+
- a14d18d escover: @putout/test v10.0.0
|
|
14
|
+
- 1b1e4e9 escover: eslint v9.4.0
|
|
15
|
+
- 21f9710 escover: picomatch v4.0.2
|
|
16
|
+
|
|
1
17
|
2024.01.29, v4.1.0
|
|
2
18
|
|
|
3
19
|
feature:
|
package/bin/escover.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import process from 'node:process';
|
|
3
4
|
import {cli} from '../lib/cli/cli.js';
|
|
4
5
|
import {readCoverage} from '../lib/coverage-file/coverage-file.js';
|
|
5
|
-
import process from 'node:process';
|
|
6
6
|
import {readConfig} from '../lib/config.js';
|
|
7
7
|
|
|
8
8
|
cli({
|
package/lib/cli/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {execSync} from 'node:child_process';
|
|
2
|
+
import process from 'node:process';
|
|
2
3
|
import tryCatch from 'try-catch';
|
|
3
4
|
import yargsParser from 'yargs-parser';
|
|
4
|
-
import process from 'node:process';
|
|
5
5
|
import {version} from './version.js';
|
|
6
6
|
import reportLines from '../formatters/lines.js';
|
|
7
7
|
import reportFiles from '../formatters/files.js';
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
writeFileSync,
|
|
3
|
-
readFileSync,
|
|
4
|
-
} from 'node:fs';
|
|
1
|
+
import {writeFileSync, readFileSync} from 'node:fs';
|
|
5
2
|
import {join} from 'node:path';
|
|
6
|
-
|
|
7
3
|
import tryCatch from 'try-catch';
|
|
8
|
-
|
|
9
4
|
import {getFileEntries} from '../c4.js';
|
|
10
5
|
import {transform} from '../transform.js';
|
|
11
6
|
import {merge} from '../merge.js';
|
|
12
7
|
import {findCacheDir} from './find-cache-dir.js';
|
|
13
|
-
import {
|
|
14
|
-
generateLcov,
|
|
15
|
-
parseLcov,
|
|
16
|
-
} from './lcov.js';
|
|
8
|
+
import {generateLcov, parseLcov} from './lcov.js';
|
|
17
9
|
|
|
18
10
|
const LCOV = 'lcov.info';
|
|
19
11
|
|
package/lib/escover.js
CHANGED
|
@@ -2,10 +2,7 @@ import process from 'node:process';
|
|
|
2
2
|
import montag from 'montag';
|
|
3
3
|
import {instrument} from './instrument/index.js';
|
|
4
4
|
import {createFileEntry} from './c4.js';
|
|
5
|
-
import {
|
|
6
|
-
readConfig,
|
|
7
|
-
isExclude,
|
|
8
|
-
} from './config.js';
|
|
5
|
+
import {readConfig, isExclude} from './config.js';
|
|
9
6
|
import {writeCoverage} from './coverage-file/coverage-file.js';
|
|
10
7
|
|
|
11
8
|
global.__createC4 = createFileEntry;
|
package/lib/formatters/files.js
CHANGED
package/lib/fresh.js
CHANGED
package/lib/instrument/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import putout from 'putout';
|
|
2
|
-
import * as mark from './plugin-mark/index.js';
|
|
3
2
|
import * as convertOptionalToLogical from '@putout/plugin-convert-optional-to-logical';
|
|
3
|
+
import * as mark from './plugin-mark/index.js';
|
|
4
4
|
|
|
5
5
|
const cut = (a) => a.replace('#!/usr/bin/env node', '');
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "escover",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.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",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git://github.com/coderaiser/escover.git"
|
|
13
|
+
"url": "git+https://github.com/coderaiser/escover.git"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
@@ -41,31 +41,31 @@
|
|
|
41
41
|
"prewisdom": "madrun prewisdom"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@putout/plugin-convert-optional-to-logical": "^
|
|
44
|
+
"@putout/plugin-convert-optional-to-logical": "^4.0.0",
|
|
45
45
|
"chalk": "^5.0.0",
|
|
46
46
|
"find-cache-dir": "^5.0.0",
|
|
47
47
|
"find-up": "^7.0.0",
|
|
48
48
|
"mock-import": "^4.0.0",
|
|
49
49
|
"montag": "^1.2.1",
|
|
50
50
|
"once": "^1.4.0",
|
|
51
|
-
"picomatch": "^
|
|
52
|
-
"putout": "^
|
|
51
|
+
"picomatch": "^4.0.2",
|
|
52
|
+
"putout": "^36.11.0",
|
|
53
53
|
"strip-ansi": "^7.0.1",
|
|
54
54
|
"table": "^6.8.0",
|
|
55
55
|
"try-catch": "^3.0.0",
|
|
56
56
|
"yargs-parser": "^21.0.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
|
-
"node": ">=18"
|
|
59
|
+
"node": ">=18.19"
|
|
60
60
|
},
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@putout/
|
|
64
|
-
"
|
|
63
|
+
"@putout/eslint-flat": "^2.0.0",
|
|
64
|
+
"@putout/test": "^11.0.0",
|
|
65
|
+
"c8": "^10.1.2",
|
|
65
66
|
"escover": "file:.",
|
|
66
|
-
"eslint": "^
|
|
67
|
-
"eslint-plugin-
|
|
68
|
-
"eslint-plugin-putout": "^22.3.1",
|
|
67
|
+
"eslint": "^9.4.0",
|
|
68
|
+
"eslint-plugin-putout": "^23.2.0",
|
|
69
69
|
"madrun": "^10.0.0",
|
|
70
70
|
"supertape": "^10.0.0"
|
|
71
71
|
}
|