From 38c3553221ef3803c09edbb9285068de4ad5ae4d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 4 Oct 2017 17:02:53 +0300 Subject: [PATCH] minor fix/cleanup... Signed-off-by: Alex A. Naanou --- features.js | 14 ++++++++++++-- package.json | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/features.js b/features.js index e2c3f17..32c8282 100755 --- a/features.js +++ b/features.js @@ -924,6 +924,16 @@ var FeatureSetProto = { //------------------------------------------------------------- + + // remove exclusivity tags that were resolved... + var isMissing = function(f){ + return !( + // feature is a resolvable exclusive tag... + (exclusive[f] || []).length > 0 + // feature was resolved... + && exclusive[f] + .filter(function(f){ return list.indexOf(f) >= 0 }) + .length > 0) } return { input: lst, @@ -940,8 +950,8 @@ var FeatureSetProto = { || missing.length > 0 || missing_suggested.length > 0) ? { - missing: missing, - missing_suggested: missing_suggested, + missing: missing.filter(isMissing), + missing_suggested: missing_suggested.filter(isMissing), conflicts: conflicts, // fatal stuff... diff --git a/package.json b/package.json index 55f281d..cfbe79e 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.3.0", + "version": "3.3.1", "description": "", "main": "features.js", "scripts": {