testilo 19.2.0 → 19.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.
package/package.json
CHANGED
|
@@ -26,12 +26,14 @@ const getData = async scoredReports => {
|
|
|
26
26
|
for (const report of scoredReports) {
|
|
27
27
|
// Get data.
|
|
28
28
|
const {id, sources, score} = report;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
if (id && sources && score) {
|
|
30
|
+
bodyData.push({
|
|
31
|
+
id,
|
|
32
|
+
org: sources.target.what,
|
|
33
|
+
url: sources.target.which,
|
|
34
|
+
score: score.summary.total
|
|
35
|
+
});
|
|
36
|
+
}
|
|
35
37
|
};
|
|
36
38
|
// Return the report count, the script ID of the first report, and the data of all the reports.
|
|
37
39
|
return {
|