@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.mjs
CHANGED
|
@@ -3685,18 +3685,13 @@ var RunnerInstance = class {
|
|
|
3685
3685
|
* @throws Re-throws any error after logging.
|
|
3686
3686
|
*/
|
|
3687
3687
|
toRunnerCore() {
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
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
|
-
|
|
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(
|
|
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.`));
|