@aikidosec/broker-client 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/client.js +7 -1
  2. package/package.json +1 -1
package/app/client.js CHANGED
@@ -231,7 +231,13 @@ function isInternalUrl(url) {
231
231
 
232
232
  let agent;
233
233
  if (process.env.HTTPS_PROXY || process.env.ALL_PROXY) {
234
- agent = new HttpsProxyAgent(process.env.HTTPS_PROXY || process.env.ALL_PROXY);
234
+ const agentProxyEnv = {}
235
+ if (process.env.NO_PROXY) {
236
+ // when the NO_PROXY env var is set, we need to set it for the proxyEnv specifically of this agent so it is taken into account
237
+ agentProxyEnv["NO_PROXY"] = process.env.NO_PROXY;
238
+ }
239
+
240
+ agent = new HttpsProxyAgent(process.env.HTTPS_PROXY || process.env.ALL_PROXY, { proxyEnv: agentProxyEnv });
235
241
  }
236
242
 
237
243
  // Create Socket.IO client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikidosec/broker-client",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Aikido Broker Client - Runs in customer network to forward requests to internal resources",
5
5
  "main": "app/client.js",
6
6
  "type": "module",