"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var compareSemver = function (a, b) {
    var semverA = a.split('.');
    var semverB = b.split('.');
    if (semverA.length !== 3 || semverB.length !== 3) {
        throw new Error("Invalid semver comparison: " + a + ", " + b);
    }
    for (var i = 0; i < 3; ++i) {
        if (semverA[i] < semverB[i]) {
            return -1;
        }
        if (semverA[i] > semverB[i]) {
            return 1;
        }
    }
    return 0;
};
exports.default = compareSemver;
//# sourceMappingURL=compareSemver.js.map