david
david copied to clipboard
Retrieving latest version should use dist-tags.latest
getLatestVersionInfo uses the last entry from the versions, which is wrong. It should use data['dist-tags'].latest instead.
Issue raised from https://github.com/sindresorhus/got/issues/185#issuecomment-192949552