@vitest/coverage-istanbul 4.0.13 → 4.0.14

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 -2
  2. package/package.json +4 -5
package/dist/provider.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { existsSync, promises } from 'node:fs';
2
2
  import { defaults } from '@istanbuljs/schema';
3
- import createDebug from 'debug';
4
3
  import libCoverage from 'istanbul-lib-coverage';
5
4
  import { createInstrumenter } from 'istanbul-lib-instrument';
6
5
  import libReport from 'istanbul-lib-report';
7
6
  import libSourceMaps from 'istanbul-lib-source-maps';
8
7
  import reports from 'istanbul-reports';
9
8
  import { parseModule } from 'magicast';
9
+ import { createDebug } from 'obug';
10
10
  import c from 'tinyrainbow';
11
11
  import { BaseCoverageProvider } from 'vitest/coverage';
12
12
  import { isCSSRequest } from 'vitest/node';
13
13
  import { C as COVERAGE_STORE_KEY } from './constants-BCJfMgEg.js';
14
14
 
15
- var version = "4.0.13";
15
+ var version = "4.0.14";
16
16
 
17
17
  const debug = createDebug("vitest:coverage");
18
18
  class IstanbulCoverageProvider extends BaseCoverageProvider {
@@ -172,6 +172,7 @@ class IstanbulCoverageProvider extends BaseCoverageProvider {
172
172
  if (node.id && !this.transformedModuleIds.has(node.id)) {
173
173
  moduleGraph.invalidateModule(node, seen);
174
174
  }
175
+ seen.add(node);
175
176
  node.importedModules.forEach((mod) => {
176
177
  this.invalidateTree(mod, moduleGraph, seen);
177
178
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/coverage-istanbul",
3
3
  "type": "module",
4
- "version": "4.0.13",
4
+ "version": "4.0.14",
5
5
  "description": "Istanbul coverage provider for Vitest",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -37,28 +37,27 @@
37
37
  "dist"
38
38
  ],
39
39
  "peerDependencies": {
40
- "vitest": "4.0.13"
40
+ "vitest": "4.0.14"
41
41
  },
42
42
  "dependencies": {
43
43
  "@istanbuljs/schema": "^0.1.3",
44
- "debug": "^4.4.3",
45
44
  "istanbul-lib-coverage": "^3.2.2",
46
45
  "istanbul-lib-instrument": "^6.0.3",
47
46
  "istanbul-lib-report": "^3.0.1",
48
47
  "istanbul-lib-source-maps": "^5.0.6",
49
48
  "istanbul-reports": "^3.2.0",
50
49
  "magicast": "^0.5.1",
50
+ "obug": "^2.1.1",
51
51
  "tinyrainbow": "^3.0.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@types/debug": "^4.1.12",
55
54
  "@types/istanbul-lib-coverage": "^2.0.6",
56
55
  "@types/istanbul-lib-instrument": "^1.7.8",
57
56
  "@types/istanbul-lib-report": "^3.0.3",
58
57
  "@types/istanbul-lib-source-maps": "^4.0.4",
59
58
  "@types/istanbul-reports": "^3.0.4",
60
59
  "pathe": "^2.0.3",
61
- "vitest": "4.0.13"
60
+ "vitest": "4.0.14"
62
61
  },
63
62
  "scripts": {
64
63
  "build": "premove dist && rollup -c",