mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Remove lodash usage in proxy setup
Change-type: patch
This commit is contained in:
parent
c4a6086e9c
commit
3f6d770233
@ -172,7 +172,6 @@ async function setupGlobalAgentProxy(
|
||||
env.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE = '';
|
||||
|
||||
if (proxy) {
|
||||
const _ = await import('lodash');
|
||||
const proxyUrl: string =
|
||||
typeof proxy === 'string' ? proxy : makeUrlFromTunnelNgConfig(proxy);
|
||||
|
||||
@ -180,7 +179,7 @@ async function setupGlobalAgentProxy(
|
||||
|
||||
env.NO_PROXY = [
|
||||
...requiredNoProxy,
|
||||
...(noProxy ? _.filter((noProxy || '').split(',')) : privateNoProxy),
|
||||
...(noProxy ? noProxy.split(',').filter(v => v) : privateNoProxy),
|
||||
].join(',');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user