


//#region src/utils/version.ts
function parseVersionString(version) {
	const [major, minor, patch] = version.split(".");
	return [
		Number(major),
		Number(minor),
		Number(patch ?? "0")
	];
}
function isFirstVersionHigherThanSecond(first, second) {
	return first[0] > second[0] || first[0] === second[0] && first[1] > second[1] || first[0] === second[0] && first[1] === second[1] && first[2] > second[2];
}
function isFirstVersionEqualToSecond(first, second) {
	return first[0] === second[0] && first[1] === second[1] && first[2] === second[2];
}

//#endregion
exports.isFirstVersionEqualToSecond = isFirstVersionEqualToSecond;
exports.isFirstVersionHigherThanSecond = isFirstVersionHigherThanSecond;
exports.parseVersionString = parseVersionString;