Comparing version 8.0.0 to 8.0.1
15
index.js
@@ -26,4 +26,3 @@ 'use strict'; | ||
ignore: [], | ||
expandDirectories: true, | ||
nodir: true | ||
expandDirectories: true | ||
}, taskOpts); | ||
@@ -52,11 +51,11 @@ | ||
const globDirs = (task, fn) => { | ||
let opts = {cwd: task.opts.cwd}; | ||
if (Array.isArray(task.opts.expandDirectories)) { | ||
return fn(task.pattern, {files: task.opts.expandDirectories}); | ||
opts = Object.assign(opts, {files: task.opts.expandDirectories}); | ||
} else if (typeof task.opts.expandDirectories === 'object') { | ||
opts = Object.assign(opts, task.opts.expandDirectories); | ||
} | ||
if (typeof task.opts.expandDirectories === 'object') { | ||
return fn(task.pattern, task.opts.expandDirectories); | ||
} | ||
return fn(task.pattern); | ||
return fn(task.pattern, opts); | ||
}; | ||
@@ -63,0 +62,0 @@ |
{ | ||
"name": "globby", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Extends `glob` with support for multiple patterns and exposes a Promise API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
12394
179