diff --git a/x-pack/plugins/fleet/server/services/epm/registry/index.ts b/x-pack/plugins/fleet/server/services/epm/registry/index.ts index fee603f188e29..0b1c1d0bd562f 100644 --- a/x-pack/plugins/fleet/server/services/epm/registry/index.ts +++ b/x-pack/plugins/fleet/server/services/epm/registry/index.ts @@ -24,6 +24,7 @@ import type { RegistrySearchResults, GetCategoriesRequest, PackageVerificationResult, + ArchivePackage, } from '../../../types'; import { getArchiveFilelist, @@ -159,7 +160,10 @@ export async function fetchFindLatestPackageOrUndefined( } } -export async function fetchInfo(pkgName: string, pkgVersion: string): Promise { +export async function fetchInfo( + pkgName: string, + pkgVersion: string +): Promise { const registryUrl = getRegistryUrl(); try { // Trailing slash avoids 301 redirect / extra hop @@ -168,6 +172,18 @@ export async function fetchInfo(pkgName: string, pkgVersion: string): Promise