devcompass 1.0.4 → 1.0.5

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": "devcompass",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Analyze your JavaScript projects for unused dependencies and outdated packages",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -104,15 +104,11 @@ function displayResults(unusedDeps, outdatedDeps, score, totalDeps) {
104
104
  if (unusedDeps.length > 0) {
105
105
  logSection('🔴 UNUSED DEPENDENCIES', unusedDeps.length);
106
106
 
107
- const displayCount = Math.min(10, unusedDeps.length);
108
- unusedDeps.slice(0, displayCount).forEach(dep => {
107
+ // Show ALL unused deps
108
+ unusedDeps.forEach(dep => {
109
109
  log(` ${chalk.red('●')} ${dep.name}`);
110
110
  });
111
111
 
112
- if (unusedDeps.length > 10) {
113
- log(chalk.gray(`\n ... and ${unusedDeps.length - 10} more\n`));
114
- }
115
-
116
112
  log(chalk.gray('\n Why marked unused:'));
117
113
  log(chalk.gray(' • No import/require found in source files'));
118
114
  log(chalk.gray(' • Excludes node_modules, build folders'));
@@ -127,8 +123,8 @@ function displayResults(unusedDeps, outdatedDeps, score, totalDeps) {
127
123
  if (outdatedDeps.length > 0) {
128
124
  logSection('🟡 OUTDATED PACKAGES', outdatedDeps.length);
129
125
 
130
- const displayCount = Math.min(10, outdatedDeps.length);
131
- outdatedDeps.slice(0, displayCount).forEach(dep => {
126
+ // Show ALL outdated packages
127
+ outdatedDeps.forEach(dep => {
132
128
  const nameCol = dep.name.padEnd(20);
133
129
  const currentVer = chalk.yellow(dep.current);
134
130
  const arrow = chalk.gray('→');
@@ -138,11 +134,7 @@ function displayResults(unusedDeps, outdatedDeps, score, totalDeps) {
138
134
  log(` ${nameCol} ${currentVer} ${arrow} ${latestVer} ${updateType}`);
139
135
  });
140
136
 
141
- if (outdatedDeps.length > 10) {
142
- log(chalk.gray(`\n ... and ${outdatedDeps.length - 10} more\n`));
143
- } else {
144
- log('');
145
- }
137
+ log('');
146
138
  } else {
147
139
  logSection('✅ OUTDATED PACKAGES');
148
140
  log(chalk.green(' All packages are up to date!\n'));
@@ -165,7 +157,6 @@ function displayResults(unusedDeps, outdatedDeps, score, totalDeps) {
165
157
  log(' Clean up unused dependencies:\n');
166
158
 
167
159
  const packagesToRemove = unusedDeps
168
- .slice(0, 10)
169
160
  .map(d => d.name)
170
161
  .join(' ');
171
162