@nsshunt/ststestrunner 1.0.45 → 1.0.46

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.
@@ -12077,16 +12077,11 @@ class FhirSocketClient {
12077
12077
  body: {}
12078
12078
  };
12079
12079
  return new Promise((resolve, reject) => {
12080
- const start = performance.now();
12081
12080
  this.socket.timeout(__privateGet$1(this, _options2).timeout).emit("getFhirResources", resource, request, (err, res) => {
12082
12081
  if (err) {
12083
- const duration = (performance.now() - start) / 1e3;
12084
- console.log(`FhirSocketClient:GetResources(): Duration for query (error): [${duration}]`);
12085
12082
  __privateGet$1(this, _error).call(this, `FhirSocketClient:GetResources(): ID: [${__privateGet$1(this, _id)}] clientName: [${__privateGet$1(this, _clientName)}] Error: [${err}]`);
12086
12083
  reject(err);
12087
12084
  } else {
12088
- const duration = (performance.now() - start) / 1e3;
12089
- console.log(`FhirSocketClient:GetResources(): Duration for query: [${duration}]`);
12090
12085
  resolve(res);
12091
12086
  }
12092
12087
  });
@@ -13556,21 +13551,30 @@ class StartUpDelFhirResources extends TestCaseFhirBase {
13556
13551
  let complete = false;
13557
13552
  let totalRecordsDelete = 0;
13558
13553
  while (!complete) {
13554
+ const start2 = performance.now();
13559
13555
  __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - pre GetResources()`));
13560
13556
  const retVal = await this.fhirClient.GetResources("Person", null, {
13561
13557
  limit: options.batchDeleteSize,
13562
13558
  prefix: options.personPrefix
13563
13559
  }, (error) => {
13564
13560
  this.LogErrorMessage(chalk$1.red(`ExecuteRunner():GetResources: Error: [${error}]`));
13561
+ const duration2 = (performance.now() - start2) / 1e3;
13562
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources() - Total Duration (error): [${duration2}]`));
13565
13563
  });
13566
- __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources()`));
13564
+ const duration = (performance.now() - start2) / 1e3;
13565
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post GetResources() - Total Duration: [${duration}]`));
13567
13566
  __privateGet(this, _debug3).call(this, retVal);
13568
13567
  if (retVal) {
13569
13568
  __privateGet(this, _debug3).call(this, `Records already exist - going to delete ...`);
13570
13569
  __privateGet(this, _debug3).call(this, retVal.length);
13570
+ const start3 = performance.now();
13571
13571
  const delRetVal = await this.fhirClient.DeleteResources("Person", retVal, (error) => {
13572
13572
  this.LogErrorMessage(chalk$1.red(`test(POST /stsresource and query using filter): ${error}`));
13573
+ const duration3 = (performance.now() - start3) / 1e3;
13574
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post DeleteResources() - Total Duration (error): [${duration3}]`));
13573
13575
  });
13576
+ const duration2 = (performance.now() - start3) / 1e3;
13577
+ __privateGet(this, _debug3).call(this, chalk$1.magenta(`ExecuteRunner() - post DeleteResources() - Total Duration: [${duration2}]`));
13574
13578
  if (delRetVal) {
13575
13579
  if (delRetVal.length === 0) {
13576
13580
  complete = true;