Skip to content

Commit 9140468

Browse files
authored
Support environments where MD5 is prohibited (#191)
1 parent 8250adf commit 9140468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function trimSlashes (str) {
7474
}
7575

7676
function cachedPrebuild (url) {
77-
const digest = crypto.createHash('md5').update(url).digest('hex').slice(0, 6)
77+
const digest = crypto.createHash('sha512').update(url).digest('hex').slice(0, 6)
7878
return path.join(prebuildCache(), digest + '-' + path.basename(url).replace(/[^a-zA-Z0-9.]+/g, '-'))
7979
}
8080

0 commit comments

Comments
 (0)