@babel/helper-fixtures
Advanced tools
Comparing version 7.0.0 to 7.2.0
@@ -131,3 +131,3 @@ "use strict"; | ||
return matches[0] || filepath + ".js"; | ||
return matches[0]; | ||
} | ||
@@ -159,6 +159,21 @@ | ||
function push(taskName, taskDir) { | ||
const actualLoc = findFile(taskDir + "/input"); | ||
const expectLoc = findFile(taskDir + "/output", true); | ||
const taskDirStats = _fs().default.statSync(taskDir); | ||
let actualLoc = findFile(taskDir + "/input"); | ||
let execLoc = findFile(taskDir + "/exec"); | ||
if (taskDirStats.isDirectory() && !actualLoc && !execLoc) { | ||
if (_fs().default.readdirSync(taskDir).length > 0) { | ||
console.warn(`Skipped test folder with invalid layout: ${taskDir}`); | ||
} | ||
return; | ||
} else if (!actualLoc) { | ||
actualLoc = taskDir + "/input.js"; | ||
} else if (!execLoc) { | ||
execLoc = taskDir + "/exec.js"; | ||
} | ||
const expectLoc = findFile(taskDir + "/output", true) || taskDir + "/output.js"; | ||
const actualLocAlias = suiteName + "/" + taskName + "/" + _path().default.basename(actualLoc); | ||
@@ -170,3 +185,3 @@ | ||
if (_fs().default.statSync(taskDir).isFile()) { | ||
if (taskDirStats.isFile()) { | ||
const ext = _path().default.extname(taskDir); | ||
@@ -173,0 +188,0 @@ |
{ | ||
"name": "@babel/helper-fixtures", | ||
"version": "7.0.0", | ||
"version": "7.2.0", | ||
"description": "Helper function to support fixtures", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-fixtures", | ||
@@ -8,0 +11,0 @@ "main": "lib/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
9414
221
1