@jsenv/filesystem 4.1.7 → 4.1.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/filesystem",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@jsenv/urls": "1.2.8",
34
- "@jsenv/url-meta": "7.0.0",
34
+ "@jsenv/url-meta": "7.0.1",
35
35
  "@jsenv/abort": "4.2.4"
36
36
  }
37
37
  }
@@ -13,9 +13,7 @@ export const collectFiles = async ({
13
13
  associations,
14
14
  predicate,
15
15
  }) => {
16
- const rootDirectoryUrl = decodeURIComponent(
17
- assertAndNormalizeDirectoryUrl(directoryUrl),
18
- )
16
+ const rootDirectoryUrl = assertAndNormalizeDirectoryUrl(directoryUrl)
19
17
  if (typeof predicate !== "function") {
20
18
  throw new TypeError(`predicate must be a function, got ${predicate}`)
21
19
  }
@@ -47,10 +45,7 @@ export const collectFiles = async ({
47
45
  )
48
46
 
49
47
  if (directoryChildNodeStats.isDirectory()) {
50
- const subDirectoryUrl = `${decodeURIComponent(
51
- directoryChildNodeUrl,
52
- )}/`
53
-
48
+ const subDirectoryUrl = `${directoryChildNodeUrl}/`
54
49
  if (
55
50
  !URL_META.urlChildMayMatch({
56
51
  url: subDirectoryUrl,
@@ -60,14 +55,13 @@ export const collectFiles = async ({
60
55
  ) {
61
56
  return
62
57
  }
63
-
64
58
  await visitDirectory(subDirectoryUrl)
65
59
  return
66
60
  }
67
61
 
68
62
  if (directoryChildNodeStats.isFile()) {
69
63
  const meta = URL_META.applyAssociations({
70
- url: decodeURIComponent(directoryChildNodeUrl),
64
+ url: directoryChildNodeUrl,
71
65
  associations,
72
66
  })
73
67
  if (!predicate(meta)) return