escover 3.4.0 → 3.5.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 +12 -0
- package/lib/cli/cli.js +2 -6
- package/lib/escover.js +12 -7
- package/lib/formatters/files.js +1 -4
- package/package.json +5 -6
package/ChangeLog
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
2023.07.31, v3.5.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 2411d57 escover
|
|
5
|
+
- 830082d escover: exit
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- b6b1301 package: @putout/test v7.0.1
|
|
9
|
+
- e9502cc package: c8 v8.0.1
|
|
10
|
+
- 882431a package: eslint-plugin-putout v18.2.0
|
|
11
|
+
- eb15154 package: putout v30.7.0
|
|
12
|
+
|
|
1
13
|
2023.06.08, v3.4.0
|
|
2
14
|
|
|
3
15
|
feature:
|
package/lib/cli/cli.js
CHANGED
|
@@ -11,12 +11,8 @@ export const ESCOVER_NODE_OPTIONS = '--no-warnings --loader zenload';
|
|
|
11
11
|
|
|
12
12
|
export const cli = ({argv, exit, readCoverage}) => {
|
|
13
13
|
const args = yargsParser(argv.slice(2), {
|
|
14
|
-
string: [
|
|
15
|
-
|
|
16
|
-
],
|
|
17
|
-
boolean: [
|
|
18
|
-
'version',
|
|
19
|
-
],
|
|
14
|
+
string: ['format'],
|
|
15
|
+
boolean: ['version'],
|
|
20
16
|
alias: {
|
|
21
17
|
v: 'version',
|
|
22
18
|
f: 'format',
|
package/lib/escover.js
CHANGED
|
@@ -8,14 +8,12 @@ import {
|
|
|
8
8
|
isExclude,
|
|
9
9
|
} from './config.js';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
process.once('exit', exit);
|
|
12
12
|
|
|
13
13
|
global.__createC4 = createFileEntry;
|
|
14
14
|
|
|
15
15
|
const port = {};
|
|
16
|
-
|
|
17
16
|
const CWD = process.cwd();
|
|
18
|
-
|
|
19
17
|
const {exclude} = readConfig();
|
|
20
18
|
|
|
21
19
|
const EXCLUDE = [
|
|
@@ -40,6 +38,9 @@ export function globalPreload({port}) {
|
|
|
40
38
|
if (loader !== 'escover')
|
|
41
39
|
return;
|
|
42
40
|
|
|
41
|
+
if (type === 'exit')
|
|
42
|
+
return exit();
|
|
43
|
+
|
|
43
44
|
const c4 = createFileEntry(url);
|
|
44
45
|
|
|
45
46
|
if (type === 'set')
|
|
@@ -55,6 +56,13 @@ export function globalPreload({port}) {
|
|
|
55
56
|
function escover() {
|
|
56
57
|
const loader = 'escover';
|
|
57
58
|
|
|
59
|
+
process.on('exit', () => {
|
|
60
|
+
port.postMessage({
|
|
61
|
+
type: 'exit',
|
|
62
|
+
loader: 'escover',
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
58
66
|
global.__createC4 = (url) => ({
|
|
59
67
|
'🧨': (line, column) => {
|
|
60
68
|
port.postMessage({
|
|
@@ -78,10 +86,7 @@ function escover() {
|
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
export async function load(url, context, defaultLoad) {
|
|
81
|
-
const {
|
|
82
|
-
format,
|
|
83
|
-
source: rawSource,
|
|
84
|
-
} = await defaultLoad(url, context, defaultLoad);
|
|
89
|
+
const {format, source: rawSource} = await defaultLoad(url, context, defaultLoad);
|
|
85
90
|
|
|
86
91
|
if (/commonjs|builtin/.test(format))
|
|
87
92
|
return {
|
package/lib/formatters/files.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "escover",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.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",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@putout/plugin-convert-optional-to-logical": "^1.0.0",
|
|
43
|
-
"@putout/printer": "^1.80.3",
|
|
44
43
|
"chalk": "^5.0.0",
|
|
45
44
|
"find-cache-dir": "^4.0.0",
|
|
46
45
|
"find-up": "^6.2.0",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"montag": "^1.2.1",
|
|
49
48
|
"once": "^1.4.0",
|
|
50
49
|
"picomatch": "^2.3.1",
|
|
51
|
-
"putout": "^
|
|
50
|
+
"putout": "^30.7.0",
|
|
52
51
|
"strip-ansi": "^7.0.1",
|
|
53
52
|
"table": "^6.8.0",
|
|
54
53
|
"try-catch": "^3.0.0",
|
|
@@ -60,12 +59,12 @@
|
|
|
60
59
|
},
|
|
61
60
|
"license": "MIT",
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@putout/test": "^
|
|
64
|
-
"c8": "^
|
|
62
|
+
"@putout/test": "^7.0.1",
|
|
63
|
+
"c8": "^8.0.1",
|
|
65
64
|
"escover": "^3.2.0",
|
|
66
65
|
"eslint": "^8.3.0",
|
|
67
66
|
"eslint-plugin-n": "^16.0.0",
|
|
68
|
-
"eslint-plugin-putout": "^
|
|
67
|
+
"eslint-plugin-putout": "^18.2.0",
|
|
69
68
|
"madrun": "^9.0.0",
|
|
70
69
|
"supertape": "^8.0.1"
|
|
71
70
|
}
|