!Utils.isUndefined(Configuration.getConfig()['stationTemplateURLs']) &&
(Configuration.getConfig().stationTemplateUrls = Configuration.getConfig()[
'stationTemplateURLs'
- ] as unknown as StationTemplateUrl[]);
+ ] as StationTemplateUrl[]);
Configuration.getConfig().stationTemplateUrls.forEach((stationUrl: StationTemplateUrl) => {
if (!Utils.isUndefined(stationUrl['numberOfStation'])) {
console.error(
let workerConfiguration: WorkerConfiguration = {
processType: Utils.hasOwnProp(Configuration.getConfig(), 'workerProcess')
? Configuration.getConfig()?.workerProcess
- : WorkerProcessType.WORKER_SET,
+ : WorkerProcessType.workerSet,
startDelay: Utils.hasOwnProp(Configuration.getConfig(), 'workerStartDelay')
? Configuration.getConfig()?.workerStartDelay
: WorkerConstants.DEFAULT_WORKER_START_DELAY,
) {
console.error(
chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${
- logMsgToAppend.trim().length > 0 && `. ${logMsgToAppend}`
+ logMsgToAppend.trim().length > 0 ? `. ${logMsgToAppend}` : ''
}}`
);
} else if (!Utils.isUndefined(Configuration.getConfig()[key])) {
console.error(
chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage${
- logMsgToAppend.trim().length > 0 && `. ${logMsgToAppend}`
+ logMsgToAppend.trim().length > 0 ? `. ${logMsgToAppend}` : ''
}}`
);
}