Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.