@vitest/coverage-v8 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/dist/provider.js +5 -6
  2. package/package.json +8 -8
package/dist/provider.js CHANGED
@@ -32,7 +32,6 @@ function normalizeWindowsPath(input = "") {
32
32
  const _UNC_REGEX = /^[/\\]{2}/;
33
33
  const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
34
34
  const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
35
- globalThis.process?.platform === "win32" ? ";" : ":";
36
35
  const normalize = function(path) {
37
36
  if (path.length === 0) {
38
37
  return ".";
@@ -599,7 +598,7 @@ function requireSourcemapCodec_umd () {
599
598
  const shouldNegate = value & 1;
600
599
  value >>>= 1;
601
600
  if (shouldNegate) {
602
- value = -0x80000000 | -value;
601
+ value = -2147483648 | -value;
603
602
  }
604
603
  return relative + value;
605
604
  }
@@ -1628,7 +1627,7 @@ function requireTraceMapping_umd () {
1628
1627
  function encodedMappings(map) {
1629
1628
  var _a;
1630
1629
  var _b;
1631
- return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = sourcemapCodec.encode(cast(map)._decoded)));
1630
+ return ((_a = (_b = cast(map))._encoded) !== null && _a !== undefined ? _a : (_b._encoded = sourcemapCodec.encode(cast(map)._decoded)));
1632
1631
  }
1633
1632
  /**
1634
1633
  * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
@@ -2540,7 +2539,7 @@ function cleanUrl(url) {
2540
2539
  "wasi"
2541
2540
  ]);
2542
2541
 
2543
- var version = "3.0.0";
2542
+ var version = "3.0.1";
2544
2543
 
2545
2544
  const WRAPPER_LENGTH = 185;
2546
2545
  const VITE_EXPORTS_LINE_PATTERN = /Object\.defineProperty\(__vite_ssr_exports__.*\n/g;
@@ -2695,7 +2694,7 @@ class V8CoverageProvider extends BaseCoverageProvider {
2695
2694
  let transformResult = transformResults.get(filePath);
2696
2695
  if (!transformResult) {
2697
2696
  isExecuted = false;
2698
- transformResult = await onTransform(removeStartsWith(url, FILE_PROTOCOL)).catch(() => void 0);
2697
+ transformResult = await onTransform(removeStartsWith(url, FILE_PROTOCOL)).catch(() => undefined);
2699
2698
  }
2700
2699
  const map = transformResult?.map;
2701
2700
  const code = transformResult?.code;
@@ -2779,7 +2778,7 @@ class V8CoverageProvider extends BaseCoverageProvider {
2779
2778
  url,
2780
2779
  wrapperLength,
2781
2780
  sources,
2782
- void 0,
2781
+ undefined,
2783
2782
  this.options.ignoreEmptyLines
2784
2783
  );
2785
2784
  await converter.load();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/coverage-v8",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "description": "V8 coverage provider for Vitest",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -41,8 +41,8 @@
41
41
  "dist"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@vitest/browser": "3.0.0",
45
- "vitest": "3.0.0"
44
+ "@vitest/browser": "3.0.1",
45
+ "vitest": "3.0.1"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@vitest/browser": {
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@ampproject/remapping": "^2.3.0",
54
- "@bcoe/v8-coverage": "^1.0.1",
54
+ "@bcoe/v8-coverage": "^1.0.2",
55
55
  "debug": "^4.4.0",
56
56
  "istanbul-lib-coverage": "^3.2.2",
57
57
  "istanbul-lib-report": "^3.0.1",
@@ -70,11 +70,11 @@
70
70
  "@types/istanbul-lib-source-maps": "^4.0.4",
71
71
  "@types/istanbul-reports": "^3.0.4",
72
72
  "@types/test-exclude": "^6.0.2",
73
- "pathe": "^2.0.0",
73
+ "pathe": "^2.0.1",
74
74
  "v8-to-istanbul": "^9.3.0",
75
- "@vitest/browser": "3.0.0",
76
- "vite-node": "3.0.0",
77
- "vitest": "3.0.0"
75
+ "@vitest/browser": "3.0.1",
76
+ "vite-node": "3.0.1",
77
+ "vitest": "3.0.1"
78
78
  },
79
79
  "scripts": {
80
80
  "build": "rimraf dist && rollup -c",