@netlify/cache-utils 6.0.0 → 6.0.2
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/lib/list.js +2 -2
- package/package.json +6 -6
package/lib/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from 'path';
|
|
2
|
-
import
|
|
2
|
+
import { readdirpPromise } from 'readdirp';
|
|
3
3
|
import { getCacheDir } from './dir.js';
|
|
4
4
|
import { isManifest } from './manifest.js';
|
|
5
5
|
import { getBases } from './path.js';
|
|
@@ -14,7 +14,7 @@ export const list = async function ({ cacheDir, cwd: cwdOpt, depth = DEFAULT_DEP
|
|
|
14
14
|
};
|
|
15
15
|
// TODO: the returned paths are missing the Windows drive
|
|
16
16
|
const listBase = async function ({ name, base, cacheDir, depth, }) {
|
|
17
|
-
const files = await
|
|
17
|
+
const files = await readdirpPromise(`${cacheDir}/${name}`, { fileFilter, depth, type: 'files_directories' });
|
|
18
18
|
const filesA = files.map(({ path }) => join(base, path));
|
|
19
19
|
return filesA;
|
|
20
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/cache-utils",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Utility for caching files in Netlify Build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/main.js",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"cpy": "^
|
|
54
|
-
"get-stream": "^
|
|
55
|
-
"globby": "^
|
|
53
|
+
"cpy": "^11.0.0",
|
|
54
|
+
"get-stream": "^9.0.0",
|
|
55
|
+
"globby": "^14.0.0",
|
|
56
56
|
"junk": "^4.0.0",
|
|
57
57
|
"locate-path": "^7.0.0",
|
|
58
58
|
"move-file": "^3.0.0",
|
|
59
59
|
"path-exists": "^5.0.0",
|
|
60
|
-
"readdirp": "^
|
|
60
|
+
"readdirp": "^4.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^14.18.53",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18.14.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "8eb0a2d3736eb5b24304fac146ae57ca6ef48a79"
|
|
72
72
|
}
|