Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 839b7a3

Browse files
author
Roman Labunsky
committed
fix: fixed score for unauthenticated users
1 parent e87a9d1 commit 839b7a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/cli-renderer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ class Renderer {
9393
}
9494

9595
getScore(pkgData, weights) {
96+
this.logger.info(pkgData)
9697
let calculatedScore
9798
if (Object.keys(weights).length > 0)
9899
calculatedScore = score.calculatePackageScore(pkgData, weights, true)
99-
else calculatedScore = pkgData.source.score.final
100+
else calculatedScore = pkgData.score.final
100101
return (Number(calculatedScore) * 100).toFixed()
101102
}
102103

0 commit comments

Comments
 (0)