@capriza/as-inspector
Advanced tools
Comparing version 0.2.63 to 0.2.64
{ | ||
"name": "@capriza/as-inspector", | ||
"version": "0.2.63", | ||
"version": "0.2.64", | ||
"description": "Capriza AS inspector", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -53,2 +53,3 @@ const path = require('path'); | ||
//adding id to the transformed approval - when inspector does actions, it will have id | ||
if(!ap.error && !ap.id) { | ||
@@ -60,9 +61,12 @@ ap.id = ap.private.id; | ||
//add valid approvals to LocalAPI.approvals: | ||
if(approvalsObj.approvals && approvalsObj.approvals.length > 0) approvalsObj.approvals.forEach(ap=>{ | ||
//add valid approvals to LocalAPI.approvals: | ||
if (approvalsObj.approvals && approvalsObj.approvals.length > 0) approvalsObj.approvals.forEach(ap => { | ||
//handle approved/rejected: | ||
if (ap.deleted){ | ||
if (!ap.error && !ap.id) { | ||
ap.id = ap.private.id; | ||
} | ||
if (ap.deleted) { | ||
delete LocalAPI.approvals[ap.id]; | ||
}else{ | ||
LocalAPI.approvals[ap.id]=ap; | ||
} else if (!ap.error) { | ||
LocalAPI.approvals[ap.id] = ap; | ||
} | ||
@@ -69,0 +73,0 @@ }); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21754362
15764
6