slnodejs 6.1.911 → 6.1.912

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.
@@ -57157,7 +57157,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
57157
57157
  "use strict";
57158
57158
  Object.defineProperty(exports, "__esModule", { value: true });
57159
57159
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
57160
- exports.SL_AGENT_VERSION = '6.1.911';
57160
+ exports.SL_AGENT_VERSION = '6.1.912';
57161
57161
  exports.SL_AGENT_TYPE = 'browser';
57162
57162
  });
57163
57163
 
@@ -64811,8 +64811,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
64811
64811
  opts.proxy = this.cfg.proxy;
64812
64812
  this.allowUntrustedCertificates();
64813
64813
  }
64814
+ this.checkEnvironmentForProxy();
64814
64815
  return opts;
64815
64816
  }
64817
+ checkEnvironmentForProxy() {
64818
+ const environmentKeys = ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'https_proxy'];
64819
+ for (const key of environmentKeys) {
64820
+ if (process.env[key]) {
64821
+ this.logger.error(`Environment variable ${key} is set to "${process.env[key]}", this might cause issues with the proxy configuration. If this was not intended, please unset the environment variable.`);
64822
+ }
64823
+ }
64824
+ }
64816
64825
  get defaultTimeout() {
64817
64826
  return this.cfg.defaultTimeout || HttpClient.DEFAULT_HTTP_TIMEOUT;
64818
64827
  }