glob-extra
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -8,2 +8,3 @@ 'use strict'; | ||
const {Minimatch} = require('minimatch'); | ||
const normalize = require('normalize-path'); | ||
const defaults = require('./defaults'); | ||
@@ -32,5 +33,9 @@ const utils = require('./utils'); | ||
paths = [].concat(paths); | ||
// fast-glob requires only forward-slashes (https://github.com/mrmlnc/fast-glob#pattern-syntax) | ||
if (globOpts.ignore) { | ||
globOpts.ignore = globOpts.ignore.map(p => normalize(p)); | ||
} | ||
const normalizedPaths = [].concat(paths).map(p => normalize(p)); | ||
return processPaths(paths, (path) => getFilesByMask(path, globOpts)) | ||
return processPaths(normalizedPaths, (path) => getFilesByMask(path, globOpts)) | ||
.then((matchedPaths) => processPaths(matchedPaths, (path) => expandPath(path, expandOpts))); | ||
@@ -37,0 +42,0 @@ }; |
{ | ||
"name": "glob-extra", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Utility which provides expanding of masks, dirs and files to absolute file paths.", | ||
@@ -32,3 +32,4 @@ "bugs": "https://github.com/gemini-testing/glob-extra/issues", | ||
"lodash": "^4.15.0", | ||
"minimatch": "^3.0.4" | ||
"minimatch": "^3.0.4", | ||
"normalize-path": "^3.0.0" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
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
8408
77
6
+ Addednormalize-path@^3.0.0
+ Addednormalize-path@3.0.0(transitive)