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

11 lines
233 B
JavaScript

'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;
});
};