@babel/helper-compilation-targets
Advanced tools
Comparing version 7.22.6 to 7.22.9
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.getInclusionReasons = getInclusionReasons; | ||
var _semverV = require("@nicolo-ribaudo/semver-v6"); | ||
var _semver = require("semver"); | ||
var _pretty = require("./pretty"); | ||
@@ -21,3 +21,3 @@ var _utils = require("./utils"); | ||
const targetIsUnreleased = (0, _utils.isUnreleasedVersion)(targetVersion, env); | ||
if (!targetIsUnreleased && (minIsUnreleased || _semverV.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) { | ||
if (!targetIsUnreleased && (minIsUnreleased || _semver.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) { | ||
result[env] = (0, _pretty.prettifyVersion)(targetVersion); | ||
@@ -24,0 +24,0 @@ } |
@@ -9,3 +9,3 @@ "use strict"; | ||
exports.targetsSupported = targetsSupported; | ||
var _semverV = require("@nicolo-ribaudo/semver-v6"); | ||
var _semver = require("semver"); | ||
var _plugins = require("@babel/compat-data/plugins"); | ||
@@ -30,6 +30,6 @@ var _utils = require("./utils"); | ||
} | ||
if (!_semverV.valid(lowestTargetedVersion.toString())) { | ||
if (!_semver.valid(lowestTargetedVersion.toString())) { | ||
throw new Error(`Invalid version passed for target "${environment}": "${lowestTargetedVersion}". ` + "Versions must be in semver format (major.minor.patch)"); | ||
} | ||
return _semverV.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString()); | ||
return _semver.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString()); | ||
}); | ||
@@ -36,0 +36,0 @@ return unsupportedEnvironments.length === 0; |
@@ -8,3 +8,3 @@ "use strict"; | ||
exports.prettifyVersion = prettifyVersion; | ||
var _semverV = require("@nicolo-ribaudo/semver-v6"); | ||
var _semver = require("semver"); | ||
var _targets = require("./targets"); | ||
@@ -19,3 +19,3 @@ function prettifyVersion(version) { | ||
patch | ||
} = _semverV.parse(version); | ||
} = _semver.parse(version); | ||
const parts = [major]; | ||
@@ -22,0 +22,0 @@ if (minor || patch) { |
@@ -12,3 +12,3 @@ "use strict"; | ||
exports.semverify = semverify; | ||
var _semverV = require("@nicolo-ribaudo/semver-v6"); | ||
var _semver = require("semver"); | ||
var _helperValidatorOption = require("@babel/helper-validator-option"); | ||
@@ -19,6 +19,6 @@ var _targets = require("./targets"); | ||
function semverMin(first, second) { | ||
return first && _semverV.lt(first, second) ? first : second; | ||
return first && _semver.lt(first, second) ? first : second; | ||
} | ||
function semverify(version) { | ||
if (typeof version === "string" && _semverV.valid(version)) { | ||
if (typeof version === "string" && _semver.valid(version)) { | ||
return version; | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "@babel/helper-compilation-targets", | ||
"version": "7.22.6", | ||
"version": "7.22.9", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
@@ -25,7 +25,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/compat-data": "^7.22.6", | ||
"@babel/compat-data": "^7.22.9", | ||
"@babel/helper-validator-option": "^7.22.5", | ||
"@nicolo-ribaudo/semver-v6": "^6.3.3", | ||
"browserslist": "^4.21.9", | ||
"lru-cache": "^5.1.1" | ||
"lru-cache": "^5.1.1", | ||
"semver": "^6.3.1" | ||
}, | ||
@@ -36,3 +36,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.22.6", | ||
"@babel/core": "^7.22.9", | ||
"@babel/helper-plugin-test-runner": "^7.22.5", | ||
@@ -39,0 +39,0 @@ "@types/lru-cache": "^5.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52127
+ Addedsemver@^6.3.1
- Removed@nicolo-ribaudo/semver-v6@^6.3.3
- Removed@nicolo-ribaudo/semver-v6@6.3.3(transitive)
Updated@babel/compat-data@^7.22.9