mirror of https://github.com/renovatebot/renovate
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;
|
|
}
|
|
}
|