We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8216116 commit b8d988bCopy full SHA for b8d988b
1 file changed
server/utils/markdown.ts
@@ -141,7 +141,8 @@ export function generatePackageMarkdown(options: PackageMarkdownOptions): string
141
metaParts.push(`**Version:** ${version.version}`)
142
143
if (pkg.license) {
144
- metaParts.push(`**License:** ${escapeMarkdown(pkg.license)}`)
+ const licenseText = typeof pkg.license === 'string' ? pkg.license : pkg.license.type
145
+ metaParts.push(`**License:** ${escapeMarkdown(licenseText)}`)
146
}
147
148
if (pkg.time?.modified) {
0 commit comments