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