@vitest/coverage-v8 1.6.0 → 2.0.0-beta.2
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/provider.js +4 -3
- package/package.json +11 -11
package/dist/provider.js
CHANGED
@@ -2056,11 +2056,12 @@ var v8ToIstanbul = function (path, wrapperLength, sources, excludePath, excludeE
|
|
2056
2056
|
|
2057
2057
|
var v8ToIstanbul$1 = /*@__PURE__*/getDefaultExportFromCjs(v8ToIstanbul);
|
2058
2058
|
|
2059
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
2059
2060
|
function normalizeWindowsPath(input = "") {
|
2060
|
-
if (!input
|
2061
|
+
if (!input) {
|
2061
2062
|
return input;
|
2062
2063
|
}
|
2063
|
-
return input.replace(/\\/g, "/");
|
2064
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
2064
2065
|
}
|
2065
2066
|
|
2066
2067
|
const _UNC_REGEX = /^[/\\]{2}/;
|
@@ -2096,7 +2097,7 @@ const normalize = function(path) {
|
|
2096
2097
|
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
2097
2098
|
};
|
2098
2099
|
function cwd() {
|
2099
|
-
if (typeof process !== "undefined") {
|
2100
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
2100
2101
|
return process.cwd().replace(/\\/g, "/");
|
2101
2102
|
}
|
2102
2103
|
return "/";
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/coverage-v8",
|
3
3
|
"type": "module",
|
4
|
-
"version": "
|
4
|
+
"version": "2.0.0-beta.2",
|
5
5
|
"description": "V8 coverage provider for Vitest",
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
7
7
|
"license": "MIT",
|
@@ -37,21 +37,21 @@
|
|
37
37
|
"dist"
|
38
38
|
],
|
39
39
|
"peerDependencies": {
|
40
|
-
"vitest": "
|
40
|
+
"vitest": "2.0.0-beta.2"
|
41
41
|
},
|
42
42
|
"dependencies": {
|
43
|
-
"@ampproject/remapping": "^2.
|
43
|
+
"@ampproject/remapping": "^2.3.0",
|
44
44
|
"@bcoe/v8-coverage": "^0.2.3",
|
45
45
|
"debug": "^4.3.4",
|
46
46
|
"istanbul-lib-coverage": "^3.2.2",
|
47
47
|
"istanbul-lib-report": "^3.0.1",
|
48
48
|
"istanbul-lib-source-maps": "^5.0.4",
|
49
|
-
"istanbul-reports": "^3.1.
|
50
|
-
"magic-string": "^0.30.
|
51
|
-
"magicast": "^0.3.
|
49
|
+
"istanbul-reports": "^3.1.7",
|
50
|
+
"magic-string": "^0.30.10",
|
51
|
+
"magicast": "^0.3.4",
|
52
52
|
"picocolors": "^1.0.0",
|
53
|
-
"std-env": "^3.
|
54
|
-
"strip-literal": "^2.
|
53
|
+
"std-env": "^3.7.0",
|
54
|
+
"strip-literal": "^2.1.0",
|
55
55
|
"test-exclude": "^6.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -60,10 +60,10 @@
|
|
60
60
|
"@types/istanbul-lib-report": "^3.0.3",
|
61
61
|
"@types/istanbul-lib-source-maps": "^4.0.4",
|
62
62
|
"@types/istanbul-reports": "^3.0.4",
|
63
|
-
"pathe": "^1.1.
|
63
|
+
"pathe": "^1.1.2",
|
64
64
|
"v8-to-istanbul": "^9.2.0",
|
65
|
-
"vite-node": "
|
66
|
-
"vitest": "
|
65
|
+
"vite-node": "2.0.0-beta.2",
|
66
|
+
"vitest": "2.0.0-beta.2"
|
67
67
|
},
|
68
68
|
"scripts": {
|
69
69
|
"build": "rimraf dist && rollup -c",
|