Comparing version 0.0.2 to 0.0.3
@@ -83,2 +83,4 @@ 'use strict'; | ||
if (dep.elems) { | ||
res.push({ block: dep.block }); | ||
dep.elems.forEach(function (elem, idx) { | ||
@@ -107,2 +109,4 @@ if (elem === '') return; | ||
if (dep.mods) { | ||
res.push({ block: dep.block }); | ||
if (Array.isArray(dep.mods)) { | ||
@@ -120,4 +124,5 @@ dep.mods.forEach(function (mod) { | ||
dep.mods[mod].push(true); | ||
dep.mods[mod].forEach(function (value) { | ||
res.push(extend({ modName: mod, modVal: value }, dep)); | ||
value !== true && res.push(extend({ modName: mod, modVal: value }, dep)); | ||
}); | ||
@@ -124,0 +129,0 @@ }); |
@@ -180,3 +180,3 @@ 'use strict'; | ||
if (modifier.block === block && modifier.modName === modName && ignoreVals.indexOf(modifier.modVal) === -1) { | ||
if (modifier.block === block && modifier.modName === modName && ignoreVals.indexOf(modifier.modVal) === -1 && modifier.modVal !== true) { | ||
dependencyGraph.addDependency(modifier, booleanModifier, { order: 'blockBooleanModifierBeforeBlockModifier' }); | ||
@@ -328,3 +328,3 @@ } | ||
if (modifier.block === block && elem && modifier.elem === elem && modifier.modName === modName && ignoreVals.indexOf(modifier.modVal) === -1) { | ||
if (modifier.block === block && elem && modifier.elem === elem && modifier.modName === modName && ignoreVals.indexOf(modifier.modVal) === -1 && modifier.modVal !== true) { | ||
dependencyGraph.addDependency(modifier, booleanModifier, { order: 'elementBooleanModifierBeforeElementModifier' }); | ||
@@ -331,0 +331,0 @@ } |
@@ -127,2 +127,3 @@ 'use strict'; | ||
var declarationEntityId = (0, _bemNaming.stringify)(declarationEntity); | ||
var entities = []; | ||
var beforeEntities = [], | ||
@@ -144,5 +145,5 @@ afterEntities = []; | ||
if (declarationEntityId === entityId) continue; | ||
if (visitedIds.has(entityId)) continue; | ||
// if (visitedIds.has(entityId)) continue; | ||
visitedIds.add(entityId); | ||
// visitedIds.add(entityId); | ||
@@ -149,0 +150,0 @@ if (order) { |
{ | ||
"name": "@bem/deps", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
83197
1374