@nu-art/build-and-install 0.204.102 → 0.204.104

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/build-and-install",
3
- "version": "0.204.102",
3
+ "version": "0.204.104",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -96,27 +96,29 @@ class BAIScreen_Launch extends BAIScreen_1.BAIScreen {
96
96
  this.gridDimensions = grid;
97
97
  };
98
98
  this.getGridWidgetLabel = (index) => {
99
+ const widgetLogs = this.getContentForWidget(index);
99
100
  if (!this.withRunningLogs)
100
- return this.focusUnits[index].config.label;
101
- return index === this.focusUnits.length ? 'Running Logs' : this.focusUnits[index].config.label;
101
+ return `${this.focusUnits[index].config.label} - Log Size: ${(0, ts_common_1.getStringSize)(widgetLogs, 'KB').toFixed(3)} KB`;
102
+ return index === this.focusUnits.length ? 'Running Logs' : `${this.focusUnits[index].config.label} - Log Size: ${(0, ts_common_1.getStringSize)(widgetLogs, 'KB').toFixed(3)} KB`;
102
103
  };
103
104
  this.destroyGridWidgets = () => {
104
105
  this.gridCellWidgets.forEach(widget => widget.destroy());
105
106
  this.gridCellWidgets.length = 0;
106
107
  };
107
108
  this.getContentForWidget = (widgetIndex) => {
108
- var _a, _b;
109
+ var _a, _b, _c;
109
110
  if (!this.withRunningLogs) {
110
111
  const unit = this.focusUnits[widgetIndex];
111
112
  if (!unit)
112
113
  throw new ts_common_1.WhoCallThisException(`focusedUnits: ${this.focusUnits.length}[${widgetIndex}]`);
113
- return (_a = unit.getLogs()) !== null && _a !== void 0 ? _a : `No logs for unit ${unit.config.label}`;
114
+ const isFullScreen = ((_a = this.focusUnits) === null || _a === void 0 ? void 0 : _a.length) === 1;
115
+ return (0, ts_common_1.maxSubstring)((_b = unit.getLogs()) !== null && _b !== void 0 ? _b : `No logs for unit ${unit.config.label}`, isFullScreen ? ts_common_1.MB : 100 * ts_common_1.KB, 'end');
114
116
  }
115
117
  //With running logs, last index should return the running logs
116
118
  if (widgetIndex === this.focusUnits.length)
117
- return this.getLogs();
119
+ return (0, ts_common_1.maxSubstring)(this.getLogs(), 100 * ts_common_1.KB, 'end');
118
120
  const unit = this.focusUnits[widgetIndex];
119
- return (_b = unit.getLogs()) !== null && _b !== void 0 ? _b : `No logs for unit ${unit.config.label}`;
121
+ return (0, ts_common_1.maxSubstring)((_c = unit.getLogs()) !== null && _c !== void 0 ? _c : `No logs for unit ${unit.config.label}`, 100 * ts_common_1.KB, 'end');
120
122
  };
121
123
  this.renderGridWidgets = () => {
122
124
  this.gridCellWidgets.forEach((widget, index) => {
@@ -124,6 +126,7 @@ class BAIScreen_Launch extends BAIScreen_1.BAIScreen {
124
126
  const content = this.getContentForWidget(index);
125
127
  widget.setContent(content);
126
128
  widget.setScroll(scrollPosition);
129
+ widget.setLabel(this.getGridWidgetLabel(index));
127
130
  });
128
131
  };
129
132
  //######################### Options #########################
@@ -187,7 +187,8 @@ class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
187
187
  }
188
188
  catch (e) {
189
189
  this.setErrorStatus('Compilation Error', e);
190
- throw e;
190
+ if (!params_1.RuntimeParams.watch)
191
+ throw e;
191
192
  }
192
193
  }
193
194
  async purge() {