monocart-coverage-reports 2.8.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "2.8.3",
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,24 +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
89
  "commander": "^12.1.0",
89
- "esbuild": "^0.21.4",
90
- "eslint": "~9.3.0",
91
- "eslint-config-plus": "^2.0.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",
94
95
  "find-up": "^7.0.0",
95
96
  "minimatch": "^9.0.4",
96
- "stylelint": "^16.6.0",
97
+ "stylelint": "^16.6.1",
97
98
  "stylelint-config-plus": "^1.1.2",
98
99
  "supports-color": "^9.4.0",
99
- "tsx": "^4.11.0",
100
+ "tsx": "^4.15.5",
100
101
  "ws": "^8.17.0"
101
102
  }
102
103
  }