(map: FilesMap)
| 51 | * @return {object} |
| 52 | */ |
| 53 | export const mapToObject = (map: FilesMap): Record<string, DeploymentFile> => { |
| 54 | const obj: { [key: string]: DeploymentFile } = {}; |
| 55 | for (const [key, value] of map) { |
| 56 | if (typeof key === 'undefined') continue; |
| 57 | obj[key] = value; |
| 58 | } |
| 59 | return obj; |
| 60 | }; |
| 61 | |
| 62 | /** |
| 63 | * Computes hashes for the contents of each file given. |
no outgoing calls
no test coverage detected