0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/platform/utils/github-alerts.ts

15 lines
352 B
TypeScript

import type { VulnerabilityPackage } from '../../../types';
import { normalizePythonDepName } from '../../datasource/pypi/common';
export function normalizeNamePerEcosystem({
name,
ecosystem,
}: VulnerabilityPackage): string {
switch (ecosystem) {
case 'pip':
return normalizePythonDepName(name);
default:
return name;
}
}