Skip to content

Commit

Permalink
feat(docs): add package name to version string
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Dec 17, 2024
1 parent 4ba59c3 commit 135c147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');

Expand Down

0 comments on commit 135c147

Please sign in to comment.