@lukoweb/apitogo 0.1.147 → 0.1.148
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/cli/cli.js +8 -3
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -5523,8 +5523,13 @@ function createSpinner(initialText, { stream = process.stderr, silent = false }
|
|
|
5523
5523
|
const render = () => {
|
|
5524
5524
|
const elapsed = Date.now() - startedAt;
|
|
5525
5525
|
const suffix = elapsed >= SHOW_ELAPSED_AFTER_MS ? ` ${colors.dim(`(${formatElapsed(elapsed)})`)}` : "";
|
|
5526
|
+
const room = Math.max(
|
|
5527
|
+
10,
|
|
5528
|
+
(stream.columns || 80) - 3 - ` (${formatElapsed(elapsed)})`.length
|
|
5529
|
+
);
|
|
5530
|
+
const shown = text.length > room ? `${text.slice(0, room - 1)}\u2026` : text;
|
|
5526
5531
|
stream.write(
|
|
5527
|
-
`\r\x1B[K${colors.cyan(FRAMES[frame++ % FRAMES.length])} ${
|
|
5532
|
+
`\r\x1B[K${colors.cyan(FRAMES[frame++ % FRAMES.length])} ${shown}${suffix}`
|
|
5528
5533
|
);
|
|
5529
5534
|
};
|
|
5530
5535
|
stream.write("\x1B[?25l");
|
|
@@ -5945,7 +5950,7 @@ import {
|
|
|
5945
5950
|
// package.json
|
|
5946
5951
|
var package_default = {
|
|
5947
5952
|
name: "@lukoweb/apitogo",
|
|
5948
|
-
version: "0.1.
|
|
5953
|
+
version: "0.1.148",
|
|
5949
5954
|
type: "module",
|
|
5950
5955
|
sideEffects: [
|
|
5951
5956
|
"**/*.css",
|
|
@@ -17093,7 +17098,7 @@ function createScopedConsoleProgressReporter(stream, stepLabel, shared) {
|
|
|
17093
17098
|
`);
|
|
17094
17099
|
const reporter = {
|
|
17095
17100
|
async onStep(step, detail) {
|
|
17096
|
-
const message = detail?.message ?? (detail?.platformStatus ? `${step}: ${detail.platformStatus}` : step);
|
|
17101
|
+
const message = (!animated ? detail?.message : void 0) ?? (detail?.platformStatus ? `${step}: ${detail.platformStatus}` : step);
|
|
17097
17102
|
const line = stepLabel ? `[${stepLabel}] ${message}` : message;
|
|
17098
17103
|
if (line === lastLine) return;
|
|
17099
17104
|
lastLine = line;
|