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

11 lines
233 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
'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;
});
};