@nsshunt/stsrunnerframework 1.0.62 → 1.0.63
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/stsrunnerframework.mjs +15 -17
- package/dist/stsrunnerframework.mjs.map +1 -1
- package/dist/stsrunnerframework.umd.js +15 -17
- package/dist/stsrunnerframework.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/wmworkerProcess.d.ts.map +1 -1
- package/types/workerManager.d.ts.map +1 -1
|
@@ -13,7 +13,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
13
13
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
14
14
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
15
15
|
|
|
16
|
-
var _collectorCollectorPort, _runners, _options3, _workerId, _debug, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _StartRunner, _StopRunnerByRunnerById, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options4, _STSInstrumentController, _telemetryProcessor, _debug2, _STSWorkerManager_instances, CreateRunnerCopy_fn, _SetRunnerIntoWorker, _ProcessTelemetry, _RunnerStateChange, _ProcessCompleted, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _BroadcastCommandToAllRunners, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _BroadcastUpdateCommandToAllRunners, _UpdateOptionsWorker, _TerminateWorker, _UpdateOptions2, _options5, _rest01Client, _accessToken2, _agentManager, _authUtilsNode, _GetAccessToken;
|
|
16
|
+
var _collectorCollectorPort, _runners, _options3, _workerId, _debug, _SetMessagePort, _CreateRunnerEx2RunState, _UpdateRunnerStateById, _GetAllRunners, _CanExecuteNextIterationById, _IsCompletedById, _GetRunnerIterationById, _ResetRunnerIterationById, _IncRunnerIterationById, _GetRunnerInstanceById, _GetRunnerExecutionProfileById, _GetRunnerOptionsById, _SetRunnerOptionsById, _AddRunner, _WorkerInstance_instances, SleepImmediate_fn, _PostMessageToWorkerManagerById, _StartRunner, _StopRunnerByRunnerById, _StopAllRunners, _StopRunner, _TerminateRunner, _PauseRunner, _ResumeRunner, _ResetRunner, _ExecuteRunner, _UpdateOptions, _workersEx, _options4, _STSInstrumentController, _telemetryProcessor, _debug2, _STSWorkerManager_instances, CreateRunnerCopy_fn, _SetRunnerIntoWorker, _ProcessTelemetry, _EmitEvent, _RunnerStateChange, _ProcessCompleted, _CreateAsyncRunner, _PostMessageToWorkerUsingDefaultChannel, _PostMessageToWorker, _StartRunner2, _ResetRunner2, _ExecuteRunner2, _StopRunner2, _TerminateRunner2, _PauseRunner2, _ResumeRunner2, _BroadcastCommandToAllRunners, _PauseWorker, _ResumeWorker, _StopWorker, _StartWorker, _ResetWorker, _ExecuteWorker, _BroadcastUpdateCommandToAllRunners, _UpdateOptionsWorker, _TerminateWorker, _UpdateOptions2, _options5, _rest01Client, _accessToken2, _agentManager, _authUtilsNode, _GetAccessToken;
|
|
17
17
|
const URI_BASE_VUEUTILS = "/";
|
|
18
18
|
const STS_RF_RES_PREFIX = "STS_R_RF_";
|
|
19
19
|
const STS_RF_RES_ENT_PREFIX = "STS_RE_RF_";
|
|
@@ -2163,14 +2163,17 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2163
2163
|
runnerEx.instrumentData.message = [];
|
|
2164
2164
|
}
|
|
2165
2165
|
__privateGet(this, _telemetryProcessor).ProcessTelemetry(runnerEx.publishInstrumentController, runnerEx.instrumentData);
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2166
|
+
__privateGet(this, _EmitEvent).call(this, "Telemetry", workerEx, runner.id);
|
|
2167
|
+
}
|
|
2168
|
+
});
|
|
2169
|
+
__privateAdd(this, _EmitEvent, (eventName, workerEx, runnerId) => {
|
|
2170
|
+
if (workerEx.runnersEvents[runnerId]) {
|
|
2171
|
+
const runnersEvents = workerEx.runnersEvents[runnerId];
|
|
2172
|
+
runnersEvents.forEach((ev) => {
|
|
2173
|
+
if (ev.eventName.localeCompare(eventName) === 0) {
|
|
2174
|
+
ev.cb(workerEx.runnersEx[runnerId]);
|
|
2175
|
+
}
|
|
2176
|
+
});
|
|
2174
2177
|
}
|
|
2175
2178
|
});
|
|
2176
2179
|
//@@ make this have an event
|
|
@@ -2181,18 +2184,12 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2181
2184
|
if (workerEx.runnersEx[runner.id]) {
|
|
2182
2185
|
const runnerEx = workerEx.runnersEx[runner.id];
|
|
2183
2186
|
runnerEx.state = runner.state;
|
|
2187
|
+
__privateGet(this, _EmitEvent).call(this, "StateChange", workerEx, runner.id);
|
|
2184
2188
|
}
|
|
2185
2189
|
});
|
|
2186
2190
|
__privateAdd(this, _ProcessCompleted, (workerEx, payloadContents) => {
|
|
2187
2191
|
const { runner } = payloadContents;
|
|
2188
|
-
|
|
2189
|
-
const runnersEvents = workerEx.runnersEvents[runner.id];
|
|
2190
|
-
runnersEvents.forEach((ev) => {
|
|
2191
|
-
if (ev.eventName.localeCompare("Completed") === 0) {
|
|
2192
|
-
ev.cb(workerEx.runnersEx[runner.id].instrumentData);
|
|
2193
|
-
}
|
|
2194
|
-
});
|
|
2195
|
-
}
|
|
2192
|
+
__privateGet(this, _EmitEvent).call(this, "Completed", workerEx, runner.id);
|
|
2196
2193
|
console.log(chalk$1.green(`ProcessCompleted: [${JSON.stringify(runner)}]`));
|
|
2197
2194
|
});
|
|
2198
2195
|
__privateAdd(this, _CreateAsyncRunner, (workerEx, runnerOptions) => {
|
|
@@ -2491,6 +2488,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2491
2488
|
};
|
|
2492
2489
|
_SetRunnerIntoWorker = new WeakMap();
|
|
2493
2490
|
_ProcessTelemetry = new WeakMap();
|
|
2491
|
+
_EmitEvent = new WeakMap();
|
|
2494
2492
|
_RunnerStateChange = new WeakMap();
|
|
2495
2493
|
_ProcessCompleted = new WeakMap();
|
|
2496
2494
|
_CreateAsyncRunner = new WeakMap();
|