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

Function handleCurrDomain

common/postmanLib.js:169–176  ·  view source on GitHub ↗
(domains, case_env)

Source from the content-addressed store, hash-verified

167}
168
169function handleCurrDomain(domains, case_env) {
170 let currDomain = _.find(domains, item => item.name === case_env);
171
172 if (!currDomain) {
173 currDomain = domains[0];
174 }
175 return currDomain;
176}
177
178function sandboxByNode(sandbox = {}, script) {
179 const vm = require('vm');

Callers 2

handleParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected