@node-core/utils 5.2.0 → 5.2.1
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.
@@ -88,8 +88,7 @@ export async function getSupportedVersions() {
|
|
88
88
|
}
|
89
89
|
|
90
90
|
export function getSummary(report) {
|
91
|
-
const
|
92
|
-
const summaryList = data?.relationships?.summaries?.data;
|
91
|
+
const summaryList = report?.relationships?.summaries?.data;
|
93
92
|
if (!summaryList?.length) return;
|
94
93
|
const summaries = summaryList.filter((summary) => summary?.attributes?.category === 'team');
|
95
94
|
if (!summaries?.length) return;
|
@@ -32,7 +32,7 @@ export default class UpdateSecurityRelease {
|
|
32
32
|
});
|
33
33
|
const req = new Request(credentials);
|
34
34
|
for (let i = 0; i < content.reports.length; ++i) {
|
35
|
-
|
35
|
+
const report = content.reports[i];
|
36
36
|
const { data } = await req.getReport(report.id);
|
37
37
|
const reportSeverity = getReportSeverity(data);
|
38
38
|
const summaryContent = getSummary(data);
|
@@ -42,7 +42,7 @@ export default class UpdateSecurityRelease {
|
|
42
42
|
prURL = data.relationships.custom_field_values.data[0].attributes.value;
|
43
43
|
}
|
44
44
|
|
45
|
-
|
45
|
+
content.reports[i] = {
|
46
46
|
...report,
|
47
47
|
title: data.attributes.title,
|
48
48
|
cveIds: data.attributes.cve_ids,
|