mobbdev 1.0.82 → 1.0.83
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.mjs +4 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7319,16 +7319,17 @@ async function convertFprToSarif(inputFilePath, outputFilePath, codePathPatterns
|
|
|
7319
7319
|
"results": [
|
|
7320
7320
|
`
|
|
7321
7321
|
);
|
|
7322
|
-
vulnerabilityParser.getVulnerabilities().map(
|
|
7322
|
+
const filteredVulns = vulnerabilityParser.getVulnerabilities().map(
|
|
7323
7323
|
(vulnerability) => fortifyVulnerabilityToSarifResult(
|
|
7324
7324
|
vulnerability,
|
|
7325
7325
|
auditMetadataParser,
|
|
7326
7326
|
reportMetadataParser,
|
|
7327
7327
|
unifiedNodePoolParser
|
|
7328
7328
|
)
|
|
7329
|
-
).filter((sarifResult) => filterSarifResult(sarifResult, codePathPatterns))
|
|
7329
|
+
).filter((sarifResult) => filterSarifResult(sarifResult, codePathPatterns));
|
|
7330
|
+
filteredVulns.forEach((sarifResult, index) => {
|
|
7330
7331
|
fs3.appendFileSync(outputFilePath, JSON.stringify(sarifResult, null, 2));
|
|
7331
|
-
if (index !==
|
|
7332
|
+
if (index !== filteredVulns.length - 1) {
|
|
7332
7333
|
fs3.appendFileSync(outputFilePath, ",\n");
|
|
7333
7334
|
}
|
|
7334
7335
|
});
|