Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 48692dd

Browse files
author
Stanislav Panferov
committed
feat(cache): use sha512
1 parent fe08642 commit 48692dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cache.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ function write(filename: string, result: any, callback) {
8888
* @return {String}
8989
*/
9090
function filename(source: string, identifier, options) {
91-
let hash = crypto.createHash('SHA1') as any;
91+
let hash = crypto.createHash('sha512') as any;
9292
let contents = JSON.stringify({
93-
source: source,
94-
options: options,
9593
identifier: identifier,
94+
options: options,
95+
source: source,
9696
});
9797

9898
hash.end(contents);

0 commit comments

Comments
 (0)