Update toolkit we consume (#11)

This commit is contained in:
Danny McCormick 2019-06-24 15:09:39 -04:00 committed by GitHub
parent 7c614ea4aa
commit e4990368a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 537 additions and 320 deletions

12
node_modules/semver/semver.js generated vendored
View file

@ -810,7 +810,11 @@ Comparator.prototype.test = function (version) {
}
if (typeof version === 'string') {
version = new SemVer(version, this.options)
try {
version = new SemVer(version, this.options)
} catch (er) {
return false
}
}
return cmp(version, this.operator, this.semver, this.options)
@ -1261,7 +1265,11 @@ Range.prototype.test = function (version) {
}
if (typeof version === 'string') {
version = new SemVer(version, this.options)
try {
version = new SemVer(version, this.options)
} catch (er) {
return false
}
}
for (var i = 0; i < this.set.length; i++) {