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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. 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)).forEach((sarifResult, index) => {
7329
+ ).filter((sarifResult) => filterSarifResult(sarifResult, codePathPatterns));
7330
+ filteredVulns.forEach((sarifResult, index) => {
7330
7331
  fs3.appendFileSync(outputFilePath, JSON.stringify(sarifResult, null, 2));
7331
- if (index !== vulnerabilityParser.getVulnerabilities().length - 1) {
7332
+ if (index !== filteredVulns.length - 1) {
7332
7333
  fs3.appendFileSync(outputFilePath, ",\n");
7333
7334
  }
7334
7335
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.js",