@dragonshorn-studios/elyseum-cli 1.0.10 → 1.0.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"diff-coverage-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-coverage-command.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAChD,OAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAMjD,qBAAa,mBAAoB,YAAW,OAAO;IACjD,IAAI,EAAE,MAAM,CAAmB;IAC/B,MAAM,CAAC,EAAE,YAAY,CA2BnB;gBACU,QAAQ,EAAE,UAAU;IAInB,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;YAqI5B,qBAAqB;YAgLrB,iBAAiB;YAajB,eAAe;CA4E9B"}
1
+ {"version":3,"file":"diff-coverage-command.d.ts","sourceRoot":"","sources":["../../src/commands/diff-coverage-command.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAChD,OAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAMjD,qBAAa,mBAAoB,YAAW,OAAO;IACjD,IAAI,EAAE,MAAM,CAAmB;IAC/B,MAAM,CAAC,EAAE,YAAY,CA2BnB;gBACU,QAAQ,EAAE,UAAU;IAInB,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;YAqI5B,qBAAqB;YAuLrB,iBAAiB;YAajB,eAAe;CA4E9B"}
package/dist/index.js CHANGED
@@ -54464,9 +54464,16 @@ class DiffCoverageCommand {
54464
54464
  }
54465
54465
  let changedLineNumbers = new Set();
54466
54466
  let changedLineCount = 0;
54467
+ let coverageFoundLineNumbers = new Set();
54468
+ for (let line of coverageData.lines.details) {
54469
+ coverageFoundLineNumbers.add(line.line);
54470
+ }
54467
54471
  for (let hunk of file.diff.hunks) {
54468
54472
  let hunkLine = 0;
54469
54473
  for (let line = hunk.newStart; line < hunk.newStart + hunk.newLines; line++) {
54474
+ if (!coverageFoundLineNumbers.has(line)) {
54475
+ continue; // this line is not taken into account in coverage
54476
+ }
54470
54477
  if (hunk.lines) {
54471
54478
  if (hunk.lines[hunkLine].startsWith("-")) {
54472
54479
  continue;