Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.gteVersion = function gteVersion(a, b) {
var cmp = versionCompare(a, b);
return cmp === 0 || cmp === -1;
};
exports.gtVersion = function gtVersion(a, b) {
return versionCompare(a, b) === -1;
};
exports.ltVersion = function ltVersion(a, b) {
return versionCompare(a, b) === 1;
};
exports.ltVersion = function ltVersion(a, b) {
return versionCompare(a, b) === 1;
};
exports.lteVersion = function lteVersion(a, b) {
var cmp = versionCompare(a, b);
return cmp === 0 || cmp === 1;
};
exports.eqVersion = function eqVersion(a, b) {
return versionCompare(a, b) === 0;
};
exports.gtVersion = function gtVersion(a, b) {
return versionCompare(a, b) === -1;
};
exports.lteVersion = function lteVersion(a, b) {
var cmp = versionCompare(a, b);
return cmp === 0 || cmp === 1;
};
exports.eqVersion = function eqVersion(a, b) {
return versionCompare(a, b) === 0;
};
exports.gteVersion = function gteVersion(a, b) {
var cmp = versionCompare(a, b);
return cmp === 0 || cmp === -1;
};