Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
28
node_modules/globby/index.js
generated
vendored
28
node_modules/globby/index.js
generated
vendored
|
|
@ -25,7 +25,7 @@ const checkCwdOption = (options = {}) => {
|
|||
let stat;
|
||||
try {
|
||||
stat = fs.statSync(options.cwd);
|
||||
} catch (_) {
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ const generateGlobTasks = (patterns, taskOptions) => {
|
|||
|
||||
const ignore = patterns
|
||||
.slice(index)
|
||||
.filter(isNegative)
|
||||
.filter(pattern => isNegative(pattern))
|
||||
.map(pattern => pattern.slice(1));
|
||||
|
||||
const options = {
|
||||
|
|
@ -138,26 +138,30 @@ module.exports = async (patterns, options) => {
|
|||
module.exports.sync = (patterns, options) => {
|
||||
const globTasks = generateGlobTasks(patterns, options);
|
||||
|
||||
const tasks = globTasks.reduce((tasks, task) => {
|
||||
const tasks = [];
|
||||
for (const task of globTasks) {
|
||||
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
|
||||
return tasks.concat(newTask);
|
||||
}, []);
|
||||
tasks.push(...newTask);
|
||||
}
|
||||
|
||||
const filter = getFilterSync(options);
|
||||
|
||||
return tasks.reduce(
|
||||
(matches, task) => arrayUnion(matches, fastGlob.sync(task.pattern, task.options)),
|
||||
[]
|
||||
).filter(path_ => !filter(path_));
|
||||
let matches = [];
|
||||
for (const task of tasks) {
|
||||
matches = arrayUnion(matches, fastGlob.sync(task.pattern, task.options));
|
||||
}
|
||||
|
||||
return matches.filter(path_ => !filter(path_));
|
||||
};
|
||||
|
||||
module.exports.stream = (patterns, options) => {
|
||||
const globTasks = generateGlobTasks(patterns, options);
|
||||
|
||||
const tasks = globTasks.reduce((tasks, task) => {
|
||||
const tasks = [];
|
||||
for (const task of globTasks) {
|
||||
const newTask = getPattern(task, dirGlob.sync).map(globToTask(task));
|
||||
return tasks.concat(newTask);
|
||||
}, []);
|
||||
tasks.push(...newTask);
|
||||
}
|
||||
|
||||
const filter = getFilterSync(options);
|
||||
const filterStream = new FilterStream(p => !filter(p));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue