MCPcopy
hub / github.com/YMFE/yapi / paramsToObjectUnWithEnable

Function paramsToObjectUnWithEnable

common/postmanLib.js:372–383  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

370 }
371
372 function paramsToObjectUnWithEnable(arr) {
373 const obj = {};
374 safeArray(arr).forEach(item => {
375 if (item && item.name) {
376 obj[item.name] = handleValue(item.value, currDomain.global);
377 if (requestParams) {
378 requestParams[item.name] = obj[item.name];
379 }
380 }
381 });
382 return obj;
383 }
384
385 let { case_env, path, env, _id } = interfaceRunData;
386 let currDomain,

Callers 1

handleParamsFunction · 0.85

Calls 2

safeArrayFunction · 0.85
handleValueFunction · 0.70

Tested by

no test coverage detected