@vitest/coverage-v8 2.0.0-beta.1 → 2.0.0-beta.3

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 +3 -4
  2. package/package.json +4 -4
package/dist/provider.js CHANGED
@@ -2186,10 +2186,9 @@ const isAbsolute = function(p) {
2186
2186
  const isWindows = process.platform === "win32";
2187
2187
  const drive = isWindows ? process.cwd()[0] : null;
2188
2188
  drive ? drive === drive.toUpperCase() ? drive.toLowerCase() : drive.toUpperCase() : null;
2189
- const queryRE = /\?.*$/s;
2190
- const hashRE = /#.*$/s;
2189
+ const postfixRE = /[?#].*$/;
2191
2190
  function cleanUrl(url) {
2192
- return url.replace(hashRE, "").replace(queryRE, "");
2191
+ return url.replace(postfixRE, "");
2193
2192
  }
2194
2193
  /* @__PURE__ */ new Set([
2195
2194
  ...builtinModules,
@@ -2210,7 +2209,7 @@ function cleanUrl(url) {
2210
2209
 
2211
2210
  const WRAPPER_LENGTH = 185;
2212
2211
  const VITE_EXPORTS_LINE_PATTERN = /Object\.defineProperty\(__vite_ssr_exports__.*\n/g;
2213
- const DECORATOR_METADATA_PATTERN = /_ts_metadata\("design:paramtypes", \[[^\]]*?\]\),*/g;
2212
+ const DECORATOR_METADATA_PATTERN = /_ts_metadata\("design:paramtypes", \[[^\]]*\]\),*/g;
2214
2213
  const DEFAULT_PROJECT = Symbol.for("default-project");
2215
2214
  const debug = createDebug("vitest:coverage");
2216
2215
  let uniqueId = 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/coverage-v8",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-beta.3",
5
5
  "description": "V8 coverage provider for Vitest",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -37,7 +37,7 @@
37
37
  "dist"
38
38
  ],
39
39
  "peerDependencies": {
40
- "vitest": "2.0.0-beta.1"
40
+ "vitest": "2.0.0-beta.3"
41
41
  },
42
42
  "dependencies": {
43
43
  "@ampproject/remapping": "^2.3.0",
@@ -62,8 +62,8 @@
62
62
  "@types/istanbul-reports": "^3.0.4",
63
63
  "pathe": "^1.1.2",
64
64
  "v8-to-istanbul": "^9.2.0",
65
- "vitest": "2.0.0-beta.1",
66
- "vite-node": "2.0.0-beta.1"
65
+ "vite-node": "2.0.0-beta.3",
66
+ "vitest": "2.0.0-beta.3"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "rimraf dist && rollup -c",