Minor tweaks

This commit is contained in:
Justin Holguín
2025-05-14 22:53:15 +00:00
committed by GitHub
parent 06796b833d
commit 3059e7f9fa
4 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -592,7 +592,7 @@ function getNonEmptyValue(str) {
}
return undefined;
}
// getDepgraphFiles should *recursively* find all files that match the filename within the directory
// getDepgraphFiles recursively finds all files that match the filename within the directory
function getDepgraphFiles(directory, filename) {
let files = [];
// debug only
+1 -1
View File
File diff suppressed because one or more lines are too long
-4
View File
@@ -145,7 +145,3 @@ describe('snapshot-generator', () => {
function getDirectDependencyPurls(manifest: Manifest): string[] {
return Object.values(manifest.resolved).filter(dep => dep.relationship === 'direct').map(dep => dep.depPackage.packageURL.toString()).sort();
}
function getOtherDependencyPurls(manifest: Manifest): string[] {
return Object.values(manifest.resolved).filter(dep => dep.relationship !== 'direct').map(dep => dep.depPackage.packageURL.toString()).sort();
}
+2 -2
View File
@@ -138,7 +138,7 @@ function getNonEmptyValue(str?: string) {
return undefined;
}
// getDepgraphFiles should *recursively* find all files that match the filename within the directory
// getDepgraphFiles recursively finds all files that match the filename within the directory
function getDepgraphFiles(directory: string, filename: string): string[] {
let files: string[] = [];
// debug only
@@ -164,4 +164,4 @@ function getDepgraphFiles(directory: string, filename: string): string[] {
}
return files;
}
}