@greenarmor/ges-scoring-engine 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -132,7 +132,9 @@ export function computeOverallScore(frameworkScores) {
|
|
|
132
132
|
let totalWeight = 0;
|
|
133
133
|
let weightedSum = 0;
|
|
134
134
|
for (const s of scores) {
|
|
135
|
-
|
|
135
|
+
if (s.total_controls === 0)
|
|
136
|
+
continue;
|
|
137
|
+
const weight = s.total_controls;
|
|
136
138
|
weightedSum += s.score * weight;
|
|
137
139
|
totalWeight += weight;
|
|
138
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@greenarmor/ges-core": "1.2.
|
|
3
|
+
"@greenarmor/ges-core": "1.2.1"
|
|
4
4
|
},
|
|
5
5
|
"description": "GESF Scoring Engine - Compliance scoring across frameworks",
|
|
6
6
|
"devDependencies": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"name": "@greenarmor/ges-scoring-engine",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
|
-
"version": "1.2.
|
|
27
|
+
"version": "1.2.1",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc",
|
|
30
30
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|