oxc-coverage-instrument 0.2.15 → 0.2.16
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/package.json +8 -8
- package/vitest.d.ts +2 -0
- package/vitest.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxc-coverage-instrument",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Istanbul-compatible JavaScript/TypeScript coverage instrumentation using the Oxc AST. 8-48x faster than istanbul-lib-instrument.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"test": "node test.mjs"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@oxc-coverage-instrument/binding-darwin-arm64": "0.2.
|
|
65
|
-
"@oxc-coverage-instrument/binding-darwin-x64": "0.2.
|
|
66
|
-
"@oxc-coverage-instrument/binding-linux-x64-gnu": "0.2.
|
|
67
|
-
"@oxc-coverage-instrument/binding-linux-arm64-gnu": "0.2.
|
|
68
|
-
"@oxc-coverage-instrument/binding-linux-x64-musl": "0.2.
|
|
69
|
-
"@oxc-coverage-instrument/binding-win32-x64-msvc": "0.2.
|
|
70
|
-
"@oxc-coverage-instrument/binding-win32-arm64-msvc": "0.2.
|
|
64
|
+
"@oxc-coverage-instrument/binding-darwin-arm64": "0.2.16",
|
|
65
|
+
"@oxc-coverage-instrument/binding-darwin-x64": "0.2.16",
|
|
66
|
+
"@oxc-coverage-instrument/binding-linux-x64-gnu": "0.2.16",
|
|
67
|
+
"@oxc-coverage-instrument/binding-linux-arm64-gnu": "0.2.16",
|
|
68
|
+
"@oxc-coverage-instrument/binding-linux-x64-musl": "0.2.16",
|
|
69
|
+
"@oxc-coverage-instrument/binding-win32-x64-msvc": "0.2.16",
|
|
70
|
+
"@oxc-coverage-instrument/binding-win32-arm64-msvc": "0.2.16"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/vitest.d.ts
CHANGED
|
@@ -36,4 +36,6 @@ export declare function createOxcInstrumenter(options?: OxcInstrumenterOptions):
|
|
|
36
36
|
instrumentSync(code: string, filename: string, inputSourceMap?: any): string
|
|
37
37
|
lastSourceMap(): any
|
|
38
38
|
lastFileCoverage(): any
|
|
39
|
+
/** Property alias for compatibility with vite-plugin-istanbul. */
|
|
40
|
+
readonly fileCoverage: any
|
|
39
41
|
}
|
package/vitest.js
CHANGED
|
@@ -66,6 +66,11 @@ function createOxcInstrumenter(options) {
|
|
|
66
66
|
lastFileCoverage() {
|
|
67
67
|
return _lastFileCoverage;
|
|
68
68
|
},
|
|
69
|
+
|
|
70
|
+
// Property alias used by vite-plugin-istanbul (vs lastFileCoverage() method used by Vitest)
|
|
71
|
+
get fileCoverage() {
|
|
72
|
+
return _lastFileCoverage;
|
|
73
|
+
},
|
|
69
74
|
};
|
|
70
75
|
}
|
|
71
76
|
|