monocart-coverage-reports 2.12.11 → 2.13.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/README.md +47 -9
- package/README.zh-Hans.md +48 -10
- package/lib/assets.js +1 -1
- package/lib/converter/converter.js +28 -13
- package/lib/packages/monocart-coverage-assets.js +1 -1
- package/lib/packages/monocart-coverage-vendor.js +24 -16
- package/lib/platform/share.js +18 -10
- package/lib/reports/console-details.js +1 -34
- package/lib/utils/gc.js +13 -4
- package/lib/utils/merge/merge.js +5 -9
- package/lib/utils/util.js +37 -86
- package/lib/v8/v8.js +11 -12
- package/package.json +149 -136
package/package.json
CHANGED
|
@@ -1,136 +1,149 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "monocart-coverage-reports",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
|
|
5
|
-
"main": "./lib/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"mcr": "./lib/cli.js"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./lib/index.d.ts",
|
|
12
|
-
"import": "./lib/index.mjs",
|
|
13
|
-
"require": "./lib/index.js"
|
|
14
|
-
},
|
|
15
|
-
"./register": {
|
|
16
|
-
"import": "./lib/register/register.mjs",
|
|
17
|
-
"require": "./lib/register/register.js"
|
|
18
|
-
},
|
|
19
|
-
"./converter": "./lib/converter/converter.js",
|
|
20
|
-
"./util": "./lib/utils/util.js",
|
|
21
|
-
"./package.json": "./package.json"
|
|
22
|
-
},
|
|
23
|
-
"types": "./lib/index.d.ts",
|
|
24
|
-
"scripts": {
|
|
25
|
-
"
|
|
26
|
-
"build": "
|
|
27
|
-
"
|
|
28
|
-
"test
|
|
29
|
-
"test-
|
|
30
|
-
"test-node-
|
|
31
|
-
"test-node-
|
|
32
|
-
"test-node-
|
|
33
|
-
"test-node-
|
|
34
|
-
"test-node-
|
|
35
|
-
"test-node": "node ./test/test.js
|
|
36
|
-
"test-
|
|
37
|
-
"test-
|
|
38
|
-
"test-
|
|
39
|
-
"test-
|
|
40
|
-
"test-
|
|
41
|
-
"test-
|
|
42
|
-
"test-
|
|
43
|
-
"test-
|
|
44
|
-
"test-
|
|
45
|
-
"test-
|
|
46
|
-
"test-
|
|
47
|
-
"test-
|
|
48
|
-
"test-
|
|
49
|
-
"test-
|
|
50
|
-
"test-
|
|
51
|
-
"test-merge
|
|
52
|
-
"test-merge-
|
|
53
|
-
"test-
|
|
54
|
-
"test-
|
|
55
|
-
"test-
|
|
56
|
-
"test-
|
|
57
|
-
"test": "
|
|
58
|
-
"test
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"acorn
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"istanbul-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "monocart-coverage-reports",
|
|
3
|
+
"version": "2.13.0",
|
|
4
|
+
"description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"mcr": "./lib/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"import": "./lib/index.mjs",
|
|
13
|
+
"require": "./lib/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./register": {
|
|
16
|
+
"import": "./lib/register/register.mjs",
|
|
17
|
+
"require": "./lib/register/register.js"
|
|
18
|
+
},
|
|
19
|
+
"./converter": "./lib/converter/converter.js",
|
|
20
|
+
"./util": "./lib/utils/util.js",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"types": "./lib/index.d.ts",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"build": "vite build",
|
|
27
|
+
"postbuild": "npm run build-test",
|
|
28
|
+
"build-test": "node ./test/build/build-test.js",
|
|
29
|
+
"test-unit": "mocha --parallel test/unit/*.test.js",
|
|
30
|
+
"test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-env node ./test/test-node-env.js && node ./test/generate-report.js",
|
|
31
|
+
"test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-api node ./test/test-node-api.js",
|
|
32
|
+
"test-node-ins": "node ./test/test-node-ins.js",
|
|
33
|
+
"test-node-cdp": "node --inspect=9229 ./test/test-node-cdp.js",
|
|
34
|
+
"test-node-vm": "node ./test/test-node-vm.js",
|
|
35
|
+
"test-node-koa": "node ./test/test-node-koa.js",
|
|
36
|
+
"test-node-fgc": "node ./test/test-node-fgc.js",
|
|
37
|
+
"test-node": "node ./test/test.js --node",
|
|
38
|
+
"test-istanbul": "node ./test/test-istanbul.js",
|
|
39
|
+
"test-v8": "node ./test/test-v8.js",
|
|
40
|
+
"test-puppeteer": "node ./test/test-puppeteer.js",
|
|
41
|
+
"test-css": "node ./test/test-css.js",
|
|
42
|
+
"test-minify": "node ./test/test-minify.js",
|
|
43
|
+
"test-esbuild": "node ./test/test-esbuild.js",
|
|
44
|
+
"test-rollup": "node ./test/test-rollup.js",
|
|
45
|
+
"test-sections": "node ./test/test-sections.js",
|
|
46
|
+
"test-swc": "node ./test/test-swc.js",
|
|
47
|
+
"test-v8-and-istanbul": "node ./test/test-v8-and-istanbul.js",
|
|
48
|
+
"test-browser": "node ./test/test.js --browser",
|
|
49
|
+
"test-cli": "npx mcr node ./test/specs/node.test.js -c test/mcr.config.cli.js",
|
|
50
|
+
"test-demo": "node ./test/test-demo.js",
|
|
51
|
+
"test-merge": "node ./test/test-merge.js",
|
|
52
|
+
"test-merge-istanbul": "node ./test/test-merge-istanbul.js",
|
|
53
|
+
"test-merge-v8": "node ./test/test-merge-v8.js",
|
|
54
|
+
"test-merge-cli": "npx mcr merge -r console-details,v8 --inputDir .temp/code-coverage/raw --outputDir .temp/merge-cli",
|
|
55
|
+
"test-client": "node ./test/test-client.js",
|
|
56
|
+
"test-cp": "npx mcr node test/test-cp.mjs --outputDir .temp/test-cp",
|
|
57
|
+
"test-all": "node ./test/test.js",
|
|
58
|
+
"test-pr": "node --inspect=9230 ./test/test-pr.js",
|
|
59
|
+
"test": "npm run test-unit && npx mcr npm run test-all -c test/mcr.config.mcr.js && node ./scripts/docs.js",
|
|
60
|
+
"test:snap": "cross-env TEST_SNAPSHOT=true npm run test",
|
|
61
|
+
"open": "node ./scripts/open.js",
|
|
62
|
+
"eol": "git rm -rf --cached . && git reset --hard HEAD",
|
|
63
|
+
"lint": "eslint src/ --fix && stylelint src/**/*.scss",
|
|
64
|
+
"version": "npm run build",
|
|
65
|
+
"publish": "node ./scripts/publish.js"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"lib",
|
|
69
|
+
"README.zh-Hans.md"
|
|
70
|
+
],
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/cenfun/monocart-coverage-reports.git"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"acorn": "^8.18.0",
|
|
78
|
+
"acorn-loose": "^8.5.2",
|
|
79
|
+
"acorn-walk": "^8.3.5",
|
|
80
|
+
"commander": "^14.0.3",
|
|
81
|
+
"console-grid": "^2.2.4",
|
|
82
|
+
"eight-colors": "^1.3.3",
|
|
83
|
+
"foreground-child": "^4.0.3",
|
|
84
|
+
"istanbul-lib-coverage": "^3.2.2",
|
|
85
|
+
"istanbul-lib-report": "^3.0.1",
|
|
86
|
+
"istanbul-reports": "^3.2.0",
|
|
87
|
+
"lz-utils": "^2.1.1",
|
|
88
|
+
"monocart-locator": "^1.0.3"
|
|
89
|
+
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"@actions/core": "^3.0.1",
|
|
92
|
+
"@actions/github": "^9.1.1",
|
|
93
|
+
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
94
|
+
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
|
|
95
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
96
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
97
|
+
"@swc/core": "^1.16.1",
|
|
98
|
+
"@types/node": "^26.2.0",
|
|
99
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
100
|
+
"async-tick": "^1.0.2",
|
|
101
|
+
"axios": "^1.19.0",
|
|
102
|
+
"babel-loader": "^10.1.1",
|
|
103
|
+
"babel-plugin-istanbul": "^8.0.0",
|
|
104
|
+
"convert-source-map": "^2.0.0",
|
|
105
|
+
"cross-env": "^10.1.0",
|
|
106
|
+
"diff-sequences": "^29.6.3",
|
|
107
|
+
"eight-colors": "^1.3.3",
|
|
108
|
+
"esbuild": "^0.28.2",
|
|
109
|
+
"eslint": "^10.8.1",
|
|
110
|
+
"eslint-config-plus": "^2.0.4",
|
|
111
|
+
"eslint-plugin-html": "^8.1.4",
|
|
112
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
113
|
+
"execa": "^10.0.1",
|
|
114
|
+
"find-up": "^8.0.0",
|
|
115
|
+
"foreground-child": "^4.0.3",
|
|
116
|
+
"koa": "^3.2.1",
|
|
117
|
+
"koa-static-resolver": "^1.0.6",
|
|
118
|
+
"minimatch": "^10.2.6",
|
|
119
|
+
"mocha": "^11.8.0",
|
|
120
|
+
"monocart-code-viewer": "^1.2.0",
|
|
121
|
+
"monocart-formatter": "^3.0.1",
|
|
122
|
+
"node-stream-zip": "^1.16.0",
|
|
123
|
+
"open": "^11.0.1",
|
|
124
|
+
"playwright": "^1.62.1",
|
|
125
|
+
"postcss": "^8.5.26",
|
|
126
|
+
"puppeteer": "^25.8.0",
|
|
127
|
+
"rollup": "^4.62.5",
|
|
128
|
+
"rollup-plugin-visualizer": "^7.1.1",
|
|
129
|
+
"sass": "^1.103.1",
|
|
130
|
+
"stylelint": "^17.14.1",
|
|
131
|
+
"stylelint-config-plus": "^1.1.6",
|
|
132
|
+
"supports-color": "^11.0.0",
|
|
133
|
+
"swc-loader": "^0.2.7",
|
|
134
|
+
"ts-loader": "^9.6.2",
|
|
135
|
+
"tslib": "^2.8.1",
|
|
136
|
+
"tsx": "^4.23.12",
|
|
137
|
+
"turbogrid": "^3.4.1",
|
|
138
|
+
"typescript": "^6.0.3",
|
|
139
|
+
"vine-ui": "^4.0.0",
|
|
140
|
+
"vite": "^8.2.2",
|
|
141
|
+
"vite-plugin-css-injected-by-js": "^5.0.2",
|
|
142
|
+
"webpack": "^5.109.2",
|
|
143
|
+
"ws": "^8.21.3",
|
|
144
|
+
"yazl": "^3.3.1"
|
|
145
|
+
},
|
|
146
|
+
"allowScripts": {
|
|
147
|
+
"puppeteer@25.8.0": true
|
|
148
|
+
}
|
|
149
|
+
}
|