jest-file-exists
Advanced tools
Comparing version 14.0.0 to 14.2.0-alpha.ca8bfb6e
@@ -19,12 +19,13 @@ /** | ||
module.exports = ( | ||
filePath, | ||
files) => | ||
filePath, | ||
hasteFS) => | ||
{ | ||
if (files && files[filePath]) { | ||
return true;} | ||
if (hasteFS && hasteFS.exists(filePath)) { | ||
return true; | ||
} | ||
try { | ||
return fs.statSync(filePath).isFile();} | ||
catch (e) {} | ||
return false;}; | ||
return fs.statSync(filePath).isFile(); | ||
} catch (e) {} | ||
return false; | ||
}; |
{ | ||
"name": "jest-file-exists", | ||
"version": "14.0.0", | ||
"version": "14.2.0-alpha.ca8bfb6e", | ||
"repository": { | ||
@@ -10,8 +10,2 @@ "type": "git", | ||
"main": "build/index.js", | ||
"jest": { | ||
"automock": false, | ||
"rootDir": "./src", | ||
"scriptPreprocessor": "../../babel-jest", | ||
"testEnvironment": "node" | ||
}, | ||
"scripts": { | ||
@@ -18,0 +12,0 @@ "test": "../../packages/jest-cli/bin/jest.js" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
22
873
2