adding dist

This commit is contained in:
Federico Builes
2023-05-31 17:09:53 +02:00
parent 70f8094bec
commit cd559bc984
2 changed files with 7 additions and 2 deletions

7
dist/index.js generated vendored
View File

@@ -284,6 +284,9 @@ function getInvalidLicenseChanges(changes, licenses) {
// Takes the changes from the groupedChanges object and filters out the ones that are part of the exclusions list
// It does by creating a new PackageURL object from the change and comparing it to the exclusions list
groupedChanges.licensed = groupedChanges.licensed.filter(change => {
if (change.package_url.length === 0) {
return true;
}
const changeAsPackageURL = packageurl_js_1.PackageURL.fromString(change.package_url);
// We want to find if the licenseExclussion list contains the PackageURL of the Change
// If it does, we want to filter it out and therefore return false
@@ -294,7 +297,9 @@ function getInvalidLicenseChanges(changes, licenses) {
exclusion.name === changeAsPackageURL.name) !== -1) {
return false;
}
return true;
else {
return true;
}
});
const licensedChanges = groupedChanges.licensed;
const invalidLicenseChanges = {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long