"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get checkVersionSatisfiesMinimum () {
        return checkVersionSatisfiesMinimum;
    },
    get getMaximumOfVersionsSafe () {
        return getMaximumOfVersionsSafe;
    }
});
const _semver = require("semver");
function checkVersionSatisfiesMinimum(newVersion, minimumVersion) {
    const comparison = (0, _semver.compare)(newVersion, minimumVersion);
    return comparison !== -1;
}
function getMaximumOfVersionsSafe(v1, v2) {
    if (!v2) return v1;
    const comparison = (0, _semver.compare)(v1, v2);
    if (comparison === 0) return v1;
    if (comparison === -1) return v2;
    return v1;
}

//# sourceMappingURL=semver.utils.js.map