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 092af39 commit 4935498Copy full SHA for 4935498
1 file changed
packages/node-modules-inspector/src/app/state/payload.ts
@@ -215,7 +215,7 @@ export function getNpmMetaLatest(input: PackageNode | string): NpmMetaLatest | n
215
const pkg = payloads.main.get(input)
216
if (!pkg)
217
return null
218
- return [pkg.resolved.npmMetaLatest, rawNpmMetaLatest.value.get(pkg.spec)]
+ return [pkg.resolved.npmMetaLatest, rawNpmMetaLatest.value.get(pkg.name)]
219
.filter(x => !!x)
220
.sort((a, b) => b.fetechedAt - a.fetechedAt)[0] || null
221
}
0 commit comments