import { GithubTagsDatasource } from "../../modules/datasource/github-tags/index.js";
import { MavenDatasource } from "../../modules/datasource/maven/index.js";
import { NugetDatasource } from "../../modules/datasource/nuget/index.js";
import { NpmDatasource } from "../../modules/datasource/npm/index.js";
import { PypiDatasource } from "../../modules/datasource/pypi/index.js";
import { GoDatasource } from "../../modules/datasource/go/index.js";
import { CrateDatasource } from "../../modules/datasource/crate/index.js";
import { HackageDatasource } from "../../modules/datasource/hackage/index.js";
import { HexDatasource } from "../../modules/datasource/hex/index.js";
import { PackagistDatasource } from "../../modules/datasource/packagist/index.js";
import { RubygemsDatasource } from "../../modules/datasource/rubygems/index.js";
//#region lib/util/vulnerability/ecosystem.ts
/**
* Maps Renovate datasource IDs to OSV ecosystem names.
*
* @see https://ossf.github.io/osv-schema/#affectedpackage-field
*/
const datasourceToOsvEcosystem = {
	[CrateDatasource.id]: "crates.io",
	[GoDatasource.id]: "Go",
	[HackageDatasource.id]: "Hackage",
	[HexDatasource.id]: "Hex",
	[MavenDatasource.id]: "Maven",
	[NpmDatasource.id]: "npm",
	[NugetDatasource.id]: "NuGet",
	[PackagistDatasource.id]: "Packagist",
	[PypiDatasource.id]: "PyPI",
	[RubygemsDatasource.id]: "RubyGems"
};
/**
* Maps GitHub Dependabot ecosystem names to Renovate datasource IDs.
*
* @see https://docs.github.com/en/rest/dependabot/alerts
*/
const githubEcosystemToDatasource = {
	actions: GithubTagsDatasource.id,
	composer: PackagistDatasource.id,
	go: GoDatasource.id,
	maven: MavenDatasource.id,
	npm: NpmDatasource.id,
	nuget: NugetDatasource.id,
	pip: PypiDatasource.id,
	rubygems: RubygemsDatasource.id,
	rust: CrateDatasource.id
};
//#endregion
export { datasourceToOsvEcosystem, githubEcosystemToDatasource };

//# sourceMappingURL=ecosystem.js.map