@nsshunt/ststestrunner 1.0.50 → 1.0.52

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.
@@ -18,8 +18,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
18
18
  }
19
19
  });
20
20
  var _runner, _workerInstance, _logMessageDataSet, _publishTelemetryTimeout, _publishTelemetryCount, _maxBufferSize, _publishTelemetryTimeoutVal, _color, _randomPastelColour, _TestCase01_instances, GetRandomHexColor_fn, _GetRandomPastelColor, _debug2, _GenLogMessage, _SetupTimeout, _PublishTelemetryData, _ForcePublishTelemetryData, _PublishTelemetry, _OutputLogMessage, _options4, _agentManager, _randomDataRecordset, _runner2, _workerInstance2, _fhirClient, _accesssToken, _clientId, _clientSecret, _publishTelemetryCount2, _maxBufferSize2, _publishTelemetryTimeout2, _publishTelemetryTimeoutVal2, _originRegex, _LogMessage, _PublishTelemetryData2, _ForcePublishTelemetryData2, _SetupTimeout2, _OutputLogMessage2, _debug3, _debug4, _error2, _GetPersonRecord, _runner3, _workerInstance3, _logMessageDataSet2, _publishTelemetryTimeout3, _publishTelemetryCount3, _maxBufferSize3, _publishTelemetryTimeoutVal3, _color2, _randomPastelColour2, _TestStartUp_instances, GetRandomHexColor_fn2, _GetRandomPastelColor2, _debug5, _GenLogMessage2, _SetupTimeout3, _PublishTelemetryData3, _ForcePublishTelemetryData3, _PublishTelemetry2, _OutputLogMessage3, _runner4, _workerInstance4, _logMessageDataSet3, _publishTelemetryTimeout4, _publishTelemetryCount4, _maxBufferSize4, _publishTelemetryTimeoutVal4, _color3, _randomPastelColour3, _TestShutDown_instances, GetRandomHexColor_fn3, _GetRandomPastelColor3, _debug6, _GenLogMessage3, _SetupTimeout4, _PublishTelemetryData4, _ForcePublishTelemetryData4, _PublishTelemetry3, _OutputLogMessage4, _options5, _id2, _clientName2, _wm, _socketUtils2, _debug7, _error3, _info2, _GetKeyPayloadData, _LogPayloadEventRetVal, _EmitStateChange, _SetupRunnerEventHandlers, _HandleAddRunner, _SetupWSSClient2, _OnSocketConnected2, _RegisterSocketEvents, _EmitEvent, _GetSocketEventHandlers;
21
- import { defaultLogger, Sleep, STSAxiosConfig } from "@nsshunt/stsutils";
21
+ import { defaultLogger, Sleep, STSAxiosConfig, AgentManager } from "@nsshunt/stsutils";
22
22
  import "@nsshunt/stsobservability";
23
+ import http from "node:http";
24
+ import https from "node:https";
23
25
  var __defProp$1 = Object.defineProperty;
24
26
  var __typeError$2 = (msg) => {
25
27
  throw TypeError(msg);
@@ -12907,6 +12909,26 @@ class TestCaseFhirBase {
12907
12909
  __privateSet(this, _workerInstance2, workerInstance);
12908
12910
  __privateSet(this, _runner2, runner);
12909
12911
  console.log(`TestCaseFhirBase(): fhirEndpoint: [${__privateGet(this, _options4).fhirEndpoint}]`);
12912
+ let agentManager = void 0;
12913
+ if (__privateGet(this, _options4).nodeAgentOptions) {
12914
+ agentManager = new AgentManager({
12915
+ agentOptions: {
12916
+ keepAlive: __privateGet(this, _options4).nodeAgentOptions.keepAlive,
12917
+ maxSockets: __privateGet(this, _options4).nodeAgentOptions.maxSockets,
12918
+ maxTotalSockets: __privateGet(this, _options4).nodeAgentOptions.maxTotalSockets,
12919
+ maxFreeSockets: __privateGet(this, _options4).nodeAgentOptions.maxFreeSockets,
12920
+ timeout: 6e4,
12921
+ //@@ config
12922
+ rejectUnauthorized: __privateGet(this, _options4).nodeAgentOptions.rejectUnauthorized
12923
+ },
12924
+ httpAgentFactory(options) {
12925
+ return new http.Agent(options);
12926
+ },
12927
+ httpsAgentFactory(options) {
12928
+ return new https.Agent(options);
12929
+ }
12930
+ });
12931
+ }
12910
12932
  __privateSet(this, _fhirClient, new FhirClient({
12911
12933
  fhirEndpoint: __privateGet(this, _options4).fhirEndpoint,
12912
12934
  logger: defaultLogger,
@@ -12925,6 +12947,7 @@ class TestCaseFhirBase {
12925
12947
  __privateGet(this, _runner2).instrumentData.retryCount++;
12926
12948
  }
12927
12949
  },
12950
+ agentManager,
12928
12951
  useSocketClient: __privateGet(this, _options4).useSocketClient,
12929
12952
  socketClientOptions: {
12930
12953
  fhirServerEndpoint: __privateGet(this, _options4).socketClientOptions.socketClientFhirServerEndpoint,
@@ -12961,12 +12984,6 @@ class TestCaseFhirBase {
12961
12984
  get fhirClient() {
12962
12985
  return __privateGet(this, _fhirClient);
12963
12986
  }
12964
- //get authUtilsNode() {
12965
- //return this.#authUtilsNode;
12966
- //}
12967
- get agentManager() {
12968
- return __privateGet(this, _agentManager);
12969
- }
12970
12987
  SleepImmediate() {
12971
12988
  return new Promise((resolve, reject) => {
12972
12989
  if (isNode$3) {