This commit is contained in:
2026-07-08 18:29:36 +08:00
parent ad51ced86c
commit 3af8ff9b80
1613 changed files with 701644 additions and 2 deletions
+12
View File
@@ -0,0 +1,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