OLD | NEW |
1 let crypto = require("crypto"); | 1 let crypto = require("crypto"); |
2 | 2 |
3 exports.Utils = { | 3 exports.Utils = { |
4 generateChecksum: function(lines) | 4 generateChecksum: function(lines) |
5 { | 5 { |
6 let buffer = new Buffer(lines.join("\n"), "utf-8"); | 6 let buffer = new Buffer(lines.join("\n"), "utf-8"); |
7 let hash = crypto.createHash("md5"); | 7 let hash = crypto.createHash("md5"); |
8 hash.update(buffer); | 8 hash.update(buffer); |
9 return hash.digest("base64").replace(/=+$/, ""); | 9 return hash.digest("base64").replace(/=+$/, ""); |
10 } | 10 }, |
| 11 yield: () => undefined |
11 }; | 12 }; |
OLD | NEW |