Skip to content

Commit 143091d

Browse files
committed
Fix report
1 parent afe8228 commit 143091d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/commands/report/view.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ export function formatReportDataOutput (data, { name, outputJson, outputMarkdown
164164
console.log(JSON.stringify(data, undefined, 2))
165165
} else {
166166
const format = new ChalkOrMarkdown(!!outputMarkdown)
167-
const url = `https://socket.dev/npm/reports/${encodeURIComponent(reportId)}`
168-
169-
console.log('\nDetailed info on socket.dev: ' + format.hyperlink(reportId, url, { fallbackToUrl: true }))
167+
console.log('\nDetailed info on socket.dev: ' + format.hyperlink(reportId, data.url, { fallbackToUrl: true }))
170168
if (!outputMarkdown) {
171169
console.log(chalk.dim('\nOr rerun', chalk.italic(name), 'using the', chalk.italic('--json'), 'flag to get full JSON output'))
172170
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)