@containerbase/istanbul-reports-html 1.1.45 → 2.0.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/dist/index.js +12 -13
- package/package.json +8 -10
- package/vendor/hljs.css +2 -80
- package/vendor/hljs.js +3 -2502
package/dist/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/* eslint-disable */ // @ts-nocheck
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import {} from "istanbul-lib-report";
|
|
4
3
|
import HtmlReport from "istanbul-reports/lib/html/index.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
HljsHtmlReport as default
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
var __dirname = import.meta.dirname;
|
|
6
|
+
var HljsHtmlReport = class extends HtmlReport {
|
|
7
|
+
onStart(root, context) {
|
|
8
|
+
super.onStart(root, context);
|
|
9
|
+
const writer = this.getWriter(context);
|
|
10
|
+
const srcDir = path.resolve(__dirname, "..", "vendor");
|
|
11
|
+
writer.copyFile(`${srcDir}/hljs.js`, "./prettify.js");
|
|
12
|
+
writer.copyFile(`${srcDir}/hljs.css`, "./prettify.css");
|
|
13
|
+
}
|
|
17
14
|
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { HljsHtmlReport as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@containerbase/istanbul-reports-html",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"coverage",
|
|
6
6
|
"highlight",
|
|
@@ -25,30 +25,29 @@
|
|
|
25
25
|
"index.cjs"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"istanbul-lib-report": "^3.0.1",
|
|
29
28
|
"istanbul-reports": "^3.2.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@containerbase/eslint-plugin": "1.1.37",
|
|
33
32
|
"@containerbase/semantic-release-pnpm": "1.3.34",
|
|
34
33
|
"@eslint/js": "9.39.4",
|
|
35
|
-
"@tsconfig/
|
|
34
|
+
"@tsconfig/node22": "22.0.0",
|
|
36
35
|
"@tsconfig/strictest": "2.0.8",
|
|
37
36
|
"@types/eslint-config-prettier": "6.11.3",
|
|
38
37
|
"@types/istanbul-lib-report": "3.0.3",
|
|
39
38
|
"@types/node": "22.19.17",
|
|
40
39
|
"@vitest/eslint-plugin": "1.6.16",
|
|
41
40
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
42
|
-
"esbuild": "0.28.0",
|
|
43
41
|
"eslint": "9.39.4",
|
|
44
42
|
"eslint-config-prettier": "10.1.8",
|
|
45
43
|
"eslint-formatter-gha": "1.6.0",
|
|
46
44
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
47
45
|
"eslint-plugin-import-x": "4.16.2",
|
|
48
|
-
"eslint-plugin-promise": "7.
|
|
46
|
+
"eslint-plugin-promise": "7.3.0",
|
|
49
47
|
"globals": "16.5.0",
|
|
50
48
|
"highlight.js": "11.11.1",
|
|
51
49
|
"husky": "9.1.7",
|
|
50
|
+
"istanbul-lib-report": "3.0.1",
|
|
52
51
|
"lint-staged": "16.4.0",
|
|
53
52
|
"markdownlint-cli2": "0.22.1",
|
|
54
53
|
"npm-run-all2": "8.0.4",
|
|
@@ -56,18 +55,17 @@
|
|
|
56
55
|
"prettier-plugin-packagejson": "2.5.22",
|
|
57
56
|
"semantic-release": "25.0.3",
|
|
58
57
|
"typescript": "5.9.3",
|
|
59
|
-
"typescript-eslint": "8.59.0"
|
|
58
|
+
"typescript-eslint": "8.59.0",
|
|
59
|
+
"vite": "8.0.10"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
|
-
"node": "^
|
|
62
|
+
"node": "^22.11.0 || >=24.0.0",
|
|
63
63
|
"pnpm": "^10.0.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
|
+
"build": "node tools/build.js",
|
|
66
67
|
"eslint": "eslint --cache .",
|
|
67
68
|
"eslint-fix": "eslint --cache --fix .",
|
|
68
|
-
"build": "run-s 'build:*'",
|
|
69
|
-
"build:hljs": "esbuild src/vendor/hljs.ts --bundle --target=es2020 --outfile=vendor/hljs.js --banner:js='/* eslint-disable */ // @ts-nocheck'",
|
|
70
|
-
"build:main": "esbuild src/index.ts --platform=node --target=node20 --format=esm --outfile=dist/index.js --banner:js='/* eslint-disable */ // @ts-nocheck'",
|
|
71
69
|
"lint:types": "run-p 'lint:types:*'",
|
|
72
70
|
"lint:types:default": "tsc",
|
|
73
71
|
"prettier": "prettier --cache -c -u \"**/*.*\"",
|
package/vendor/hljs.css
CHANGED
|
@@ -1,80 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
display: block;
|
|
4
|
-
overflow-x: auto;
|
|
5
|
-
padding: 1em;
|
|
6
|
-
}
|
|
7
|
-
code.hljs {
|
|
8
|
-
padding: 3px 5px;
|
|
9
|
-
}
|
|
10
|
-
.hljs {
|
|
11
|
-
background: white;
|
|
12
|
-
color: black;
|
|
13
|
-
}
|
|
14
|
-
.hljs-comment,
|
|
15
|
-
.hljs-quote {
|
|
16
|
-
color: #800;
|
|
17
|
-
}
|
|
18
|
-
.hljs-keyword,
|
|
19
|
-
.hljs-selector-tag,
|
|
20
|
-
.hljs-section,
|
|
21
|
-
.hljs-title,
|
|
22
|
-
.hljs-name {
|
|
23
|
-
color: #008;
|
|
24
|
-
}
|
|
25
|
-
.hljs-variable,
|
|
26
|
-
.hljs-template-variable {
|
|
27
|
-
color: #660;
|
|
28
|
-
}
|
|
29
|
-
.hljs-string,
|
|
30
|
-
.hljs-selector-attr,
|
|
31
|
-
.hljs-selector-pseudo,
|
|
32
|
-
.hljs-regexp {
|
|
33
|
-
color: #080;
|
|
34
|
-
}
|
|
35
|
-
.hljs-literal,
|
|
36
|
-
.hljs-symbol,
|
|
37
|
-
.hljs-bullet,
|
|
38
|
-
.hljs-meta,
|
|
39
|
-
.hljs-number,
|
|
40
|
-
.hljs-link {
|
|
41
|
-
color: #066;
|
|
42
|
-
}
|
|
43
|
-
.hljs-title,
|
|
44
|
-
.hljs-doctag,
|
|
45
|
-
.hljs-type,
|
|
46
|
-
.hljs-attr,
|
|
47
|
-
.hljs-built_in,
|
|
48
|
-
.hljs-params {
|
|
49
|
-
color: #606;
|
|
50
|
-
}
|
|
51
|
-
.hljs-attribute,
|
|
52
|
-
.hljs-subst {
|
|
53
|
-
color: #000;
|
|
54
|
-
}
|
|
55
|
-
.hljs-formula {
|
|
56
|
-
background-color: #eee;
|
|
57
|
-
font-style: italic;
|
|
58
|
-
}
|
|
59
|
-
.hljs-selector-id,
|
|
60
|
-
.hljs-selector-class {
|
|
61
|
-
color: #9B703F;
|
|
62
|
-
}
|
|
63
|
-
.hljs-addition {
|
|
64
|
-
background-color: #baeeba;
|
|
65
|
-
}
|
|
66
|
-
.hljs-deletion {
|
|
67
|
-
background-color: #ffc8bd;
|
|
68
|
-
}
|
|
69
|
-
.hljs-doctag,
|
|
70
|
-
.hljs-strong {
|
|
71
|
-
font-weight: bold;
|
|
72
|
-
}
|
|
73
|
-
.hljs-emphasis {
|
|
74
|
-
font-style: italic;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* src/vendor/hljs.css */
|
|
78
|
-
.missing-if-branch > .hljs-title {
|
|
79
|
-
color: inherit;
|
|
80
|
-
}
|
|
1
|
+
pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#000;background:#fff}.hljs-comment,.hljs-quote{color:#800}.hljs-keyword,.hljs-selector-tag,.hljs-section,.hljs-title,.hljs-name{color:#008}.hljs-variable,.hljs-template-variable{color:#660}.hljs-string,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-regexp{color:#080}.hljs-literal,.hljs-symbol,.hljs-bullet,.hljs-meta,.hljs-number,.hljs-link{color:#066}.hljs-title,.hljs-doctag,.hljs-type,.hljs-attr,.hljs-built_in,.hljs-params{color:#606}.hljs-attribute,.hljs-subst{color:#000}.hljs-formula{background-color:#eee;font-style:italic}.hljs-selector-id,.hljs-selector-class{color:#9b703f}.hljs-addition{background-color:#baeeba}.hljs-deletion{background-color:#ffc8bd}.hljs-doctag,.hljs-strong{font-weight:700}.hljs-emphasis{font-style:italic}.missing-if-branch>.hljs-title{color:inherit}
|
|
2
|
+
/*$vite$:1*/
|