Skip to content

Commit e6716ea

Browse files
fix(deps): update dependencies to v7.8.5 (#269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jkroepke-automation[bot] <210774419+jkroepke-automation[bot]@users.noreply.github.com>
1 parent 5949291 commit e6716ea

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

dist/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41875,17 +41875,21 @@ function requireRange () {
4187541875

4187641876
const replaceTilde = (comp, options) => {
4187741877
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
41878+
// if we're including prereleases in the match, then the lower bound is
41879+
// -0, the lowest possible prerelease value, just like x-ranges and carets.
41880+
// this keeps `~1.2` equivalent to the `1.2.x` x-range it's documented as.
41881+
const z = options.includePrerelease ? '-0' : '';
4187841882
return comp.replace(r, (_, M, m, p, pr) => {
4187941883
debug('tilde', comp, _, M, m, p, pr);
4188041884
let ret;
4188141885

4188241886
if (isX(M)) {
4188341887
ret = '';
4188441888
} else if (isX(m)) {
41885-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
41889+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
4188641890
} else if (isX(p)) {
4188741891
// ~1.2 == >=1.2.0 <1.3.0-0
41888-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
41892+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
4188941893
} else if (pr) {
4189041894
debug('replaceTilde pr', pr);
4189141895
ret = `>=${M}.${m}.${p}-${pr

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@actions/exec": "3.0.0",
1212
"@actions/http-client": "4.0.1",
1313
"@actions/tool-cache": "4.0.0",
14-
"semver": "7.8.4"
14+
"semver": "7.8.5"
1515
},
1616
"engines": {
1717
"node": ">=24.0.0"

0 commit comments

Comments
 (0)