mobbdev 0.0.105 → 0.0.107

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1099,7 +1099,7 @@ var GQLClient = class {
1099
1099
  // src/features/analysis/handle_finished_analysis.ts
1100
1100
  import { Octokit as Octokit3 } from "@octokit/core";
1101
1101
  import Debug5 from "debug";
1102
- import parseDiff from "parse-diff";
1102
+ import parseDiff2 from "parse-diff";
1103
1103
  import { z as z10 } from "zod";
1104
1104
 
1105
1105
  // src/features/analysis/scm/ado.ts
@@ -2015,6 +2015,7 @@ initGitlabFetchMock();
2015
2015
  // src/features/analysis/scm/scmSubmit/index.ts
2016
2016
  import fs from "node:fs/promises";
2017
2017
  import os from "os";
2018
+ import parseDiff from "parse-diff";
2018
2019
  import path3 from "path";
2019
2020
  import { simpleGit as simpleGit2 } from "simple-git";
2020
2021
  import tmp from "tmp";
@@ -3595,6 +3596,8 @@ var getIssueType = (issueType) => {
3595
3596
  return "XSS";
3596
3597
  case "PT" /* Pt */:
3597
3598
  return "Path Traversal";
3599
+ case "ZIP_SLIP" /* ZipSlip */:
3600
+ return "Zip Slip";
3598
3601
  case "INSECURE_RANDOMNESS" /* InsecureRandomness */:
3599
3602
  return "Insecure Randomness";
3600
3603
  case "SSRF" /* Ssrf */:
@@ -3782,7 +3785,7 @@ function scannerToFriendlyString(scanner) {
3782
3785
  }
3783
3786
  async function getRelevantVulenrabilitiesFromDiff(params) {
3784
3787
  const { gqlClient, diff, vulnerabilityReportId } = params;
3785
- const parsedDiff = parseDiff(diff);
3788
+ const parsedDiff = parseDiff2(diff);
3786
3789
  const fileHunks = parsedDiff.map((file) => {
3787
3790
  const fileNumbers = file.chunks.flatMap((chunk) => chunk.changes).filter((change) => change.type === "add").map((_change) => {
3788
3791
  const change = _change;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "https://github.com/mobb-dev/bugsy",
6
6
  "main": "dist/index.js",