code: async function getPkgReleases({ lookupName, registryUrls }) {
    const versions = [];
    const dependency = getDependencyParts(lookupName);
    if (!is.nonEmptyArray(registryUrls)) {
      logger.error(`No repositories defined for ${dependency.display}`);
      return null;
    }
    const repositories = registryUrls.map(repository =>
      repository.replace(/\/?$/, '/')
    );
    logger.debug(
      `Found ${repositories.length} repositories for ${dependency.display}`
    );
    const repoForVersions = {};
    for (let i = 0; i < repositories.length; i += 1) {
      const repoUrl = repositories[i];
      logger.debug(
        `Looking up ${dependency.display} in repository #${i} - ${repoUrl}`
      );
      const mavenMetadata = await downloadMavenXml(
        dependency,
        repoUrl,
        'maven-metadata.xml'
      );
      if (mavenMetadata) {
        const newVersions = extractVersions(mavenMetadata).filter(
          version => !versions.includes(version)
        );
        const latestVersion = getLatestVersion(newVersions);
        if (latestVersion) {
          repoForVersions[latestVersion] = repoUrl;
        }
        versions.push(...newVersions);
        logger.debug(`Found ${newVersions.length} new versions for ${dependency.display} in repository ${repoUrl}`); // prettier-ignore
      }
    }
  
    if (versions.length === 0) {
      logger.info(`No versions found for ${dependency.display} in ${repositories.length} repositories`); // prettier-ignore
      return null;
    }
    logger.debug(`Found ${versions.length} versions for ${dependency.display}`);
    const latestVersion = getLatestVersion(versions);
    const repoUrl = repoForVersions[latestVersion];
    const dependencyInfo = await getDependencyInfo(
      dependency,
      repoUrl,
      latestVersion
    );
  
    return {
      ...dependency,
      ...dependencyInfo,
      releases: versions.map(v => ({ version: v })),
    };
  }
docs: eslint-disable-next-line no-unused-vars