@zoodogood/utils 1.0.6-change.708 → 1.0.6-change.717

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.
@@ -83,13 +83,10 @@ class TextTableGenerator {
83
83
  if (getRowType(row) === SpecialRowTypeEnum.Default) {
84
84
  row = row;
85
85
  content += (_c = (_b = (_a = this.options).borderLeft) === null || _b === void 0 ? void 0 : _b.call(_a, context, context.currentRow)) !== null && _c !== void 0 ? _c : "";
86
- console.log(row);
87
- for (const cellIndex in row) {
86
+ for (const cellIndex of Object.keys(row)) {
88
87
  const cell = row.at(+cellIndex);
89
- console.log(cell);
90
88
  const expectedWidth = metadata.columns.at(+cellIndex).largestLength;
91
89
  content += this.drawCell(cell, expectedWidth);
92
- console.log(content);
93
90
  if (+cellIndex !== row.length - 1) {
94
91
  content += !cell.options.removeNextSeparator
95
92
  ? this.options.separator
@@ -103,7 +100,6 @@ class TextTableGenerator {
103
100
  row = row;
104
101
  content += this.drawLine(row.display);
105
102
  }
106
- console.log({ content });
107
103
  return content;
108
104
  }
109
105
  drawCell(cell, expectedWidth) {
@@ -126,11 +122,10 @@ class TextTableGenerator {
126
122
  let content = "";
127
123
  const context = this.context;
128
124
  const length = this.calculateTableWidth();
129
- for (const index in [...new Array(length)]) {
125
+ for (const index of [...new Array(length)].map((_, index) => index)) {
130
126
  const symbol = setSymbol(context, +index);
131
127
  content += symbol;
132
128
  }
133
- console.log({ drawLineContent: content });
134
129
  return content;
135
130
  }
136
131
  drawBlockBorder(borderDirection) {
@@ -264,6 +259,3 @@ class TextTableBuilder {
264
259
  }
265
260
  export { TextTableBuilder };
266
261
  export { SpecialRowTypeEnum, CellAlignEnum, BorderDirectionEnum };
267
- const builder = new TextTableBuilder()
268
- .addRowWithElements(["1", "2", "3"]);
269
- console.log(builder.generateTextContent());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zoodogood/utils",
3
3
  "type": "module",
4
- "version": "1.0.6-change.708",
4
+ "version": "1.0.6-change.717",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",