@babel/helper-fixtures
Advanced tools
Comparing version 8.0.0-alpha.11 to 8.0.0-alpha.12
@@ -58,5 +58,5 @@ import { InputOptions } from '@babel/core'; | ||
* @param {string} optionsDir the directory where options.json is placed | ||
* @returns {{}} options whose plugins/presets are resolved | ||
* @returns {any} options whose plugins/presets are resolved | ||
*/ | ||
declare function resolveOptionPluginOrPreset(options: any, optionsDir: string): {}; | ||
declare function resolveOptionPluginOrPreset(options: any, optionsDir: string): any; | ||
declare function get(entryLoc: string): Suite[]; | ||
@@ -63,0 +63,0 @@ declare function multiple(entryLoc: string, ignore?: Array<string>): Record<string, unknown>; |
@@ -15,3 +15,3 @@ import semver from "semver"; | ||
return require.resolve(module); | ||
} catch (e) { | ||
} catch (_) { | ||
return null; | ||
@@ -26,3 +26,3 @@ } | ||
function shouldIgnore(name, ignore) { | ||
if (ignore && ignore.indexOf(name) >= 0) { | ||
if (ignore?.includes(name)) { | ||
return true; | ||
@@ -96,3 +96,3 @@ } | ||
const ext = path.extname(taskDir); | ||
if (EXTENSIONS.indexOf(ext) === -1) return; | ||
if (!EXTENSIONS.includes(ext)) return; | ||
execLoc = taskDir; | ||
@@ -214,3 +214,3 @@ execLocAlias = suiteName + "/" + taskName; | ||
let name = val[0]; | ||
const match = name.match(/^(@babel\/(?:plugin-|preset-)?)(.*)$/); | ||
const match = /^(@babel\/(?:plugin-|preset-)?)(.*)$/.exec(name); | ||
if (match) { | ||
@@ -217,0 +217,0 @@ name = match[2]; |
{ | ||
"name": "@babel/helper-fixtures", | ||
"version": "8.0.0-alpha.11", | ||
"version": "8.0.0-alpha.12", | ||
"description": "Helper function to support fixtures", | ||
@@ -22,7 +22,7 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"devDependencies": { | ||
"@babel/core": "^8.0.0-alpha.11", | ||
"@babel/core": "^8.0.0-alpha.12", | ||
"@types/semver": "^7.3.4" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^8.0.0-alpha.11" | ||
"@babel/core": "^8.0.0-alpha.12" | ||
}, | ||
@@ -29,0 +29,0 @@ "engines": { |
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
44245