cskit-cli 1.0.36 → 1.0.38

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": "cskit-cli",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "Content Suite Kit CLI - Download and manage CSK skills from private repository",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -45,11 +45,6 @@ async function updateCommand() {
45
45
  const currentVersion = pkg.version;
46
46
  const boxWidth = 37; // Inner width between │ and │
47
47
 
48
- // Show version info box
49
- console.log(chalk.dim(' ┌' + '─'.repeat(boxWidth) + '┐'));
50
- const currentLine = ` Current: ${chalk.yellow('v' + currentVersion)}`;
51
- console.log(chalk.dim(' │') + padText(currentLine, boxWidth) + chalk.dim('│'));
52
-
53
48
  const spinner = ora({ text: 'Checking npm registry...', indent: 2 }).start();
54
49
 
55
50
  try {
@@ -60,6 +55,12 @@ async function updateCommand() {
60
55
  }).trim();
61
56
 
62
57
  spinner.stop();
58
+ process.stdout.write('\r\x1b[K'); // Clear spinner line completely
59
+
60
+ // Show version info box (after spinner completes)
61
+ console.log(chalk.dim(' ┌' + '─'.repeat(boxWidth) + '┐'));
62
+ const currentLine = ` Current: ${chalk.yellow('v' + currentVersion)}`;
63
+ console.log(chalk.dim(' │') + padText(currentLine, boxWidth) + chalk.dim('│'));
63
64
  const latestLine = ` Latest: ${chalk.green('v' + latestVersion)}`;
64
65
  console.log(chalk.dim(' │') + padText(latestLine, boxWidth) + chalk.dim('│'));
65
66
  console.log(chalk.dim(' └' + '─'.repeat(boxWidth) + '┘\n'));
@@ -98,6 +99,12 @@ async function updateCommand() {
98
99
 
99
100
  } catch (error) {
100
101
  spinner.stop();
102
+ process.stdout.write('\r\x1b[K'); // Clear spinner line completely
103
+
104
+ // Show error box
105
+ console.log(chalk.dim(' ┌' + '─'.repeat(boxWidth) + '┐'));
106
+ const currentLine = ` Current: ${chalk.yellow('v' + currentVersion)}`;
107
+ console.log(chalk.dim(' │') + padText(currentLine, boxWidth) + chalk.dim('│'));
101
108
  const errorLine = ` Latest: ${chalk.red('(unavailable)')}`;
102
109
  console.log(chalk.dim(' │') + padText(errorLine, boxWidth) + chalk.dim('│'));
103
110
  console.log(chalk.dim(' └' + '─'.repeat(boxWidth) + '┘\n'));