monocart-coverage-reports 2.0.8 → 2.0.10

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
@@ -243,6 +243,19 @@ const Util = {
243
243
  visitor(rootNode);
244
244
  },
245
245
 
246
+ updateOffsetToLocation: (locator, loc) => {
247
+ const sLoc = locator.offsetToLocation(loc.start);
248
+ loc.start = {
249
+ line: sLoc.line,
250
+ column: sLoc.column
251
+ };
252
+ const eLoc = locator.offsetToLocation(loc.end);
253
+ loc.end = {
254
+ line: eLoc.line,
255
+ column: eLoc.column
256
+ };
257
+ },
258
+
246
259
  forEachFile: function(dir, extList, callback) {
247
260
  if (!fs.existsSync(dir)) {
248
261
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-coverage-reports",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "Monocart coverage reports",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -17,10 +17,11 @@
17
17
  "build-docs": "node ./scripts/build-docs.js",
18
18
  "build-test": "node ./scripts/build-test.js",
19
19
  "build": "sf lint && sf b -p && npm run build-test",
20
- "test-node": "npm run test-node-env && npm run test-node-ins && npm run test-node-api && npm run test-node-cdp",
21
- "test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage node ./test/test-node-env.js && node ./test/generate-node-report.js",
20
+ "test-node": "npm run test-node-env && npm run test-node-api && npm run test-node-ins && npm run test-node-cdp",
21
+ "test-node-env": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-env node ./test/test-node-env.js && node ./test/generate-node-report.js",
22
+ "test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage-api node ./test/test-node-api.js",
23
+ "test-node-fgc": "node ./test/test-node-fgc.js",
22
24
  "test-node-ins": "node ./test/test-node-ins.js",
23
- "test-node-api": "cross-env NODE_V8_COVERAGE=.temp/v8-coverage node ./test/test-node-api.js",
24
25
  "test-node-cdp": "node --inspect=9229 ./test/test-node-cdp.js",
25
26
  "test-browser": "node ./test/test.js",
26
27
  "test": "npm run test-browser && npm run test-node && npm run build-docs",
@@ -47,8 +48,8 @@
47
48
  "istanbul-lib-report": "~3.0.1",
48
49
  "istanbul-reports": "~3.1.6",
49
50
  "lz-utils": "~2.0.1",
50
- "monocart-code-viewer": "^1.0.13",
51
- "monocart-formatter": "~2.2.1",
51
+ "monocart-code-viewer": "~1.0.13",
52
+ "monocart-formatter": "~2.3.0",
52
53
  "turbogrid": "~3.0.12"
53
54
  },
54
55
  "devDependencies": {