mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix ranges issue
This commit is contained in:
parent
15785fad73
commit
6b2db6dace
6 changed files with 128 additions and 4 deletions
|
|
@ -14,6 +14,7 @@ export async function auditChanges(changes) {
|
|||
);
|
||||
|
||||
for (const change of changes) {
|
||||
console.log("**** Auditing change:", change);
|
||||
const malwarePackage = malwarePackages.find(
|
||||
(pkg) => pkg.name === change.name && pkg.version === change.version
|
||||
);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ async function getMalwareDatabase() {
|
|||
|
||||
function isMalwareStatus(status) {
|
||||
let malwareStatus = status.toUpperCase();
|
||||
return malwareStatus === MALWARE_STATUS_MALWARE;
|
||||
return malwareStatus === MALWARE_STATUS_MALWARE
|
||||
|| malwareStatus === MALWARE_STATUS_TELEMETRY;
|
||||
}
|
||||
|
||||
export const MALWARE_STATUS_OK = "OK";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue