mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-25 15:01:49 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
15 lines
364 B
TypeScript
15 lines
364 B
TypeScript
import type { VulnerabilityPackage } from '../../../types/index.ts';
|
|
import { normalizePythonDepName } from '../../datasource/pypi/common.ts';
|
|
|
|
export function normalizeNamePerEcosystem({
|
|
name,
|
|
ecosystem,
|
|
}: VulnerabilityPackage): string {
|
|
switch (ecosystem) {
|
|
case 'pip':
|
|
return normalizePythonDepName(name);
|
|
default:
|
|
return name;
|
|
}
|
|
}
|