mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
15 lines
352 B
TypeScript
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;
|
|
}
|
|
}
|