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 c3b5986 commit e1a28daCopy full SHA for e1a28da
server/api/registry/license-change/[...pkg].get.ts
@@ -55,8 +55,8 @@ export default defineCachedEventHandler(
55
version === 'latest' ? versions.length - 1 : versions.findIndex(v => v.version === version)
56
57
const previousVersionIndex = currentVersionIndex - 1
58
- const currentLicense = versions[currentVersionIndex]?.license || 'UNKNOWN'
59
- const previousLicense = versions[previousVersionIndex]?.license || 'UNKNOWN'
+ const currentLicense = String(versions[currentVersionIndex]?.license || 'UNKNOWN')
+ const previousLicense = String(versions[previousVersionIndex]?.license || 'UNKNOWN')
60
61
if (currentLicense !== previousLicense) {
62
change = {
0 commit comments