slnodejs 6.1.911 → 6.1.913

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.913';
57161
57161
  exports.SL_AGENT_TYPE = 'browser';
57162
57162
  });
57163
57163
 
@@ -61988,6 +61988,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
61988
61988
  }
61989
61989
  return bufferInBytes;
61990
61990
  }
61991
+ static instrumentGlobal() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.INSTRUMENT_GLOBAL); }
61992
+ static dumpEnvironment() { return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.CIA.DUMP_ENVIRONMENT); }
61991
61993
  },
61992
61994
  _a.FILE_EXTENSIONS = 'SL_fileExtensions',
61993
61995
  _a.SL_SOURCE_ROOT = 'SL_sourceRoot',
@@ -62002,6 +62004,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
62002
62004
  _a.PARTIAL_BUILD_MAPPING = 'SL_partialBuildMapping',
62003
62005
  _a.SCAN_DOT_FOLDERS = 'SL_scanDotFolders',
62004
62006
  _a.SEND_COMMIT_TITLES = 'SL_sendCommitTitles',
62007
+ _a.INSTRUMENT_GLOBAL = 'SL_instrumentGlobal',
62008
+ _a.DUMP_ENVIRONMENT = 'SL_dumpEnvironment',
62005
62009
  _a.MAX_BUFFER = 'SL_maxBuffer',
62006
62010
  _a);
62007
62011
  });
@@ -64811,8 +64815,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
64811
64815
  opts.proxy = this.cfg.proxy;
64812
64816
  this.allowUntrustedCertificates();
64813
64817
  }
64818
+ this.checkEnvironmentForProxy();
64814
64819
  return opts;
64815
64820
  }
64821
+ checkEnvironmentForProxy() {
64822
+ const environmentKeys = ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'https_proxy'];
64823
+ for (const key of environmentKeys) {
64824
+ if (process.env[key]) {
64825
+ 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.`);
64826
+ }
64827
+ }
64828
+ }
64816
64829
  get defaultTimeout() {
64817
64830
  return this.cfg.defaultTimeout || HttpClient.DEFAULT_HTTP_TIMEOUT;
64818
64831
  }