@babel/helper-transform-fixture-test-runner
Advanced tools
Comparing version 7.23.9 to 7.24.0
@@ -220,2 +220,3 @@ "use strict"; | ||
let resultExec; | ||
let execErr; | ||
if (execCode) { | ||
@@ -232,4 +233,6 @@ const context = createTestContext(); | ||
} catch (err) { | ||
err.message = `${exec.loc}: ${err.message}\n` + (0, _codeFrame.codeFrameColumns)(execCode, {}); | ||
throw err; | ||
if (typeof err === "object" && err.message) { | ||
err.message = `${exec.loc}: ${err.message}\n` + (0, _codeFrame.codeFrameColumns)(execCode, {}); | ||
} | ||
execErr = err; | ||
} | ||
@@ -273,2 +276,5 @@ } | ||
} | ||
if (execErr) { | ||
throw execErr; | ||
} | ||
if (task.validateSourceMapVisual === true) { | ||
@@ -458,3 +464,3 @@ const visual = (0, _sourceMapVisualizer.default)(result.code, result.map); | ||
try { | ||
if (filename !== ".babelrc" && filename !== ".babelignore" && !Object.prototype.hasOwnProperty.call(opts.inFiles, filename)) { | ||
if (filename !== ".babelrc" && filename !== ".babelignore" && !hasOwnProperty.call(opts.inFiles, filename)) { | ||
const expected = opts.outFiles[filename]; | ||
@@ -461,0 +467,0 @@ const actual = actualFiles[filename]; |
{ | ||
"name": "@babel/helper-transform-fixture-test-runner", | ||
"version": "7.23.9", | ||
"version": "7.24.0", | ||
"description": "Transform test runner for @babel/helper-fixtures module", | ||
@@ -19,5 +19,5 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/code-frame": "^7.23.5", | ||
"@babel/core": "^7.23.9", | ||
"@babel/core": "^7.24.0", | ||
"@babel/helper-check-duplicate-nodes": "^7.22.5", | ||
"@babel/helper-fixtures": "^7.23.4", | ||
"@babel/helper-fixtures": "^7.24.0", | ||
"@jridgewell/trace-mapping": "^0.3.17", | ||
@@ -24,0 +24,0 @@ "fs-readdir-recursive": "^1.1.0", |
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
106743
810
Updated@babel/core@^7.24.0