Use 'Unnamed Manifest' as catchall bucket

This commit is contained in:
Justin Holguín
2023-03-28 16:06:07 +00:00
committed by GitHub
parent 7e1f7be1f6
commit 76b8e83d1a
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ test('groups dependencies with empty manifest paths together', () => {
summary.addScannedDependencies(changesWithEmptyManifests)
const text = core.summary.stringify()
expect(text).toContain('<summary> </summary>')
expect(text).toContain('<summary>Unnamed Manifest</summary>')
expect(text).toContain('castore')
expect(text).toContain('connection')
expect(text).toContain('<summary>python/dist-info/METADATA</summary>')
Generated Vendored
+4 -4
View File
@@ -976,9 +976,9 @@ function groupDependenciesByManifest(changes) {
var _a;
const dependencies = new Map();
for (const change of changes) {
// If the manifest is null or empty, use a space as the key to avoid
// If the manifest is null or empty, give it a name now to avoid
// breaking the HTML rendering later
const manifestName = change.manifest || ' ';
const manifestName = change.manifest || 'Unnamed Manifest';
if (dependencies.get(manifestName) === undefined) {
dependencies.set(manifestName, []);
}
@@ -45235,9 +45235,9 @@ function groupDependenciesByManifest(changes) {
var _a;
const dependencies = new Map();
for (const change of changes) {
// If the manifest is null or empty, use a space as the key to avoid
// If the manifest is null or empty, give it a name now to avoid
// breaking the HTML rendering later
const manifestName = change.manifest || ' ';
const manifestName = change.manifest || 'Unnamed Manifest';
if (dependencies.get(manifestName) === undefined) {
dependencies.set(manifestName, []);
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -8,9 +8,9 @@ export function groupDependenciesByManifest(
): Map<string, Changes> {
const dependencies: Map<string, Changes> = new Map()
for (const change of changes) {
// If the manifest is null or empty, use a space as the key to avoid
// If the manifest is null or empty, give it a name now to avoid
// breaking the HTML rendering later
const manifestName = change.manifest || ' '
const manifestName = change.manifest || 'Unnamed Manifest'
if (dependencies.get(manifestName) === undefined) {
dependencies.set(manifestName, [])