monocart-coverage-reports 2.8.2 → 2.8.4

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/lib/utils/util.js CHANGED
@@ -366,6 +366,16 @@ const Util = {
366
366
  };
367
367
  },
368
368
 
369
+ // offset key
370
+ sortOffsetRanges: (ranges) => {
371
+ ranges.sort((a, b) => {
372
+ if (a.startOffset === b.startOffset) {
373
+ return a.endOffset - b.endOffset;
374
+ }
375
+ return a.startOffset - b.startOffset;
376
+ });
377
+ },
378
+
369
379
  forEachFile: function(dir, extList, callback) {
370
380
  if (!fs.existsSync(dir)) {
371
381
  return;
package/lib/v8/v8.js CHANGED
@@ -335,8 +335,8 @@ const handleV8HtmlReport = async (reportData, reportOptions, options) => {
335
335
  return Util.resolveNodeModule(id);
336
336
  });
337
337
 
338
- // package v8 ui
339
- jsFiles.push(Util.resolvePackage('monocart-coverage-v8.js'));
338
+ // package app ui
339
+ jsFiles.push(Util.resolvePackage('monocart-coverage-app.js'));
340
340
 
341
341
  // console.log(jsFiles);
342
342
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -55,8 +55,9 @@
55
55
  "test-all": "node ./test/test.js && node ./scripts/docs.js",
56
56
  "test": "npm run test-unit && npx mcr npm run test-all -c test/mcr.config.mcr.js",
57
57
  "test:snap": "cross-env TEST_SNAPSHOT=true npm run test",
58
- "dev": "sf d v8",
58
+ "dev": "sf d app",
59
59
  "open": "node ./scripts/open.js",
60
+ "eol": "git rm -rf --cached . && git reset --hard HEAD",
60
61
  "patch": "npm run build && npm run test && sf publish patch -r"
61
62
  },
62
63
  "workspaces": [
@@ -79,23 +80,24 @@
79
80
  "istanbul-lib-report": "^3.0.1",
80
81
  "istanbul-reports": "^3.1.7",
81
82
  "lz-utils": "^2.0.2",
82
- "monocart-code-viewer": "^1.1.3",
83
+ "monocart-code-viewer": "^1.1.4",
83
84
  "monocart-formatter": "^3.0.0",
84
85
  "monocart-locator": "^1.0.0",
85
- "turbogrid": "^3.0.13"
86
+ "turbogrid": "^3.1.0"
86
87
  },
87
88
  "devDependencies": {
88
- "commander": "^12.0.0",
89
- "esbuild": "^0.21.3",
90
- "eslint": "~9.2.0",
91
- "eslint-config-plus": "^2.0.0",
89
+ "commander": "^12.1.0",
90
+ "esbuild": "^0.21.5",
91
+ "eslint": "~9.5.0",
92
+ "eslint-config-plus": "^2.0.2",
92
93
  "eslint-plugin-html": "^8.1.1",
93
94
  "eslint-plugin-vue": "^9.26.0",
95
+ "find-up": "^7.0.0",
94
96
  "minimatch": "^9.0.4",
95
- "stylelint": "^16.5.0",
97
+ "stylelint": "^16.6.1",
96
98
  "stylelint-config-plus": "^1.1.2",
97
99
  "supports-color": "^9.4.0",
98
- "tsx": "^4.10.3",
100
+ "tsx": "^4.15.5",
99
101
  "ws": "^8.17.0"
100
102
  }
101
103
  }