@poppinss/utils 7.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,9 @@ async function fsReadAll(location, options) {
22
22
  withFileTypes: true
23
23
  })).filter((dirent) => {
24
24
  if (!dirent.isFile()) return false;
25
- if (dirent.name.startsWith(".") || dirent.parentPath.split(sep).some((segment) => segment.startsWith("."))) return false;
25
+ if (dirent.name.startsWith(".")) return false;
26
+ const relativePath = relative(normalizedLocation, dirent.parentPath);
27
+ if (relativePath && relativePath.split(sep).some((segment) => segment.startsWith("."))) return false;
26
28
  return true;
27
29
  }).map((file) => {
28
30
  switch (pathType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poppinss/utils",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Handy utilities for repetitive work",
5
5
  "main": "build/index.js",
6
6
  "type": "module",