@babel/core
Advanced tools
Comparing version 7.19.1 to 7.19.3
@@ -329,4 +329,6 @@ "use strict"; | ||
const needsFilename = val => val && typeof val !== "function"; | ||
const validateIfOptionNeedsFilename = (options, descriptor) => { | ||
if (options.test || options.include || options.exclude) { | ||
if (needsFilename(options.test) || needsFilename(options.include) || needsFilename(options.exclude)) { | ||
const formattedPresetName = descriptor.name ? `"${descriptor.name}"` : "/* your preset */"; | ||
@@ -333,0 +335,0 @@ throw new _configError.default([`Preset ${formattedPresetName} requires a filename to be set when babel is called directly,`, `\`\`\``, `babel.transformSync(code, { filename: 'file.ts', presets: [${formattedPresetName}] });`, `\`\`\``, `See https://babeljs.io/docs/en/options#filename for more information.`].join("\n")); |
@@ -250,3 +250,3 @@ "use strict"; | ||
const version = "7.19.1"; | ||
const version = "7.19.3"; | ||
exports.version = version; | ||
@@ -253,0 +253,0 @@ const DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]); |
{ | ||
"name": "@babel/core", | ||
"version": "7.19.1", | ||
"version": "7.19.3", | ||
"description": "Babel compiler core.", | ||
@@ -51,10 +51,10 @@ "main": "./lib/index.js", | ||
"@babel/code-frame": "^7.18.6", | ||
"@babel/generator": "^7.19.0", | ||
"@babel/helper-compilation-targets": "^7.19.1", | ||
"@babel/generator": "^7.19.3", | ||
"@babel/helper-compilation-targets": "^7.19.3", | ||
"@babel/helper-module-transforms": "^7.19.0", | ||
"@babel/helpers": "^7.19.0", | ||
"@babel/parser": "^7.19.1", | ||
"@babel/parser": "^7.19.3", | ||
"@babel/template": "^7.18.10", | ||
"@babel/traverse": "^7.19.1", | ||
"@babel/types": "^7.19.0", | ||
"@babel/traverse": "^7.19.3", | ||
"@babel/types": "^7.19.3", | ||
"convert-source-map": "^1.7.0", | ||
@@ -67,7 +67,7 @@ "debug": "^4.1.0", | ||
"devDependencies": { | ||
"@babel/helper-transform-fixture-test-runner": "^7.18.10", | ||
"@babel/helper-transform-fixture-test-runner": "^7.19.3", | ||
"@babel/plugin-syntax-flow": "^7.18.6", | ||
"@babel/plugin-transform-flow-strip-types": "^7.19.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.18.6", | ||
"@babel/preset-env": "^7.19.1", | ||
"@babel/preset-env": "^7.19.3", | ||
"@jridgewell/trace-mapping": "^0.3.8", | ||
@@ -74,0 +74,0 @@ "@types/convert-source-map": "^1.5.1", |
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
937555
8580
+ Addedupdate-browserslist-db@1.1.0(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
Updated@babel/generator@^7.19.3
Updated@babel/parser@^7.19.3
Updated@babel/traverse@^7.19.3
Updated@babel/types@^7.19.3