File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var CoreObject = require('core-object');
2
2
var fs = require ( 'fs' ) ;
3
3
var path = require ( 'path' ) ;
4
4
var minimatch = require ( 'minimatch' ) ;
5
- var Fingerprint = require ( 'broccoli-asset-rev/lib/fingerprint ' ) ;
5
+ var crypto = require ( 'crypto ' ) ;
6
6
var Promise = require ( 'ember-cli/lib/ext/promise' ) ;
7
7
8
8
var denodeify = require ( 'rsvp' ) . denodeify ;
@@ -29,8 +29,7 @@ module.exports = CoreObject.extend({
29
29
30
30
return readFile ( filePath )
31
31
. then ( function ( contents ) {
32
- fingerprint = new Fingerprint ( ) ;
33
- return fingerprint . hashFn ( contents . toString ( ) ) ;
32
+ return md5Hash ( contents . toString ( ) ) ;
34
33
} )
35
34
} ,
36
35
@@ -42,3 +41,9 @@ module.exports = CoreObject.extend({
42
41
return config [ key ] ;
43
42
}
44
43
} ) ;
44
+
45
+ function md5Hash ( buf ) {
46
+ var md5 = crypto . createHash ( 'md5' ) ;
47
+ md5 . update ( buf ) ;
48
+ return md5 . digest ( 'hex' ) ;
49
+ }
You can’t perform that action at this time.
0 commit comments