snyk 1.1009.0 → 1.1010.0
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/cli/784.index.js
CHANGED
|
@@ -1124,12 +1124,14 @@ async function resolveAndTestFactsRegistry(ecosystem, scans, options) {
|
|
|
1124
1124
|
});
|
|
1125
1125
|
const vulnerabilities = [];
|
|
1126
1126
|
for (const issuesDataKey in response.issuesData) {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1127
|
+
if (issuesMap[issuesDataKey]) {
|
|
1128
|
+
const issueData = response.issuesData[issuesDataKey];
|
|
1129
|
+
const pkgCoordinate = `${issuesMap[issuesDataKey].pkgName}@${issuesMap[issuesDataKey].pkgVersion}`;
|
|
1130
|
+
issueData.from = [pkgCoordinate];
|
|
1131
|
+
issueData.name = pkgCoordinate;
|
|
1132
|
+
issueData.packageManager = packageManager;
|
|
1133
|
+
vulnerabilities.push(issueData);
|
|
1134
|
+
}
|
|
1133
1135
|
}
|
|
1134
1136
|
const dependencyCount = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.depGraphData) === null || _a === void 0 ? void 0 : _a.graph) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((graphNode) => {
|
|
1135
1137
|
return graphNode.nodeId === 'root-node';
|