Left: | ||
Right: |
OLD | NEW |
---|---|
1 "use strict"; | 1 "use strict"; |
2 | 2 |
3 const crypto = require("crypto"); | |
4 | |
5 exports.Utils = { | 3 exports.Utils = { |
6 appLocale: "en-US", | 4 appLocale: "en-US", |
7 | 5 |
8 generateChecksum(lines) | |
9 { | |
10 let buffer = new Buffer(lines.join("\n"), "utf-8"); | |
11 let hash = crypto.createHash("md5"); | |
12 hash.update(buffer); | |
13 return hash.digest("base64").replace(/=+$/, ""); | |
14 }, | |
15 yield() {} | 6 yield() {} |
16 }; | 7 }; |
OLD | NEW |