Comparing version 1.0.2 to 1.1.0
15
index.js
module.exports = deglob | ||
var dezalgo = require('dezalgo') | ||
var extend = require('xtend') | ||
@@ -23,11 +22,7 @@ var findRoot = require('find-root') | ||
function deglob (files, opts, cb) { | ||
if (typeof opts === 'function') { | ||
cb = opts | ||
opts = {} | ||
} | ||
if (typeof opts === 'function') return deglob(files, null, opts) | ||
opts = parseOpts(opts) | ||
cb = dezalgo(cb) | ||
if (typeof files === 'string') files = [ files ] | ||
if (files.length === 0) return cb(null, []) | ||
if (files.length === 0) return nextTick(cb, null, []) | ||
@@ -140,1 +135,7 @@ // traverse filesystem | ||
} | ||
function nextTick (cb, err, val) { | ||
process.nextTick(function () { | ||
cb(err, val) | ||
}) | ||
} |
{ | ||
"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": "1.0.2", | ||
"version": "1.1.0", | ||
"author": "Dan Flettre <fletd01@yahoo.com>", | ||
@@ -36,5 +36,4 @@ "bugs": { | ||
"dependencies": { | ||
"dezalgo": "^1.0.3", | ||
"find-root": "^0.1.1", | ||
"glob": "^5.0.13", | ||
"glob": "^6.0.4", | ||
"ignore": "^2.2.15", | ||
@@ -41,0 +40,0 @@ "pkg-config": "^1.1.0", |
@@ -67,3 +67,3 @@ # deglob | ||
gitIgnoreFile | '.gitignore' | Name of the `.gitignore` file look for (probably best to leave it default) | ||
ignore | [] | List of additional ignore patterns to use | ||
ignore | [] | List of additional ignore patterns to use | ||
cwd | process.cwd() | This is the working directory to start the deglobbing | ||
@@ -70,0 +70,0 @@ |
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
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
12895
7
0
+ Addedglob@6.0.4(transitive)
- Removeddezalgo@^1.0.3
- Removedasap@2.0.6(transitive)
- Removeddezalgo@1.0.4(transitive)
- Removedglob@5.0.15(transitive)
Updatedglob@^6.0.4