npmguard-cli 0.5.2 → 0.5.3

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.
@@ -81,9 +81,13 @@ export async function checkCommand(projectPath, auditSource) {
81
81
  capsCol = chalk.gray("-");
82
82
  notAuditedCount++;
83
83
  }
84
+ // Truncate long IPFS URLs so the table stays readable
85
+ const installedCol = dep.installed.startsWith("http")
86
+ ? chalk.yellow("IPFS " + shortCid(dep.installed.split("/").pop()))
87
+ : dep.installed;
84
88
  table.push([
85
89
  dep.name,
86
- dep.installed,
90
+ installedCol,
87
91
  dep.latest ?? dep.installed,
88
92
  verdictCol,
89
93
  capsCol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npmguard-cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "description": "Check npm packages against NpmGuard security audits on ENS before installing",
6
6
  "bin": "./dist/index.js",