mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-01-16 23:00:37 +00:00
Build dist
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
parent
0329d4b0de
commit
ed333c64d9
2 changed files with 28 additions and 9 deletions
35
dist/index.js
vendored
35
dist/index.js
vendored
|
|
@ -50,8 +50,8 @@ async function fetchReleases (githubToken) {
|
|||
if (resp.message.statusCode !== hc.HttpCodes.OK) {
|
||||
throw new Error('failed fetching releases (' + resp.message.statusCode + ')');
|
||||
}
|
||||
|
||||
let body = await resp.readBody();
|
||||
|
||||
const body = await resp.readBody();
|
||||
const releasesMeta = JSON.parse(body);
|
||||
|
||||
/**
|
||||
|
|
@ -6437,6 +6437,7 @@ const isSatisfiable = (comparators, options) => {
|
|||
// already replaced the hyphen ranges
|
||||
// turn into a set of JUST comparators.
|
||||
const parseComparator = (comp, options) => {
|
||||
comp = comp.replace(re[t.BUILD], '')
|
||||
debug('comp', comp, options)
|
||||
comp = replaceCarets(comp, options)
|
||||
debug('caret', comp)
|
||||
|
|
@ -6857,11 +6858,25 @@ class SemVer {
|
|||
other = new SemVer(other, this.options)
|
||||
}
|
||||
|
||||
return (
|
||||
compareIdentifiers(this.major, other.major) ||
|
||||
compareIdentifiers(this.minor, other.minor) ||
|
||||
compareIdentifiers(this.patch, other.patch)
|
||||
)
|
||||
if (this.major < other.major) {
|
||||
return -1
|
||||
}
|
||||
if (this.major > other.major) {
|
||||
return 1
|
||||
}
|
||||
if (this.minor < other.minor) {
|
||||
return -1
|
||||
}
|
||||
if (this.minor > other.minor) {
|
||||
return 1
|
||||
}
|
||||
if (this.patch < other.patch) {
|
||||
return -1
|
||||
}
|
||||
if (this.patch > other.patch) {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
comparePre (other) {
|
||||
|
|
@ -7762,6 +7777,10 @@ module.exports = debug
|
|||
|
||||
const numeric = /^[0-9]+$/
|
||||
const compareIdentifiers = (a, b) => {
|
||||
if (typeof a === 'number' && typeof b === 'number') {
|
||||
return a === b ? 0 : a < b ? -1 : 1
|
||||
}
|
||||
|
||||
const anum = numeric.test(a)
|
||||
const bnum = numeric.test(b)
|
||||
|
||||
|
|
@ -9179,4 +9198,4 @@ const setup = __nccwpck_require__(3882);
|
|||
|
||||
module.exports = __webpack_exports__;
|
||||
/******/ })()
|
||||
;
|
||||
;
|
||||
2
dist/index1.js
vendored
2
dist/index1.js
vendored
|
|
@ -3711,4 +3711,4 @@ async function checkTofu () {
|
|||
|
||||
module.exports = __webpack_exports__;
|
||||
/******/ })()
|
||||
;
|
||||
;
|
||||
Loading…
Add table
Reference in a new issue