zhangjian
2023-06-05 3bc7faf3efd9d73cfa1726a553833872881dba3f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hasMinVersion = hasMinVersion;
 
var _semver = require("semver");
 
function hasMinVersion(minVersion, runtimeVersion) {
  if (!runtimeVersion) return true;
  if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
  return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion);
}
 
//# sourceMappingURL=helpers.js.map