xploitscan-shared-rules 2.4.30 → 2.4.31

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/dist/index.d.cts CHANGED
@@ -169,7 +169,7 @@ interface CustomRule {
169
169
  * before a scan can be saved without enough provenance to explain a changed
170
170
  * grade.
171
171
  */
172
- declare const SCANNER_VERSION = "2.4.30";
172
+ declare const SCANNER_VERSION = "2.4.31";
173
173
 
174
174
  /**
175
175
  * Line-oriented helpers shared by every rule. Pure string manipulation — no fs
package/dist/index.d.ts CHANGED
@@ -169,7 +169,7 @@ interface CustomRule {
169
169
  * before a scan can be saved without enough provenance to explain a changed
170
170
  * grade.
171
171
  */
172
- declare const SCANNER_VERSION = "2.4.30";
172
+ declare const SCANNER_VERSION = "2.4.31";
173
173
 
174
174
  /**
175
175
  * Line-oriented helpers shared by every rule. Pure string manipulation — no fs
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var SCANNER_VERSION = "2.4.30";
2
+ var SCANNER_VERSION = "2.4.31";
3
3
 
4
4
  // src/snippet.ts
5
5
  var cacheContent = null;
@@ -10354,13 +10354,12 @@ function parseReviewResponse(text) {
10354
10354
  file = Number(candidate.file);
10355
10355
  }
10356
10356
  const index = Number(candidate.index);
10357
+ const reason = !("reason" in candidate) || candidate.reason === void 0 ? "" : candidate.reason;
10357
10358
  valid.push({
10358
10359
  index,
10359
10360
  file,
10360
10361
  verdict: candidate.verdict,
10361
- // Non-strings stay non-strings. The verdict loop masks, then marks
10362
- // reviewed. A reason that cannot be masked throws and stays unreviewed.
10363
- reason: candidate.reason
10362
+ reason
10364
10363
  });
10365
10364
  }
10366
10365
  return valid;