@babel/core
Advanced tools
Comparing version 7.24.7 to 7.24.8
@@ -140,3 +140,3 @@ "use strict"; | ||
if (babelrcRoots === undefined) { | ||
return pkgData.directories.indexOf(absoluteRoot) !== -1; | ||
return pkgData.directories.includes(absoluteRoot); | ||
} | ||
@@ -151,3 +151,3 @@ let babelrcPatterns = babelrcRoots; | ||
if (babelrcPatterns.length === 1 && babelrcPatterns[0] === absoluteRoot) { | ||
return pkgData.directories.indexOf(absoluteRoot) !== -1; | ||
return pkgData.directories.includes(absoluteRoot); | ||
} | ||
@@ -154,0 +154,0 @@ return babelrcPatterns.some(pat => { |
@@ -86,3 +86,3 @@ "use strict"; | ||
} | ||
if (possibilities.indexOf(desc) === -1) { | ||
if (!possibilities.includes(desc)) { | ||
const matches = possibilities.filter(possibility => isEqualDescriptor(possibility, desc)); | ||
@@ -89,0 +89,0 @@ if (matches.length > 0) { |
@@ -227,3 +227,3 @@ "use strict"; | ||
; | ||
const version = exports.version = "7.24.7"; | ||
const version = exports.version = "7.24.8"; | ||
const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); | ||
@@ -230,0 +230,0 @@ ; |
@@ -115,3 +115,3 @@ "use strict"; | ||
helpers().list.forEach(function (name) { | ||
if (allowlist && allowlist.indexOf(name) < 0) return; | ||
if (allowlist && !allowlist.includes(name)) return; | ||
const ref = refs[name] = getHelperReference(name); | ||
@@ -118,0 +118,0 @@ const { |
@@ -35,9 +35,2 @@ "use strict"; | ||
} | ||
function _helperModuleTransforms() { | ||
const data = require("@babel/helper-module-transforms"); | ||
_helperModuleTransforms = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _semver() { | ||
@@ -125,5 +118,2 @@ const data = require("semver"); | ||
} | ||
getModuleName() { | ||
return (0, _helperModuleTransforms().getModuleName)(this.opts, this.opts); | ||
} | ||
availableHelper(name, versionRange) { | ||
@@ -215,2 +205,7 @@ let minVersion; | ||
}; | ||
{ | ||
File.prototype.getModuleName = function getModuleName() { | ||
return require("@babel/helper-module-transforms").getModuleName(this.opts, this.opts); | ||
}; | ||
} | ||
} | ||
@@ -217,0 +212,0 @@ 0 && 0; |
{ | ||
"name": "@babel/core", | ||
"version": "7.24.7", | ||
"version": "7.24.8", | ||
"description": "Babel compiler core.", | ||
@@ -51,10 +51,10 @@ "main": "./lib/index.js", | ||
"@babel/code-frame": "^7.24.7", | ||
"@babel/generator": "^7.24.7", | ||
"@babel/helper-compilation-targets": "^7.24.7", | ||
"@babel/helper-module-transforms": "^7.24.7", | ||
"@babel/helpers": "^7.24.7", | ||
"@babel/parser": "^7.24.7", | ||
"@babel/generator": "^7.24.8", | ||
"@babel/helper-compilation-targets": "^7.24.8", | ||
"@babel/helper-module-transforms": "^7.24.8", | ||
"@babel/helpers": "^7.24.8", | ||
"@babel/parser": "^7.24.8", | ||
"@babel/template": "^7.24.7", | ||
"@babel/traverse": "^7.24.7", | ||
"@babel/types": "^7.24.7", | ||
"@babel/traverse": "^7.24.8", | ||
"@babel/types": "^7.24.8", | ||
"convert-source-map": "^2.0.0", | ||
@@ -67,7 +67,7 @@ "debug": "^4.1.0", | ||
"devDependencies": { | ||
"@babel/helper-transform-fixture-test-runner": "^7.24.7", | ||
"@babel/helper-transform-fixture-test-runner": "^7.24.8", | ||
"@babel/plugin-syntax-flow": "^7.24.7", | ||
"@babel/plugin-transform-flow-strip-types": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.8", | ||
"@babel/preset-env": "^7.24.8", | ||
"@babel/preset-typescript": "^7.24.7", | ||
@@ -74,0 +74,0 @@ "@jridgewell/trace-mapping": "^0.3.25", |
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
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
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
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
785168
6887
Updated@babel/generator@^7.24.8
Updated@babel/helpers@^7.24.8
Updated@babel/parser@^7.24.8
Updated@babel/traverse@^7.24.8
Updated@babel/types@^7.24.8