neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Bump semver from 7.7.2 to 7.7.4 (#406)
334f76c · dependabot[bot] · 2026-03-02 21:59
Message
{commit_body(@commit)}
Files changed
modified
dist/index.js
+28
−9
@@ -23416,6 +23416,7 @@ const isSatisfiable = (comparators, options) => {
| 23416 | 23416 | // already replaced the hyphen ranges |
| 23417 | 23417 | // turn into a set of JUST comparators. |
| 23418 | 23418 | const parseComparator = (comp, options) => { |
| 23419 | + comp = comp.replace(re[t.BUILD], '') | |
| 23419 | 23420 | debug('comp', comp, options) |
| 23420 | 23421 | comp = replaceCarets(comp, options) |
| 23421 | 23422 | debug('caret', comp) |
@@ -23836,11 +23837,25 @@ class SemVer {
| 23836 | 23837 | other = new SemVer(other, this.options) |
| 23837 | 23838 | } |
| 23838 | 23839 | |
| 23839 | − return ( | |
| 23840 | − compareIdentifiers(this.major, other.major) || | |
| 23841 | − compareIdentifiers(this.minor, other.minor) || | |
| 23842 | − compareIdentifiers(this.patch, other.patch) | |
| 23843 | − ) | |
| 23840 | + if (this.major < other.major) { | |
| 23841 | + return -1 | |
| 23842 | + } | |
| 23843 | + if (this.major > other.major) { | |
| 23844 | + return 1 | |
| 23845 | + } | |
| 23846 | + if (this.minor < other.minor) { | |
| 23847 | + return -1 | |
| 23848 | + } | |
| 23849 | + if (this.minor > other.minor) { | |
| 23850 | + return 1 | |
| 23851 | + } | |
| 23852 | + if (this.patch < other.patch) { | |
| 23853 | + return -1 | |
| 23854 | + } | |
| 23855 | + if (this.patch > other.patch) { | |
| 23856 | + return 1 | |
| 23857 | + } | |
| 23858 | + return 0 | |
| 23844 | 23859 | } |
| 23845 | 23860 | |
| 23846 | 23861 | comparePre (other) { |
@@ -24298,7 +24313,7 @@ const diff = (version1, version2) => {
| 24298 | 24313 | return prefix + 'patch' |
| 24299 | 24314 | } |
| 24300 | 24315 | |
| 24301 | − // high and low are preleases | |
| 24316 | + // high and low are prereleases | |
| 24302 | 24317 | return 'prerelease' |
| 24303 | 24318 | } |
| 24304 | 24319 |
@@ -24741,6 +24756,10 @@ module.exports = debug
| 24741 | 24756 | |
| 24742 | 24757 | const numeric = /^[0-9]+$/ |
| 24743 | 24758 | const compareIdentifiers = (a, b) => { |
| 24759 | + if (typeof a === 'number' && typeof b === 'number') { | |
| 24760 | + return a === b ? 0 : a < b ? -1 : 1 | |
| 24761 | + } | |
| 24762 | + | |
| 24744 | 24763 | const anum = numeric.test(a) |
| 24745 | 24764 | const bnum = numeric.test(b) |
| 24746 | 24765 |
@@ -24925,8 +24944,8 @@ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
| 24925 | 24944 | |
| 24926 | 24945 | // ## Pre-release Version Identifier |
| 24927 | 24946 | // A numeric identifier, or a non-numeric identifier. |
| 24928 | −// Non-numberic identifiers include numberic identifiers but can be longer. | |
| 24929 | −// Therefore non-numberic identifiers must go first. | |
| 24947 | +// Non-numeric identifiers include numeric identifiers but can be longer. | |
| 24948 | +// Therefore non-numeric identifiers must go first. | |
| 24930 | 24949 | |
| 24931 | 24950 | createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER] |
| 24932 | 24951 | }|${src[t.NUMERICIDENTIFIER]})`) |
@@ -25448,7 +25467,7 @@ const compare = __nccwpck_require__(8469)
| 25448 | 25467 | // - If LT |
| 25449 | 25468 | // - If LT.semver is greater than any < or <= comp in C, return false |
| 25450 | 25469 | // - If LT is <=, and LT.semver does not satisfy every C, return false |
| 25451 | −// - If GT.semver has a prerelease, and not in prerelease mode | |
| 25470 | +// - If LT.semver has a prerelease, and not in prerelease mode | |
| 25452 | 25471 | // - If no C has a prerelease and the LT.semver tuple, return false |
| 25453 | 25472 | // - Else return true |
| 25454 | 25473 |
modified
package-lock.json
+4
−4
@@ -12,7 +12,7 @@
| 12 | 12 | "@actions/tool-cache": "2.0.2", |
| 13 | 13 | "csv-parse": "6.1.0", |
| 14 | 14 | "lodash": "4.17.23", |
| 15 | − "semver": "7.7.2" | |
| 15 | + "semver": "7.7.4" | |
| 16 | 16 | }, |
| 17 | 17 | "devDependencies": { |
| 18 | 18 | "@eslint/js": "10.0.1", |
@@ -3226,9 +3226,9 @@
| 3226 | 3226 | "license": "MIT" |
| 3227 | 3227 | }, |
| 3228 | 3228 | "node_modules/semver": { |
| 3229 | − "version": "7.7.2", | |
| 3230 | − "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", | |
| 3231 | − "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", | |
| 3229 | + "version": "7.7.4", | |
| 3230 | + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", | |
| 3231 | + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", | |
| 3232 | 3232 | "license": "ISC", |
| 3233 | 3233 | "bin": { |
| 3234 | 3234 | "semver": "bin/semver.js" |
modified
package.json
+1
−1
@@ -21,7 +21,7 @@
| 21 | 21 | "@actions/tool-cache": "2.0.2", |
| 22 | 22 | "csv-parse": "6.1.0", |
| 23 | 23 | "lodash": "4.17.23", |
| 24 | − "semver": "7.7.2" | |
| 24 | + "semver": "7.7.4" | |
| 25 | 25 | }, |
| 26 | 26 | "devDependencies": { |
| 27 | 27 | "@eslint/js": "10.0.1", |
Parents: 86b5ecb