@rhc-shared-components/packages-table 1.0.7 → 1.0.9
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.js +3 -10
- package/dist/index.modern.js +1 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2527,16 +2527,9 @@ var PackagesTable = function PackagesTable(_ref) {
|
|
|
2527
2527
|
uniqueVulnerabilities.sort(function (vulnerability) {
|
|
2528
2528
|
return severitySortOrder[vulnerability.severity];
|
|
2529
2529
|
});
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
return vulnerability.cve_id === value.cve_id;
|
|
2534
|
-
}) === index;
|
|
2535
|
-
});
|
|
2536
|
-
uniqueVulnerabilities.filter(function (vulnerability) {
|
|
2537
|
-
if (vulnerability.rpm_nvra_with_link_data.length > 0) return vulnerability;
|
|
2538
|
-
});
|
|
2539
|
-
setUniqueVulnerabilities(uniqueVulnerabilities);
|
|
2530
|
+
setUniqueVulnerabilities(uniqueVulnerabilities.filter(function (vulnerability) {
|
|
2531
|
+
return vulnerability.rpm_nvra_with_link_data.length > 0;
|
|
2532
|
+
}));
|
|
2540
2533
|
}, [rpms, vulnerabilities]);
|
|
2541
2534
|
InsertCss();
|
|
2542
2535
|
return React__namespace.createElement(React__namespace.Fragment, null, (uniqueVulnerabilities.length > 0 || excludedPackages.length > 0) && React__namespace.createElement("div", {
|
package/dist/index.modern.js
CHANGED
|
@@ -2336,12 +2336,7 @@ const PackagesTable = ({
|
|
|
2336
2336
|
});
|
|
2337
2337
|
// sort vulnerabilities by severity
|
|
2338
2338
|
uniqueVulnerabilities.sort(vulnerability => severitySortOrder[vulnerability.severity]);
|
|
2339
|
-
|
|
2340
|
-
uniqueVulnerabilities.filter((value, index, self) => self.findIndex(vulnerability => vulnerability.cve_id === value.cve_id) === index);
|
|
2341
|
-
uniqueVulnerabilities.filter(vulnerability => {
|
|
2342
|
-
if (vulnerability.rpm_nvra_with_link_data.length > 0) return vulnerability;
|
|
2343
|
-
});
|
|
2344
|
-
setUniqueVulnerabilities(uniqueVulnerabilities);
|
|
2339
|
+
setUniqueVulnerabilities(uniqueVulnerabilities.filter(vulnerability => vulnerability.rpm_nvra_with_link_data.length > 0));
|
|
2345
2340
|
}, [_rpms, _vulnerabilities]);
|
|
2346
2341
|
InsertCss();
|
|
2347
2342
|
return React.createElement(React.Fragment, null, (uniqueVulnerabilities.length > 0 || excludedPackages.length > 0) && React.createElement("div", {
|