mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-30 19:54:27 +01:00
chore(deps): Bump semver from 7.8.0 to 7.8.1 (#119)
Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Diogenes Fernandes <diofeher@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
1 parent
7526f4bce4
commit
0c73a96b62
3 files changed
+14
-7
No files matched your search
Vendored
+9
-2
@@ -254,6 +254,9 @@ class Range {
|
||||
}
|
||||
|
||||
parseRange (range) {
|
||||
// strip build metadata so it can't bleed into the version
|
||||
range = range.replace(BUILDSTRIPRE, '')
|
||||
|
||||
// memoize range parsing for performance.
|
||||
// this is a very hot path, and fully deterministic.
|
||||
const memoOpts =
|
||||
@@ -379,6 +382,7 @@ const debug = __nccwpck_require__(1159)
|
||||
const SemVer = __nccwpck_require__(7163)
|
||||
const {
|
||||
safeRe: re,
|
||||
src,
|
||||
t,
|
||||
comparatorTrimReplace,
|
||||
tildeTrimReplace,
|
||||
@@ -386,6 +390,9 @@ const {
|
||||
} = __nccwpck_require__(5471)
|
||||
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(5101)
|
||||
|
||||
// unbounded global build-metadata stripper used by parseRange
|
||||
const BUILDSTRIPRE = new RegExp(src[t.BUILD], 'g')
|
||||
|
||||
const isNullSet = c => c.value === '<0.0.0-0'
|
||||
const isAny = c => c.value === ''
|
||||
|
||||
@@ -2614,7 +2621,7 @@ const simpleSubset = (sub, dom, options) => {
|
||||
if (higher === c && higher !== gt) {
|
||||
return false
|
||||
}
|
||||
} else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
|
||||
} else if (gt.operator === '>=' && !c.test(gt.semver)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -2632,7 +2639,7 @@ const simpleSubset = (sub, dom, options) => {
|
||||
if (lower === c && lower !== lt) {
|
||||
return false
|
||||
}
|
||||
} else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
|
||||
} else if (lt.operator === '<=' && !c.test(lt.semver)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user