mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-26 18:30:54 +01:00
chore(deps): Bump semver from 7.8.1 to 7.8.3 (#123)
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
7051243a57
commit
56007213a1
3 files changed
+26
-9
No files matched your search
Vendored
+21
-4
@@ -529,10 +529,10 @@ const replaceCaret = (comp, options) => {
|
||||
if (M === '0') {
|
||||
if (m === '0') {
|
||||
ret = `>=${M}.${m}.${p
|
||||
}${z} <${M}.${m}.${+p + 1}-0`
|
||||
} <${M}.${m}.${+p + 1}-0`
|
||||
} else {
|
||||
ret = `>=${M}.${m}.${p
|
||||
}${z} <${M}.${+m + 1}.0-0`
|
||||
} <${M}.${+m + 1}.0-0`
|
||||
}
|
||||
} else {
|
||||
ret = `>=${M}.${m}.${p
|
||||
@@ -733,6 +733,22 @@ const { safeRe: re, t } = __nccwpck_require__(5471)
|
||||
|
||||
const parseOptions = __nccwpck_require__(356)
|
||||
const { compareIdentifiers } = __nccwpck_require__(3348)
|
||||
|
||||
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
||||
const identifiers = identifier.split('.')
|
||||
if (identifiers.length > prerelease.length) {
|
||||
return false
|
||||
}
|
||||
|
||||
for (let i = 0; i < identifiers.length; i++) {
|
||||
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
class SemVer {
|
||||
constructor (version, options) {
|
||||
options = parseOptions(options)
|
||||
@@ -1036,8 +1052,9 @@ class SemVer {
|
||||
if (identifierBase === false) {
|
||||
prerelease = [identifier]
|
||||
}
|
||||
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
||||
if (isNaN(this.prerelease[1])) {
|
||||
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
||||
const prereleaseBase = this.prerelease[identifier.split('.').length]
|
||||
if (isNaN(prereleaseBase)) {
|
||||
this.prerelease = prerelease
|
||||
}
|
||||
} else {
|
||||
|
||||
Generated
+4
-4
@@ -14,7 +14,7 @@
|
||||
"@actions/http-client": "4.0.1",
|
||||
"@actions/io": "^3.0.2",
|
||||
"@actions/tool-cache": "^4.0.0",
|
||||
"semver": "^7.8.1"
|
||||
"semver": "^7.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "0.38.4",
|
||||
@@ -6213,9 +6213,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "7.8.1",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz",
|
||||
"integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==",
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.3.tgz",
|
||||
"integrity": "sha512-wnilbGyMxzbY7dNOl7jpKbLSjcfeweJWU5j4+u5qW+6/wuGD9KzIGOyZnQVSBM9E7DtWaaH3CyHkppYrKYoxwg==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
"@actions/http-client": "4.0.1",
|
||||
"@actions/io": "^3.0.2",
|
||||
"@actions/tool-cache": "^4.0.0",
|
||||
"semver": "^7.8.1"
|
||||
"semver": "^7.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "0.38.4",
|
||||
|
||||
Reference in new issue
Block a user