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.cjs CHANGED
@@ -230,7 +230,7 @@ __export(index_exports, {
230
230
  module.exports = __toCommonJS(index_exports);
231
231
 
232
232
  // src/version.ts
233
- var SCANNER_VERSION = "2.4.30";
233
+ var SCANNER_VERSION = "2.4.31";
234
234
 
235
235
  // src/snippet.ts
236
236
  var cacheContent = null;
@@ -10585,13 +10585,12 @@ function parseReviewResponse(text) {
10585
10585
  file = Number(candidate.file);
10586
10586
  }
10587
10587
  const index = Number(candidate.index);
10588
+ const reason = !("reason" in candidate) || candidate.reason === void 0 ? "" : candidate.reason;
10588
10589
  valid.push({
10589
10590
  index,
10590
10591
  file,
10591
10592
  verdict: candidate.verdict,
10592
- // Non-strings stay non-strings. The verdict loop masks, then marks
10593
- // reviewed. A reason that cannot be masked throws and stays unreviewed.
10594
- reason: candidate.reason
10593
+ reason
10595
10594
  });
10596
10595
  }
10597
10596
  return valid;