Comparing version 2.8.1 to 2.10.2
@@ -142,2 +142,7 @@ "use strict"; | ||
compute_status() { | ||
if (this.attested && | ||
this.attestationStatus && | ||
!['failed', 'passed'].includes(this.attestationStatus)) { | ||
throw new Error(`Attestation for control ${this.wraps.id} exists with invalid status: ${this.attestationStatus}`); | ||
} | ||
if (!this.status_list || this.status_list.includes('error')) { | ||
@@ -158,13 +163,2 @@ return profileError; | ||
} | ||
else if (this.attested) { | ||
if (this.attestationStatus === 'failed') { | ||
return 'Failed'; | ||
} | ||
else if (this.attestationStatus === 'passed') { | ||
return 'Passed'; | ||
} | ||
else { | ||
throw new Error(`Attestation for control ${this.wraps.id} exists with invalid status: ${this.attestationStatus}`); | ||
} | ||
} | ||
else if (this.status_list.includes('skipped')) { | ||
@@ -171,0 +165,0 @@ return 'Not Reviewed'; |
{ | ||
"name": "inspecjs", | ||
"version": "2.8.1", | ||
"version": "2.10.2", | ||
"description": "Schema definitions, classes on top, and utilities to deal with HDF files", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174593
3677