Skip to content

Commit b60f028

Browse files
committed
text update
1 parent e04dc92 commit b60f028

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/commands/info/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ async function fetchPackageData (pkgName, pkgVersion, { includeAllIssues }, spin
177177
// Link to issues list
178178
const format = new ChalkOrMarkdown(!!outputMarkdown)
179179
const url = `https://socket.dev/npm/package/${pkgName}/overview/${pkgVersion}`
180-
console.log('\nDetailed info on socket.dev: ' + format.hyperlink(`${pkgName} v${pkgVersion}`, url, { fallbackToUrl: true }))
180+
if (pkgVersion === 'latest') {
181+
console.log('\nDetailed info on socket.dev: ' + format.hyperlink(`${pkgName}`, url, { fallbackToUrl: true }))
182+
} else {
183+
console.log('\nDetailed info on socket.dev: ' + format.hyperlink(`${pkgName} v${pkgVersion}`, url, { fallbackToUrl: true }))
184+
}
181185
if (!outputMarkdown) {
182186
console.log(chalk.dim('\nOr rerun', chalk.italic(name), 'using the', chalk.italic('--json'), 'flag to get full JSON output'))
183187
}

0 commit comments

Comments
 (0)