mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-26 18:30:54 +01:00
chore(deps): Bump semver from 7.7.4 to 7.8.0
Bumps [semver](https://github.com/npm/node-semver) from 7.7.4 to 7.8.0. - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/node-semver/compare/v7.7.4...v7.8.0) --- updated-dependencies: - dependency-name: semver dependency-version: 7.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Co-authored-by: Martin Atkins <mart@degeneration.co.uk> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
1 parent
a630d3b887
commit
7526f4bce4
3 files changed
+63
-6
No files matched your search
Vendored
+58
-1
@@ -1538,6 +1538,61 @@ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
|
||||
module.exports = sort
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6114:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
|
||||
|
||||
const parse = __nccwpck_require__(6353)
|
||||
const constants = __nccwpck_require__(5101)
|
||||
const SemVer = __nccwpck_require__(7163)
|
||||
|
||||
const truncate = (version, truncation, options) => {
|
||||
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
||||
return null
|
||||
}
|
||||
|
||||
const clonedVersion = cloneInputVersion(version, options)
|
||||
return clonedVersion && doTruncation(clonedVersion, truncation)
|
||||
}
|
||||
|
||||
const cloneInputVersion = (version, options) => {
|
||||
const versionStringToParse = (
|
||||
version instanceof SemVer ? version.version : version
|
||||
)
|
||||
|
||||
return parse(versionStringToParse, options)
|
||||
}
|
||||
|
||||
const doTruncation = (version, truncation) => {
|
||||
if (isPrerelease(truncation)) {
|
||||
return version.version
|
||||
}
|
||||
|
||||
version.prerelease = []
|
||||
|
||||
switch (truncation) {
|
||||
case 'major':
|
||||
version.minor = 0
|
||||
version.patch = 0
|
||||
break
|
||||
case 'minor':
|
||||
version.patch = 0
|
||||
break
|
||||
}
|
||||
|
||||
return version.format()
|
||||
}
|
||||
|
||||
const isPrerelease = (type) => {
|
||||
return type.startsWith('pre')
|
||||
}
|
||||
|
||||
module.exports = truncate
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8780:
|
||||
@@ -1588,6 +1643,7 @@ const gte = __nccwpck_require__(1236)
|
||||
const lte = __nccwpck_require__(6717)
|
||||
const cmp = __nccwpck_require__(8646)
|
||||
const coerce = __nccwpck_require__(5385)
|
||||
const truncate = __nccwpck_require__(6114)
|
||||
const Comparator = __nccwpck_require__(9379)
|
||||
const Range = __nccwpck_require__(6782)
|
||||
const satisfies = __nccwpck_require__(8011)
|
||||
@@ -1626,6 +1682,7 @@ module.exports = {
|
||||
lte,
|
||||
cmp,
|
||||
coerce,
|
||||
truncate,
|
||||
Comparator,
|
||||
Range,
|
||||
satisfies,
|
||||
@@ -1965,7 +2022,7 @@ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
|
||||
createToken('GTLT', '((?:<|>)?=?)')
|
||||
|
||||
// Something like "2.*" or "1.2.x".
|
||||
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
||||
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
||||
// Only the first item is strictly required.
|
||||
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
||||
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
||||
|
||||
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.7.4"
|
||||
"semver": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "0.38.4",
|
||||
@@ -6213,9 +6213,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "7.7.4",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
|
||||
"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
|
||||
"version": "7.8.0",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",
|
||||
"integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",
|
||||
"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.7.4"
|
||||
"semver": "^7.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "0.38.4",
|
||||
|
||||
Reference in new issue
Block a user