From 6f96d2d4d311a30c5bcc94485f340695e6d24023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Tue, 2 Jul 2019 20:35:40 +0200 Subject: [PATCH] Update globby to version 10 (#64) --- index.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index dcb45c7..b06f9bf 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ function safeCheck(file) { } module.exports = async (patterns, {force, dryRun, ...options} = {}) => { + options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options}; const files = await globby(patterns, options); const mapper = async file => { @@ -40,6 +41,7 @@ module.exports = async (patterns, {force, dryRun, ...options} = {}) => { }; module.exports.sync = (patterns, {force, dryRun, ...options} = {}) => { + options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options}; return globby.sync(patterns, options).map(file => { if (!force) { safeCheck(file); diff --git a/package.json b/package.json index b663962..92c8e62 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ ], "dependencies": { "@types/glob": "^7.1.1", - "globby": "^6.1.0", + "globby": "^10.0.0", "is-path-cwd": "^2.0.0", "is-path-in-cwd": "^2.0.0", "p-map": "^2.0.0",