@netlify/cache-utils 4.1.2 → 4.1.3
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 +3 -3
- package/src/hash.js +1 -1
- package/src/manifest.js +1 -1
- package/src/utils/cwd.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/cache-utils",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Utility for caching files in Netlify Build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/main.js",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"get-stream": "^6.0.0",
|
|
51
51
|
"globby": "^11.0.0",
|
|
52
52
|
"junk": "^3.1.0",
|
|
53
|
-
"locate-path": "^
|
|
53
|
+
"locate-path": "^7.0.0",
|
|
54
54
|
"move-file": "^2.0.0",
|
|
55
|
-
"path-exists": "^
|
|
55
|
+
"path-exists": "^5.0.0",
|
|
56
56
|
"readdirp": "^3.4.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
package/src/hash.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createHash } from 'crypto'
|
|
|
2
2
|
import { createReadStream } from 'fs'
|
|
3
3
|
|
|
4
4
|
import getStream from 'get-stream'
|
|
5
|
-
import locatePath from 'locate-path'
|
|
5
|
+
import { locatePath } from 'locate-path'
|
|
6
6
|
|
|
7
7
|
// Caching a big directory like `node_modules` is slow. However those can
|
|
8
8
|
// sometime be represented by a digest file such as `package-lock.json`. If this
|
package/src/manifest.js
CHANGED
|
@@ -2,7 +2,7 @@ import { promises as fs } from 'fs'
|
|
|
2
2
|
import { dirname } from 'path'
|
|
3
3
|
|
|
4
4
|
import del from 'del'
|
|
5
|
-
import pathExists from 'path-exists'
|
|
5
|
+
import { pathExists } from 'path-exists'
|
|
6
6
|
|
|
7
7
|
import { getExpires, checkExpires } from './expire.js'
|
|
8
8
|
import { getHash } from './hash.js'
|
package/src/utils/cwd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalize } from 'path'
|
|
2
2
|
import process from 'process'
|
|
3
3
|
|
|
4
|
-
import pathExists from 'path-exists'
|
|
4
|
+
import { pathExists } from 'path-exists'
|
|
5
5
|
|
|
6
6
|
// Like `process.cwd()` but safer when current directory is wrong
|
|
7
7
|
export const safeGetCwd = async function (cwdOpt) {
|