mirror of
https://github.com/bower/bower.git
synced 2026-01-22 20:58:08 -05:00
Fix error caused by the recent semver upgrade.
This commit is contained in:
@@ -181,7 +181,8 @@ Manager.prototype.areCompatible = function (candidate, resolved) {
|
||||
highestCandidate = this._getCap(semver.toComparators(candidate.target), 'highest');
|
||||
highestResolved = this._getCap(semver.toComparators(resolved.target), 'highest');
|
||||
|
||||
return semver.eq(highestCandidate.version, highestResolved.version) &&
|
||||
return highestResolved.version && highestResolved.version &&
|
||||
semver.eq(highestCandidate.version, highestResolved.version) &&
|
||||
highestCandidate.comparator === highestResolved.comparator &&
|
||||
semver.satisfies(resolvedVersion, candidate.target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user