//#region lib/util/vulnerability/utils.ts
const severityOrder = {
	LOW: 1,
	MEDIUM: 2,
	MODERATE: 2,
	HIGH: 3,
	CRITICAL: 4,
	UNKNOWN: 5
};
function getHighestVulnerabilitySeverity(parent, child) {
	const parentVulSeverity = parent.vulnerabilitySeverity?.toUpperCase();
	const childVulSeverity = child?.vulnerabilitySeverity?.toUpperCase();
	if (childVulSeverity === void 0) return parentVulSeverity;
	if (parentVulSeverity === void 0) return childVulSeverity;
	return severityOrder[parentVulSeverity] >= severityOrder[childVulSeverity] ? parentVulSeverity : childVulSeverity;
}
//#endregion
export { getHighestVulnerabilitySeverity };

//# sourceMappingURL=utils.js.map