code: function addMetaData(dep, datasource, lookupName) {
    if (!dep) {
      return;
    }
    const depName = lookupName ? lookupName.toLowerCase() : null;
    if (
      manualChangelogUrls[datasource] &&
      manualChangelogUrls[datasource][depName]
    ) {
      dep.changelogUrl = manualChangelogUrls[datasource][depName];
    }
    if (manualSourceUrls[datasource] && manualSourceUrls[datasource][depName]) {
      dep.sourceUrl = manualSourceUrls[datasource][depName];
    }
    if (dep.sourceUrl && dep.sourceUrl.includes('github.com')) {
      dep.sourceUrl = parse(dep.sourceUrl);
    }
    if (
      !dep.sourceUrl &&
      dep.changelogUrl &&
      dep.changelogUrl.startsWith('https://github.com/')
    ) {
      dep.sourceUrl = dep.changelogUrl
        .split('/')
        .slice(0, 5)
        .join('/');
    }
    // Clean up any empty urls
    const urls = ['homepage', 'sourceUrl', 'changelogUrl'];
    for (const url of urls) {
      if (is.nonEmptyString(dep[url])) {
        dep[url] = dep[url].trim();
      } else {
        delete dep[url];
      }
    }
  }
docs: /* eslint-disable no-param-reassign