1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/plugin-transform-runtime/lib/helpers.js

15 lines
470 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.hasMinVersion = hasMinVersion;
2024-01-16 21:26:16 +08:00
var _semver = require("semver");
2023-12-18 13:12:25 +08:00
function hasMinVersion(minVersion, runtimeVersion) {
if (!runtimeVersion) return true;
2024-01-16 21:26:16 +08:00
if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion);
2023-12-18 13:12:25 +08:00
}
2024-01-16 21:26:16 +08:00
//# sourceMappingURL=helpers.js.map