@react-native-community/cli-clean
Advanced tools
Comparing version 13.5.1 to 13.5.2
@@ -58,5 +58,5 @@ "use strict"; | ||
} | ||
function _glob() { | ||
const data = _interopRequireDefault(require("glob")); | ||
_glob = function () { | ||
function _fastGlob() { | ||
const data = _interopRequireDefault(require("fast-glob")); | ||
_fastGlob = function () { | ||
return data; | ||
@@ -80,10 +80,4 @@ }; | ||
if (isDirectoryPattern(directory)) { | ||
const directories = await new Promise((resolve, reject) => { | ||
(0, _glob().default)(directory, {}, (err, foundDirectories) => { | ||
if (err) { | ||
reject(err); | ||
} else { | ||
resolve(foundDirectories); | ||
} | ||
}); | ||
const directories = await _fastGlob().default.async(directory, { | ||
onlyFiles: false | ||
}); | ||
@@ -90,0 +84,0 @@ for (const dir of directories) { |
{ | ||
"name": "@react-native-community/cli-clean", | ||
"version": "13.5.1", | ||
"version": "13.5.2", | ||
"license": "MIT", | ||
@@ -11,6 +11,6 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "13.5.1", | ||
"@react-native-community/cli-tools": "13.5.2", | ||
"chalk": "^4.1.2", | ||
"execa": "^5.0.0", | ||
"glob": "^7.1.3" | ||
"fast-glob": "^3.3.2" | ||
}, | ||
@@ -23,4 +23,3 @@ "files": [ | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "13.5.1", | ||
"@types/glob": "^7.1.1", | ||
"@react-native-community/cli-types": "13.5.2", | ||
"@types/prompts": "^2.4.4" | ||
@@ -34,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "f9d8a74b76995ad92d5a0fa78f09a0b8dc44fbfe" | ||
"gitHead": "2602f83860f7f834b38d1a51bcafbae3e89bb40b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2
27230
323
+ Addedfast-glob@^3.3.2
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@react-native-community/cli-tools@13.5.2(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedglob@^7.1.3
- Removed@react-native-community/cli-tools@13.5.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)