monocart-coverage-reports 2.8.3 → 2.8.5

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.5",
4
4
  "description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "types": "./lib/index.d.ts",
26
26
  "scripts": {
27
27
  "build-test": "node ./test/build/build-test.js",
28
- "build": "sf lint && sf b -p && npm run build-test",
28
+ "build": "npx sf lint && npx sf b -p && npm run build-test",
29
29
  "test-unit": "mocha --parallel test/unit/*.test.js",
30
30
  "test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-env node ./test/test-node-env.js && node ./test/generate-report.js",
31
31
  "test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-api node ./test/test-node-api.js",
@@ -55,9 +55,10 @@
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": "npx sf d app",
59
59
  "open": "node ./scripts/open.js",
60
- "patch": "npm run build && npm run test && sf publish patch -r"
60
+ "eol": "git rm -rf --cached . && git reset --hard HEAD",
61
+ "patch": "npm run build && npm run test && npx sf publish patch -r"
61
62
  },
62
63
  "workspaces": [
63
64
  "packages/*",
@@ -79,24 +80,25 @@
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.2.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
+ "starfall-cli": "^2.0.19",
98
+ "stylelint": "^16.6.1",
97
99
  "stylelint-config-plus": "^1.1.2",
98
100
  "supports-color": "^9.4.0",
99
- "tsx": "^4.11.0",
100
- "ws": "^8.17.0"
101
+ "tsx": "^4.15.7",
102
+ "ws": "^8.17.1"
101
103
  }
102
104
  }