def support_mapper(support, package):
    """
    Update support and bug tracking url.
    https://getcomposer.org/doc/04-schema.md#support
    """
    package.bug_tracking_url = support.get('issues') or None
    package.code_view_url = support.get('source') or None
    return package
