Comparing version 0.3.0 to 0.3.1
@@ -18,3 +18,3 @@ var core = require('./core'); | ||
else if (err) cb(err) | ||
else cb(null, stat.isFile()) | ||
else cb(null, stat.isFile() || stat.isFIFO()) | ||
}); | ||
@@ -21,0 +21,0 @@ }; |
var core = require('./core'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var existsSync = fs.existsSync || path.existsSync; | ||
@@ -11,3 +10,5 @@ module.exports = function (x, opts) { | ||
var isFile = opts.isFile || function (file) { | ||
return existsSync(file) && fs.statSync(file).isFile() | ||
try { var stat = fs.statSync(file) } | ||
catch (err) { if (err && err.code === 'ENOENT') return false } | ||
return stat.isFile() || stat.isFIFO(); | ||
}; | ||
@@ -14,0 +15,0 @@ var readFileSync = opts.readFileSync || fs.readFileSync; |
{ | ||
"name" : "resolve", | ||
"description" : "resolve like require.resolve() on behalf of files asynchronously and synchronously", | ||
"version" : "0.3.0", | ||
"version" : "0.3.1", | ||
"repository" : { | ||
@@ -6,0 +6,0 @@ "type" : "git", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25138
658
0