mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
Bump semver from 7.6.2 to 7.6.3 (#427)
* Bump semver from 7.6.2 to 7.6.3 Bumps [semver](https://github.com/npm/node-semver) from 7.6.2 to 7.6.3. - [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.6.2...v7.6.3) --- updated-dependencies: - dependency-name: semver dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * update dist --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Austin Valle <austinvalle@gmail.com>
This commit is contained in:
parent
3235006f3a
commit
bda29761c6
3 changed files with 32 additions and 18 deletions
34
dist/index.js
vendored
34
dist/index.js
vendored
|
|
@ -18235,6 +18235,8 @@ const Range = __nccwpck_require__(9828)
|
||||||
/***/ 9828:
|
/***/ 9828:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
const SPACE_CHARACTERS = /\s+/g
|
||||||
|
|
||||||
// hoisted class for cyclic dependency
|
// hoisted class for cyclic dependency
|
||||||
class Range {
|
class Range {
|
||||||
constructor (range, options) {
|
constructor (range, options) {
|
||||||
|
|
@ -18255,7 +18257,7 @@ class Range {
|
||||||
// just put it in the set and return
|
// just put it in the set and return
|
||||||
this.raw = range.value
|
this.raw = range.value
|
||||||
this.set = [[range]]
|
this.set = [[range]]
|
||||||
this.format()
|
this.formatted = undefined
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -18266,10 +18268,7 @@ class Range {
|
||||||
// First reduce all whitespace as much as possible so we do not have to rely
|
// First reduce all whitespace as much as possible so we do not have to rely
|
||||||
// on potentially slow regexes like \s*. This is then stored and used for
|
// on potentially slow regexes like \s*. This is then stored and used for
|
||||||
// future error messages as well.
|
// future error messages as well.
|
||||||
this.raw = range
|
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
|
||||||
.trim()
|
|
||||||
.split(/\s+/)
|
|
||||||
.join(' ')
|
|
||||||
|
|
||||||
// First, split on ||
|
// First, split on ||
|
||||||
this.set = this.raw
|
this.set = this.raw
|
||||||
|
|
@ -18303,14 +18302,29 @@ class Range {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.format()
|
this.formatted = undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
get range () {
|
||||||
|
if (this.formatted === undefined) {
|
||||||
|
this.formatted = ''
|
||||||
|
for (let i = 0; i < this.set.length; i++) {
|
||||||
|
if (i > 0) {
|
||||||
|
this.formatted += '||'
|
||||||
|
}
|
||||||
|
const comps = this.set[i]
|
||||||
|
for (let k = 0; k < comps.length; k++) {
|
||||||
|
if (k > 0) {
|
||||||
|
this.formatted += ' '
|
||||||
|
}
|
||||||
|
this.formatted += comps[k].toString().trim()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return this.formatted
|
||||||
}
|
}
|
||||||
|
|
||||||
format () {
|
format () {
|
||||||
this.range = this.set
|
|
||||||
.map((comps) => comps.join(' ').trim())
|
|
||||||
.join('||')
|
|
||||||
.trim()
|
|
||||||
return this.range
|
return this.range
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
14
package-lock.json
generated
14
package-lock.json
generated
|
|
@ -15,7 +15,7 @@
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@hashicorp/js-releases": "^1.7.2",
|
"@hashicorp/js-releases": "^1.7.2",
|
||||||
"semver": "^7.6.2"
|
"semver": "^7.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.38.1",
|
"@vercel/ncc": "^0.38.1",
|
||||||
|
|
@ -5916,9 +5916,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
"node_modules/semver": {
|
||||||
"version": "7.6.2",
|
"version": "7.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
||||||
"integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==",
|
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "bin/semver.js"
|
"semver": "bin/semver.js"
|
||||||
},
|
},
|
||||||
|
|
@ -11068,9 +11068,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"semver": {
|
"semver": {
|
||||||
"version": "7.6.2",
|
"version": "7.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
||||||
"integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w=="
|
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="
|
||||||
},
|
},
|
||||||
"shebang-command": {
|
"shebang-command": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@hashicorp/js-releases": "^1.7.2",
|
"@hashicorp/js-releases": "^1.7.2",
|
||||||
"semver": "^7.6.2"
|
"semver": "^7.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.38.1",
|
"@vercel/ncc": "^0.38.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue