travel/admin/node_modules/vue-jest/lib/get_cache_key.js

8 lines
218 B
JavaScript
Raw Normal View History

2024-06-24 11:28:18 +08:00
var crypto = require('crypto')
module.exports = function getCacheKey (fileData, filename, configString) {
return crypto.createHash('md5')
.update(fileData + filename + configString, 'utf8')
.digest('hex')
}