The dependency name (e.g. react)
The current version.
If the last check was done more than this amount of hours ago, it will refresh the cache. Defaults to always refreshing.
A promise that resolves with a more recent version or undefined if there's no more recent version.
Given an NPM dependency, it checks if there's a more recent version, and if there is, it returns its value.