Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-compilation-targets

Package Overview
Dependencies
Maintainers
4
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-compilation-targets - npm Package Compare versions

Comparing version 7.22.6 to 7.22.9

4

lib/debug.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc