Comparing version 4.0.0 to 4.0.1
11
index.js
@@ -100,7 +100,10 @@ module.exports = deglob | ||
var gitignores = [] | ||
try { | ||
gitignores = opts.gitIgnoreFile.map(function (f) { | ||
return fs.readFileSync(path.join(root, f), 'utf8') | ||
gitignores = opts.gitIgnoreFile | ||
.map(function (f) { | ||
try { | ||
return fs.readFileSync(path.join(root, f), 'utf8') | ||
} catch (err) {} | ||
}) | ||
} catch (e) {} | ||
.filter(Boolean) | ||
gitignores.forEach(function (gitignore) { | ||
@@ -107,0 +110,0 @@ opts._gitignore.addPattern(gitignore.split(/\r?\n/)) |
{ | ||
"name": "deglob", | ||
"description": "Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `package.json`.", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"author": "Dan Flettre <fletd01@yahoo.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
7861
121
175455