Skip to content

Commit bda2976

Browse files
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](npm/node-semver@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] <[email protected]> * update dist --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Austin Valle <[email protected]>
1 parent 3235006 commit bda2976

File tree

3 files changed

+32
-18
lines changed

3 files changed

+32
-18
lines changed

dist/index.js

+24-10
Original file line numberDiff line numberDiff line change
@@ -18235,6 +18235,8 @@ const Range = __nccwpck_require__(9828)
1823518235
/***/ 9828:
1823618236
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1823718237

18238+
const SPACE_CHARACTERS = /\s+/g
18239+
1823818240
// hoisted class for cyclic dependency
1823918241
class Range {
1824018242
constructor (range, options) {
@@ -18255,7 +18257,7 @@ class Range {
1825518257
// just put it in the set and return
1825618258
this.raw = range.value
1825718259
this.set = [[range]]
18258-
this.format()
18260+
this.formatted = undefined
1825918261
return this
1826018262
}
1826118263

@@ -18266,10 +18268,7 @@ class Range {
1826618268
// First reduce all whitespace as much as possible so we do not have to rely
1826718269
// on potentially slow regexes like \s*. This is then stored and used for
1826818270
// future error messages as well.
18269-
this.raw = range
18270-
.trim()
18271-
.split(/\s+/)
18272-
.join(' ')
18271+
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
1827318272

1827418273
// First, split on ||
1827518274
this.set = this.raw
@@ -18303,14 +18302,29 @@ class Range {
1830318302
}
1830418303
}
1830518304

18306-
this.format()
18305+
this.formatted = undefined
18306+
}
18307+
18308+
get range () {
18309+
if (this.formatted === undefined) {
18310+
this.formatted = ''
18311+
for (let i = 0; i < this.set.length; i++) {
18312+
if (i > 0) {
18313+
this.formatted += '||'
18314+
}
18315+
const comps = this.set[i]
18316+
for (let k = 0; k < comps.length; k++) {
18317+
if (k > 0) {
18318+
this.formatted += ' '
18319+
}
18320+
this.formatted += comps[k].toString().trim()
18321+
}
18322+
}
18323+
}
18324+
return this.formatted
1830718325
}
1830818326

1830918327
format () {
18310-
this.range = this.set
18311-
.map((comps) => comps.join(' ').trim())
18312-
.join('||')
18313-
.trim()
1831418328
return this.range
1831518329
}
1831618330

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@actions/io": "^1.1.3",
2525
"@actions/tool-cache": "^2.0.1",
2626
"@hashicorp/js-releases": "^1.7.2",
27-
"semver": "^7.6.2"
27+
"semver": "^7.6.3"
2828
},
2929
"devDependencies": {
3030
"@vercel/ncc": "^0.38.1",

0 commit comments

Comments
 (0)