From 135c1479c6590dc117b132b99293515212961704 Mon Sep 17 00:00:00 2001 From: almostSouji Date: Tue, 17 Dec 2024 14:57:05 +0100 Subject: [PATCH] feat(docs): add package name to version string --- src/functions/docs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/docs.ts b/src/functions/docs.ts index f652c15..42d0de4 100644 --- a/src/functions/docs.ts +++ b/src/functions/docs.ts @@ -205,7 +205,7 @@ function formatItem(_item: any, _package: string, version: string, member?: stri parts.push(underline(bold(hyperlink(item.displayName, itemLink)))); const head = `<:${emojiName}:${emojiId}>`; - const versionString = inlineCode(`@${version}`); + const versionString = inlineCode(`${_package}@${version}`); const tail = sourceUrl ? ` ${hyperlink(versionString, sourceUrl, 'source code')}` : versionString; const middlePart = item.isDeprecated ? strikethrough(parts.join(' ')) : parts.join(' ');