MCPcopy Create free account
hub / github.com/vercel/vercel / mapToObject

Function mapToObject

packages/client/src/utils/hashes.ts:53–60  ·  view source on GitHub ↗
(map: FilesMap)

Source from the content-addressed store, hash-verified

51 * @return {object}
52 */
53export 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.

Callers 2

continueDeploymentFunction · 0.90
buildCreateDeploymentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected