GT2/GT2-Android/node_modules/expo/tools/hashAssetFiles.js

11 lines
233 B
JavaScript
Raw Normal View History

'use strict';
const md5File = require('md5-file/promise');
module.exports = function hashAssetFiles(asset) {
return Promise.all(asset.files.map(md5File)).then(hashes => {
asset.fileHashes = hashes;
return asset;
});
};