Spaces:
Configuration error
Configuration error
File size: 469 Bytes
5641073 |
1 2 3 4 5 6 7 8 9 10 11 12 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minNodeVersion = 10;
/**
* @hidden
*/
exports.parseVersion = (version) => {
const [, major, minor, patch] = /^v([0-9]+)\.([0-9]+)\.([0-9]+)/.exec(version) || [];
return { major: Number(major), minor: Number(minor), patch: Number(patch) };
};
exports.compareVersion = (a, b) => a.major - b.major || a.minor - b.minor || a.patch - b.patch;
//# sourceMappingURL=versions.js.map |