MCPcopy Create free account
hub / github.com/angular/dev-infra / handleReply

Function handleReply

github-actions/bazel/configure-remote/configure-remote.js:11097–11113  ·  view source on GitHub ↗
(mockDispatches, _data = data)

Source from the content-addressed store, hash-verified

11095 query
11096 };
11097 }
11098 function generateKeyValues(data) {
11099 const keys = Object.keys(data);
11100 const result = [];
11101 for (let i = 0; i < keys.length; ++i) {
11102 const key = keys[i];
11103 const value = data[key];
11104 const name = Buffer.from(`${key}`);
11105 if (Array.isArray(value)) {
11106 for (let j = 0; j < value.length; ++j) {
11107 result.push(name, Buffer.from(`${value[j]}`));
11108 }
11109 } else {
11110 result.push(name, Buffer.from(`${value}`));
11111 }
11112 }
11113 return result;
11114 }
11115 function getStatusText(statusCode) {
11116 return STATUS_CODES[statusCode] || "unknown";

Callers 1

mockDispatchFunction · 0.70

Calls 8

buildHeadersFromArrayFunction · 0.70
__spreadPropsFunction · 0.70
__spreadValuesFunction · 0.70
getResponseDataFunction · 0.70
generateKeyValuesFunction · 0.70
getStatusTextFunction · 0.70
deleteMockDispatchFunction · 0.70
onErrorMethod · 0.45

Tested by

no test coverage detected