Skip to content

Commit afbe7d4

Browse files
committed
chore(Status): Adds NES_PACKAGE as a valid status.
1 parent 880ac00 commit afbe7d4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/eol/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ export function deriveComponentStatus(
1515
const eolAt = metadata.eolAt ?? '';
1616
const now = new Date().toISOString();
1717

18+
if(metadata.isNesPackage) {
19+
return 'NES_PACKAGE';
20+
}
21+
1822
if (metadata.isEol || (eolAt && eolAt <= now)) {
1923
return 'EOL';
2024
}

src/types/eol-scan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ export interface GetEolReportInput {
8080
size?: number;
8181
}
8282

83-
export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING'] as const;
83+
export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING', 'NES_PACKAGE'] as const;
8484
export type ComponentStatus = (typeof VALID_STATUSES)[number];

0 commit comments

Comments
 (0)