mobbdev 0.0.105 → 0.0.106
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 +3 -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
|
|
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";
|
|
@@ -3782,7 +3783,7 @@ function scannerToFriendlyString(scanner) {
|
|
|
3782
3783
|
}
|
|
3783
3784
|
async function getRelevantVulenrabilitiesFromDiff(params) {
|
|
3784
3785
|
const { gqlClient, diff, vulnerabilityReportId } = params;
|
|
3785
|
-
const parsedDiff =
|
|
3786
|
+
const parsedDiff = parseDiff2(diff);
|
|
3786
3787
|
const fileHunks = parsedDiff.map((file) => {
|
|
3787
3788
|
const fileNumbers = file.chunks.flatMap((chunk) => chunk.changes).filter((change) => change.type === "add").map((_change) => {
|
|
3788
3789
|
const change = _change;
|