toComparators seems a legacy API: https://github.com/isaacs/node-semver/blob/master/semver.js#L678

Why do you use it?