monocart-coverage-reports 2.8.6 → 2.8.7

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
@@ -611,7 +611,15 @@ const Util = {
611
611
  }
612
612
  const duration = Date.now() - time_start;
613
613
  const durationH = Util.TF(duration);
614
- const ls = [`[MCR] ${message}`, ' ('];
614
+ const ls = [`[MCR] ${message}`];
615
+
616
+ // memory
617
+ const { heapUsed } = process.memoryUsage();
618
+ const memory = parseFloat((heapUsed / 1024 ** 2).toFixed(1));
619
+ ls.push(` (memory: ${memory}MB)`);
620
+
621
+ // time
622
+ ls.push(' (');
615
623
  if (duration <= 100) {
616
624
  ls.push(EC.green(durationH));
617
625
  } else if (duration < 500) {
@@ -620,6 +628,7 @@ const Util = {
620
628
  ls.push(EC.red(durationH));
621
629
  }
622
630
  ls.push(')');
631
+
623
632
  console.log(ls.join(''));
624
633
  }
625
634
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "A code coverage tool to generate native V8 reports or Istanbul reports.",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -82,12 +82,12 @@
82
82
  "lz-utils": "^2.0.2",
83
83
  "monocart-code-viewer": "^1.1.4",
84
84
  "monocart-formatter": "^3.0.0",
85
- "monocart-locator": "^1.0.0",
85
+ "monocart-locator": "^1.0.1",
86
86
  "turbogrid": "^3.2.0"
87
87
  },
88
88
  "devDependencies": {
89
89
  "commander": "^12.1.0",
90
- "esbuild": "^0.21.5",
90
+ "esbuild": "^0.22.0",
91
91
  "eslint": "~9.6.0",
92
92
  "eslint-config-plus": "^2.0.2",
93
93
  "eslint-plugin-html": "^8.1.1",