omnius 1.0.98 → 1.0.100
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.js +8 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -563250,17 +563250,17 @@ function buildTopBorder(title, metrics2, width) {
|
|
|
563250
563250
|
let metricsSegment;
|
|
563251
563251
|
let fillerWidth;
|
|
563252
563252
|
if (titleSpan + metricsSpan + 4 <= inner) {
|
|
563253
|
-
titleSegment = `${FG_BORDER}
|
|
563254
|
-
metricsSegment = metricsChip ? `${FG_BORDER}
|
|
563253
|
+
titleSegment = `${FG_BORDER}├${FG_TITLE}${titleChip}${RESET}${FG_BORDER}┤`;
|
|
563254
|
+
metricsSegment = metricsChip ? `${FG_BORDER}├${FG_METRIC}${metricsChip}${RESET}${FG_BORDER}┤` : "";
|
|
563255
563255
|
fillerWidth = inner - titleSpan - metricsSpan - 2;
|
|
563256
563256
|
} else if (titleSpan + 4 <= inner) {
|
|
563257
|
-
titleSegment = `${FG_BORDER}
|
|
563257
|
+
titleSegment = `${FG_BORDER}├${FG_TITLE}${titleChip}${RESET}${FG_BORDER}┤`;
|
|
563258
563258
|
metricsSegment = "";
|
|
563259
563259
|
fillerWidth = inner - titleSpan - 2;
|
|
563260
563260
|
} else {
|
|
563261
563261
|
const room = Math.max(3, inner - 8);
|
|
563262
563262
|
const truncated = titleVisible.length > room ? titleVisible.slice(0, Math.max(1, room - 1)) + "…" : titleVisible;
|
|
563263
|
-
titleSegment = `${FG_BORDER}
|
|
563263
|
+
titleSegment = `${FG_BORDER}├${FG_TITLE} ${truncated} ${RESET}${FG_BORDER}┤`;
|
|
563264
563264
|
metricsSegment = "";
|
|
563265
563265
|
fillerWidth = Math.max(0, inner - (truncated.length + 4) - 2);
|
|
563266
563266
|
}
|
|
@@ -563745,16 +563745,16 @@ function buildToolTopBorder(title, metrics2, width, colorCode) {
|
|
|
563745
563745
|
let metricsSegment = "";
|
|
563746
563746
|
let fillerWidth;
|
|
563747
563747
|
if (titleSpan + metricsSpan + 4 <= inner) {
|
|
563748
|
-
titleSegment = `${border}
|
|
563749
|
-
metricsSegment = metricsChip ? `${border}
|
|
563748
|
+
titleSegment = `${border}┤${titleColor}${titleChip}${reset}${border}├`;
|
|
563749
|
+
metricsSegment = metricsChip ? `${border}┤${metricColor}${metricsChip}${reset}${border}├` : "";
|
|
563750
563750
|
fillerWidth = inner - titleSpan - metricsSpan - 2;
|
|
563751
563751
|
} else if (titleSpan + 4 <= inner) {
|
|
563752
|
-
titleSegment = `${border}
|
|
563752
|
+
titleSegment = `${border}┤${titleColor}${titleChip}${reset}${border}├`;
|
|
563753
563753
|
fillerWidth = inner - titleSpan - 2;
|
|
563754
563754
|
} else {
|
|
563755
563755
|
const room = Math.max(3, inner - 8);
|
|
563756
563756
|
const truncated = titleVisible.length > room ? titleVisible.slice(0, Math.max(1, room - 1)) + "…" : titleVisible;
|
|
563757
|
-
titleSegment = `${border}
|
|
563757
|
+
titleSegment = `${border}┤${titleColor} ${truncated} ${reset}${border}├`;
|
|
563758
563758
|
fillerWidth = Math.max(0, inner - (truncated.length + 4) - 2);
|
|
563759
563759
|
}
|
|
563760
563760
|
return `${border}${BOX_TL2}${BOX_H2}${titleSegment}${BOX_H2.repeat(Math.max(0, fillerWidth))}${metricsSegment}${BOX_H2}${BOX_TR2}${reset}`;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.100",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.100",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED