File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ namespace ts {
632
632
getModifiedTime,
633
633
setModifiedTime,
634
634
deleteFile,
635
- createHash : _crypto ? createMD5HashUsingNativeCrypto : generateDjb2Hash ,
635
+ createHash : _crypto ? createSHA256Hash : generateDjb2Hash ,
636
636
createSHA256Hash : _crypto ? createSHA256Hash : undefined ,
637
637
getMemoryUsage ( ) {
638
638
if ( global . gc ) {
@@ -1125,12 +1125,6 @@ namespace ts {
1125
1125
}
1126
1126
}
1127
1127
1128
- function createMD5HashUsingNativeCrypto ( data : string ) : string {
1129
- const hash = _crypto ! . createHash ( "md5" ) ;
1130
- hash . update ( data ) ;
1131
- return hash . digest ( "hex" ) ;
1132
- }
1133
-
1134
1128
function createSHA256Hash ( data : string ) : string {
1135
1129
const hash = _crypto ! . createHash ( "sha256" ) ;
1136
1130
hash . update ( data ) ;
You can’t perform that action at this time.
0 commit comments