@netlify/cache-utils 5.1.2 → 5.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/lib/hash.js +2 -2
- package/package.json +3 -3
package/lib/hash.js
CHANGED
|
@@ -2,10 +2,10 @@ import { createHash } from 'crypto';
|
|
|
2
2
|
import { createReadStream } from 'fs';
|
|
3
3
|
import getStream from 'get-stream';
|
|
4
4
|
import { locatePath } from 'locate-path';
|
|
5
|
-
// We need a hashing
|
|
5
|
+
// We need a hashing algorithm that's as fast as possible.
|
|
6
6
|
// Userland CRC32 implementations are actually slower than Node.js SHA1.
|
|
7
7
|
const HASH_ALGO = 'sha1';
|
|
8
|
-
// Caching a big directory like `node_modules` is slow. However those can
|
|
8
|
+
// Caching a big directory like `node_modules` is slow. However, those can
|
|
9
9
|
// sometime be represented by a digest file such as `package-lock.json`. If this
|
|
10
10
|
// has not changed, we don't need to save cache again.
|
|
11
11
|
export const getHash = async function (digests, move) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/cache-utils",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Utility for caching files in Netlify Build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/main.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"readdirp": "^3.4.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@types/node": "^14.
|
|
64
|
+
"@types/node": "^18.14.2",
|
|
65
65
|
"tmp-promise": "^3.0.0",
|
|
66
66
|
"typescript": "^4.8.4",
|
|
67
67
|
"vitest": "^0.24.1"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": "^14.16.0 || >=16.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "35d6533c324d061b9e8e4165d369880a25bab707"
|
|
73
73
|
}
|