Skip to content

Commit 4a4ee4d

Browse files
authored
Update shared.js
1 parent 6730644 commit 4a4ee4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/shared.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
const Appdir = require('appdirectory');
22
const rimraf = require('rimraf');
3-
const md5File = require('md5-file');
3+
//const md5File = require('md5-file');
44
const glob = require('glob-all');
55
const path = require('path');
66
const fse = require('fs-extra');
7+
const sha256File = require('sha256-file');
8+
79

810
/**
911
* This helper will check if we're using static cache and have max
@@ -101,7 +103,7 @@ function getUserCachePath(options) {
101103
* @return {string}
102104
*/
103105
function md5Path(fullpath) {
104-
return md5File.sync(fullpath);
106+
return sha256File(fullpath);
105107
}
106108

107109
module.exports = {

0 commit comments

Comments
 (0)