MCPcopy Create free account
hub / github.com/EsperoTech/yaade / kvRowsToMap

Function kvRowsToMap

client/src/utils/index.tsx:112–121  ·  view source on GitHub ↗
(rows: KVRow[])

Source from the content-addressed store, hash-verified

110}
111
112function kvRowsToMap(rows: KVRow[]): Record<string, string> {
113 const res: Record<string, string> = {};
114 if (!rows) return res;
115 rows.forEach((row) => {
116 if (row.key === '') return;
117 if (res[row.key]) return;
118 res[row.key] = row.value;
119 });
120 return res;
121}
122
123function mapToKvRows(map: Record<string, string>): KVRow[] {
124 return Object.entries(map).map(([key, value]) => {

Callers 4

setSelectedEnvDataFunction · 0.90
sendRequestToExtensionFunction · 0.90
executeResponseScriptFunction · 0.85
executeRequestScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected