slnodejs 6.1.246 → 6.1.248

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.
@@ -47514,6 +47514,7 @@ var __extends = (this && this.__extends) || (function () {
47514
47514
  _this.footprintsSendIntervalSecs = new config_system_1.NumberConfigKey(false, 10);
47515
47515
  _this.footprintsCollectIntervalSecs = new config_system_1.NumberConfigKey(false, 10);
47516
47516
  _this.shouldCheckForActiveExecutionOnStartUp = new config_system_1.BooleanConfigKey(false, true);
47517
+ _this.useTsNode = new config_system_1.BooleanConfigKey(false, false);
47517
47518
  return _this;
47518
47519
  }
47519
47520
  return AgentConfig;
@@ -47783,6 +47784,9 @@ var __extends = (this && this.__extends) || (function () {
47783
47784
  SlEnvVars.turnOtelOff = function () {
47784
47785
  process.env[SlEnvVars.USE_OTEL_AGENT] = 'false';
47785
47786
  };
47787
+ SlEnvVars.useSpawnWrap = function () {
47788
+ return env_var_parsing_1.EnvVarParsing.parseBoolean(SlEnvVars.SL_USE_SPAWN_WRAP);
47789
+ };
47786
47790
  var _a;
47787
47791
  SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
47788
47792
  SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
@@ -47802,6 +47806,7 @@ var __extends = (this && this.__extends) || (function () {
47802
47806
  SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD = 'SL_disableHookDependencyGuard';
47803
47807
  SlEnvVars.USE_OTEL_AGENT = 'SL_useOtelAgent';
47804
47808
  SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
47809
+ SlEnvVars.SL_USE_SPAWN_WRAP = 'SL_useSpawnWrap';
47805
47810
  SlEnvVars.CIA = (_a = (function () {
47806
47811
  function class_1() {
47807
47812
  }
@@ -49713,7 +49718,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49713
49718
  }
49714
49719
  if (this.isRunning && this.cfg.sendFootprints.value && this.cfg.enabled.value) {
49715
49720
  this.ensureKeepaliveThreadRunning();
49716
- this.sendToServerWatchdog.start();
49721
+ this.sendToServerWatchdog.startIfNotRunning();
49717
49722
  }
49718
49723
  this.footprintsEnqueueOnce = true;
49719
49724
  return [2];
@@ -51869,6 +51874,11 @@ var __extends = (this && this.__extends) || (function () {
51869
51874
  this.stopped = false;
51870
51875
  this.reset();
51871
51876
  };
51877
+ Watchdog.prototype.startIfNotRunning = function () {
51878
+ if (this.stopped || !this.handle) {
51879
+ this.start();
51880
+ }
51881
+ };
51872
51882
  Watchdog.prototype.getStatus = function () {
51873
51883
  return {
51874
51884
  pendingAlarmDuringSuspended: this.pendingAlarmDuringSuspended,