Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
7
node_modules/semver/ranges/min-version.js
generated
vendored
7
node_modules/semver/ranges/min-version.js
generated
vendored
|
|
@ -19,6 +19,7 @@ const minVersion = (range, loose) => {
|
|||
for (let i = 0; i < range.set.length; ++i) {
|
||||
const comparators = range.set[i]
|
||||
|
||||
let setMin = null
|
||||
comparators.forEach((comparator) => {
|
||||
// Clone to avoid manipulating the comparator's semver object.
|
||||
const compver = new SemVer(comparator.semver.version)
|
||||
|
|
@ -33,8 +34,8 @@ const minVersion = (range, loose) => {
|
|||
/* fallthrough */
|
||||
case '':
|
||||
case '>=':
|
||||
if (!minver || gt(minver, compver)) {
|
||||
minver = compver
|
||||
if (!setMin || gt(compver, setMin)) {
|
||||
setMin = compver
|
||||
}
|
||||
break
|
||||
case '<':
|
||||
|
|
@ -46,6 +47,8 @@ const minVersion = (range, loose) => {
|
|||
throw new Error(`Unexpected operation: ${comparator.operator}`)
|
||||
}
|
||||
})
|
||||
if (setMin && (!minver || gt(minver, setMin)))
|
||||
minver = setMin
|
||||
}
|
||||
|
||||
if (minver && range.test(minver)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue