@nsshunt/stsrunnerframework 2.0.28 → 2.0.30

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.
package/dist/index.mjs CHANGED
@@ -3685,18 +3685,13 @@ var RunnerInstance = class {
3685
3685
  * @throws Re-throws any error after logging.
3686
3686
  */
3687
3687
  toRunnerCore() {
3688
- try {
3689
- const retVal = {
3690
- id: this.id,
3691
- iteration: this.iteration,
3692
- state: this.state
3693
- };
3694
- if (this.runnerPlanRuntime) retVal.runnerPlanRuntime = { ...this.runnerPlanRuntime };
3695
- return retVal;
3696
- } catch (error) {
3697
- defaultLogger.error(`toRunnerCore(): Error: [${error}]`);
3698
- throw error;
3699
- }
3688
+ const retVal = {
3689
+ id: this.id,
3690
+ iteration: this.iteration,
3691
+ state: this.state
3692
+ };
3693
+ if (this.runnerPlanRuntime) retVal.runnerPlanRuntime = { ...this.runnerPlanRuntime };
3694
+ return retVal;
3700
3695
  }
3701
3696
  /**
3702
3697
  * Send a command for this runner to the owning worker via the message broker.
@@ -4543,7 +4538,7 @@ var WorkerInstance = class {
4543
4538
  });
4544
4539
  return workerCopy;
4545
4540
  } catch (error) {
4546
- defaultLogger.error(`toWorkerCore(): Error: [${error}]`);
4541
+ this.#logger.error(`toWorkerCore(): Error: [${error}]`);
4547
4542
  throw error;
4548
4543
  }
4549
4544
  }
@@ -10272,7 +10267,7 @@ var NodeAgent = class extends SocketIoClient {
10272
10267
  };
10273
10268
  _Start = async () => {
10274
10269
  this._EmitEvent("Starting", {});
10275
- this.WithAddress(this._options.nodeAgentEndpoint).WithLogger(defaultLogger).WithSocketIoCustomPath(this._options.nodeAgentSocketIoCustomPath).WithAckTimeout(5e3);
10270
+ this.WithAddress(this._options.nodeAgentEndpoint).WithLogger(this._options.logger).WithSocketIoCustomPath(this._options.nodeAgentSocketIoCustomPath).WithAckTimeout(5e3);
10276
10271
  if (this._options.agentManager) this.WithAgentManager(this._options.agentManager);
10277
10272
  this.#info(chalk.yellow(`_Start():STS Test Runner Service Instance.`));
10278
10273
  this.#info(chalk.yellow(`_Start():This service instance emulates instances of the ststestrunnernode service.`));