"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractNodeVersion = void 0;
const utils_1 = require("../utils");
class AbstractNodeVersion {
    toString() {
        if (this.major && this.minor && this.patch) {
            return [this.major, this.minor, this.patch].join('.');
        }
        else {
            console.warn(utils_1.cwarn `Can not get Node version!`);
        }
    }
    isDefined() {
        return !!this.toString();
    }
    setVersions(major, minor, patch) {
        this.major = major;
        this.minor = minor;
        this.patch = patch;
    }
    semanticVersions(version) {
        return version.split('.');
    }
}
exports.AbstractNodeVersion = AbstractNodeVersion;
//# sourceMappingURL=AbstractNodeVersion.js.map