@netlify/cache-utils 4.1.3 → 4.1.4

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/fs.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/cache-utils",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Utility for caching files in Netlify Build",
5
5
  "type": "module",
6
6
  "exports": "./src/main.js",
@@ -48,10 +48,10 @@
48
48
  "cpy": "^8.1.0",
49
49
  "del": "^6.0.0",
50
50
  "get-stream": "^6.0.0",
51
- "globby": "^11.0.0",
52
- "junk": "^3.1.0",
51
+ "globby": "^13.0.0",
52
+ "junk": "^4.0.0",
53
53
  "locate-path": "^7.0.0",
54
- "move-file": "^2.0.0",
54
+ "move-file": "^3.0.0",
55
55
  "path-exists": "^5.0.0",
56
56
  "readdirp": "^3.4.0"
57
57
  },
package/src/fs.js CHANGED
@@ -2,9 +2,9 @@ import { promises as fs } from 'fs'
2
2
  import { basename, dirname } from 'path'
3
3
 
4
4
  import cpy from 'cpy'
5
- import globby from 'globby'
6
- import junk from 'junk'
7
- import moveFile from 'move-file'
5
+ import { globby } from 'globby'
6
+ import { isNotJunk } from 'junk'
7
+ import { moveFile } from 'move-file'
8
8
 
9
9
  // Move or copy a cached file/directory from/to a local one
10
10
  export const moveCacheFile = async function (src, dest, move) {
@@ -30,7 +30,7 @@ const isEmptyDir = async function ({ srcGlob, cwd, isDir }) {
30
30
  }
31
31
 
32
32
  const files = await globby(srcGlob, { cwd })
33
- const filteredFiles = files.filter((file) => junk.not(basename(file)))
33
+ const filteredFiles = files.filter((file) => isNotJunk(basename(file)))
34
34
  return filteredFiles.length === 0
35
35
  }
36
36