Skip to content

Commit 45c0709

Browse files
committed
fix: drop dead composer alias, export FETCHERS for wiring test
Signed-off-by: anilb <epipav@gmail.com>
1 parent 6b9b5c8 commit 45c0709

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • services/apps/packages_worker/src/security-contacts/extractors/registry

services/apps/packages_worker/src/security-contacts/extractors/registry/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ type EcosystemFetcher = (
1717
repoUrl?: string,
1818
) => Promise<ExtractorResult>
1919

20-
// Keyed by the lowercased packages.ecosystem value.
21-
const FETCHERS: Record<string, EcosystemFetcher> = {
20+
// Keyed by the lowercased packages.ecosystem value. Composer packages live under
21+
// 'packagist' — the value the packagist worker seeds — not 'composer', which no
22+
// writer ever produces (the original entry predated the worker and guessed wrong).
23+
export const FETCHERS: Record<string, EcosystemFetcher> = {
2224
npm: fetchNpm,
2325
pypi: fetchPypi,
2426
maven: fetchMaven,
2527
cargo: fetchCargo,
2628
nuget: fetchNuget,
2729
rubygems: fetchRubygems,
2830
packagist: fetchComposer,
29-
composer: fetchComposer,
3031
go: fetchGo,
3132
}
3233

0 commit comments

Comments
 (0)