Comparing version 0.0.3 to 0.0.4
@@ -85,9 +85,9 @@ 'use strict'; | ||
var _iteratorNormalCompletion9 = true; | ||
var _didIteratorError9 = false; | ||
var _iteratorError9 = undefined; | ||
var _iteratorNormalCompletion7 = true; | ||
var _didIteratorError7 = false; | ||
var _iteratorError7 = undefined; | ||
try { | ||
for (var _iterator9 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { | ||
var blockDependency = _step9.value; | ||
for (var _iterator7 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { | ||
var blockDependency = _step7.value; | ||
@@ -100,12 +100,12 @@ if ((0, _bemNaming.stringify)(blockDependency) === modifierId) { | ||
} catch (err) { | ||
_didIteratorError9 = true; | ||
_iteratorError9 = err; | ||
_didIteratorError7 = true; | ||
_iteratorError7 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion9 && _iterator9.return) { | ||
_iterator9.return(); | ||
if (!_iteratorNormalCompletion7 && _iterator7.return) { | ||
_iterator7.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError9) { | ||
throw _iteratorError9; | ||
if (_didIteratorError7) { | ||
throw _iteratorError7; | ||
} | ||
@@ -119,2 +119,28 @@ } | ||
} | ||
// for (let booleanModifier of bemTypifier.blockModificators()) { | ||
// if (booleanModifier.modVal === true) { | ||
// var block = booleanModifier.block, | ||
// modName = booleanModifier.modName, | ||
// ignoreVals = []; | ||
// | ||
// for (let modifierDependency of dependencyGraph.orderedDependenciesOf(booleanModifier)) { | ||
// if (modifierDependency.block === block | ||
// && modifierDependency.modName === modName | ||
// ) { | ||
// ignoreVals.push(modifierDependency.modVal); | ||
// } | ||
// } | ||
// | ||
// for (let modifier of bemTypifier.blockModificators()) { | ||
// if (modifier.block === block | ||
// && modifier.modName === modName | ||
// && ignoreVals.indexOf(modifier.modVal) === -1 | ||
// && modifier.modVal !== true | ||
// ) { | ||
// dependencyGraph.addDependency(modifier, booleanModifier, { order: 'blockBooleanModifierBeforeBlockModifier' }); | ||
// } | ||
// } | ||
// } | ||
// } | ||
} catch (err) { | ||
@@ -140,88 +166,5 @@ _didIteratorError3 = true; | ||
try { | ||
for (var _iterator4 = bemTypifier.blockModificators()[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
var booleanModifier = _step4.value; | ||
for (var _iterator4 = bemTypifier.elementModificators()[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
var modifier = _step4.value; | ||
if (booleanModifier.modVal === true) { | ||
var block = booleanModifier.block, | ||
modName = booleanModifier.modName, | ||
ignoreVals = []; | ||
var _iteratorNormalCompletion10 = true; | ||
var _didIteratorError10 = false; | ||
var _iteratorError10 = undefined; | ||
try { | ||
for (var _iterator10 = dependencyGraph.orderedDependenciesOf(booleanModifier)[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { | ||
var modifierDependency = _step10.value; | ||
if (modifierDependency.block === block && modifierDependency.modName === modName) { | ||
ignoreVals.push(modifierDependency.modVal); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError10 = true; | ||
_iteratorError10 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion10 && _iterator10.return) { | ||
_iterator10.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError10) { | ||
throw _iteratorError10; | ||
} | ||
} | ||
} | ||
var _iteratorNormalCompletion11 = true; | ||
var _didIteratorError11 = false; | ||
var _iteratorError11 = undefined; | ||
try { | ||
for (var _iterator11 = bemTypifier.blockModificators()[Symbol.iterator](), _step11; !(_iteratorNormalCompletion11 = (_step11 = _iterator11.next()).done); _iteratorNormalCompletion11 = true) { | ||
var modifier = _step11.value; | ||
if (modifier.block === block && modifier.modName === modName && ignoreVals.indexOf(modifier.modVal) === -1 && modifier.modVal !== true) { | ||
dependencyGraph.addDependency(modifier, booleanModifier, { order: 'blockBooleanModifierBeforeBlockModifier' }); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError11 = true; | ||
_iteratorError11 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion11 && _iterator11.return) { | ||
_iterator11.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError11) { | ||
throw _iteratorError11; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError4 = true; | ||
_iteratorError4 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion4 && _iterator4.return) { | ||
_iterator4.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError4) { | ||
throw _iteratorError4; | ||
} | ||
} | ||
} | ||
var _iteratorNormalCompletion5 = true; | ||
var _didIteratorError5 = false; | ||
var _iteratorError5 = undefined; | ||
try { | ||
for (var _iterator5 = bemTypifier.elementModificators()[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
var modifier = _step5.value; | ||
var modifierId = (0, _bemNaming.stringify)(modifier), | ||
@@ -235,9 +178,9 @@ element = { block: modifier.block, elem: modifier.elem }, | ||
var _iteratorNormalCompletion12 = true; | ||
var _didIteratorError12 = false; | ||
var _iteratorError12 = undefined; | ||
var _iteratorNormalCompletion8 = true; | ||
var _didIteratorError8 = false; | ||
var _iteratorError8 = undefined; | ||
try { | ||
for (var _iterator12 = dependencyGraph.orderedDependenciesOf(element)[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) { | ||
var elementDependency = _step12.value; | ||
for (var _iterator8 = dependencyGraph.orderedDependenciesOf(element)[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { | ||
var elementDependency = _step8.value; | ||
@@ -250,12 +193,12 @@ if ((0, _bemNaming.stringify)(elementDependency) === modifierId) { | ||
} catch (err) { | ||
_didIteratorError12 = true; | ||
_iteratorError12 = err; | ||
_didIteratorError8 = true; | ||
_iteratorError8 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion12 && _iterator12.return) { | ||
_iterator12.return(); | ||
if (!_iteratorNormalCompletion8 && _iterator8.return) { | ||
_iterator8.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError12) { | ||
throw _iteratorError12; | ||
if (_didIteratorError8) { | ||
throw _iteratorError8; | ||
} | ||
@@ -269,97 +212,44 @@ } | ||
} | ||
} catch (err) { | ||
_didIteratorError5 = true; | ||
_iteratorError5 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion5 && _iterator5.return) { | ||
_iterator5.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError5) { | ||
throw _iteratorError5; | ||
} | ||
} | ||
} | ||
var _iteratorNormalCompletion6 = true; | ||
var _didIteratorError6 = false; | ||
var _iteratorError6 = undefined; | ||
try { | ||
for (var _iterator6 = bemTypifier.elementModificators()[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { | ||
var booleanModifier = _step6.value; | ||
if (booleanModifier.modVal === true) { | ||
var block = booleanModifier.block, | ||
elem = booleanModifier.elem, | ||
modName = booleanModifier.modName, | ||
ignoreVals = []; | ||
var _iteratorNormalCompletion13 = true; | ||
var _didIteratorError13 = false; | ||
var _iteratorError13 = undefined; | ||
try { | ||
for (var _iterator13 = dependencyGraph.orderedDependenciesOf(booleanModifier)[Symbol.iterator](), _step13; !(_iteratorNormalCompletion13 = (_step13 = _iterator13.next()).done); _iteratorNormalCompletion13 = true) { | ||
var modifierDependency = _step13.value; | ||
if (modifierDependency.block === block && elem && modifierDependency.elem === elem && modifierDependency.modName === modName) { | ||
ignoreVals.push(modifierDependency.modVal); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError13 = true; | ||
_iteratorError13 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion13 && _iterator13.return) { | ||
_iterator13.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError13) { | ||
throw _iteratorError13; | ||
} | ||
} | ||
} | ||
var _iteratorNormalCompletion14 = true; | ||
var _didIteratorError14 = false; | ||
var _iteratorError14 = undefined; | ||
try { | ||
for (var _iterator14 = bemTypifier.elementModificators()[Symbol.iterator](), _step14; !(_iteratorNormalCompletion14 = (_step14 = _iterator14.next()).done); _iteratorNormalCompletion14 = true) { | ||
var modifier = _step14.value; | ||
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' }); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError14 = true; | ||
_iteratorError14 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion14 && _iterator14.return) { | ||
_iterator14.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError14) { | ||
throw _iteratorError14; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
// for (let booleanModifier of bemTypifier.elementModificators()) { | ||
// if (booleanModifier.modVal === true) { | ||
// var block = booleanModifier.block, | ||
// elem = booleanModifier.elem, | ||
// modName = booleanModifier.modName, | ||
// ignoreVals = []; | ||
// | ||
// for (let modifierDependency of dependencyGraph.orderedDependenciesOf(booleanModifier)) { | ||
// if (modifierDependency.block === block | ||
// && elem | ||
// && modifierDependency.elem === elem | ||
// && modifierDependency.modName === modName | ||
// ) { | ||
// ignoreVals.push(modifierDependency.modVal); | ||
// } | ||
// } | ||
// | ||
// for (let modifier of bemTypifier.elementModificators()) { | ||
// 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' }); | ||
// } | ||
// } | ||
// } | ||
// } | ||
} catch (err) { | ||
_didIteratorError6 = true; | ||
_iteratorError6 = err; | ||
_didIteratorError4 = true; | ||
_iteratorError4 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion6 && _iterator6.return) { | ||
_iterator6.return(); | ||
if (!_iteratorNormalCompletion4 && _iterator4.return) { | ||
_iterator4.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError6) { | ||
throw _iteratorError6; | ||
if (_didIteratorError4) { | ||
throw _iteratorError4; | ||
} | ||
@@ -369,9 +259,9 @@ } | ||
var _iteratorNormalCompletion7 = true; | ||
var _didIteratorError7 = false; | ||
var _iteratorError7 = undefined; | ||
var _iteratorNormalCompletion5 = true; | ||
var _didIteratorError5 = false; | ||
var _iteratorError5 = undefined; | ||
try { | ||
for (var _iterator7 = bemTypifier.elementModificators()[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) { | ||
var modifier = _step7.value; | ||
for (var _iterator5 = bemTypifier.elementModificators()[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
var modifier = _step5.value; | ||
@@ -386,9 +276,9 @@ var modifierId = (0, _bemNaming.stringify)(modifier), | ||
var _iteratorNormalCompletion15 = true; | ||
var _didIteratorError15 = false; | ||
var _iteratorError15 = undefined; | ||
var _iteratorNormalCompletion9 = true; | ||
var _didIteratorError9 = false; | ||
var _iteratorError9 = undefined; | ||
try { | ||
for (var _iterator15 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step15; !(_iteratorNormalCompletion15 = (_step15 = _iterator15.next()).done); _iteratorNormalCompletion15 = true) { | ||
var blockDependency = _step15.value; | ||
for (var _iterator9 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) { | ||
var blockDependency = _step9.value; | ||
@@ -401,12 +291,12 @@ if ((0, _bemNaming.stringify)(blockDependency) === modifierId) { | ||
} catch (err) { | ||
_didIteratorError15 = true; | ||
_iteratorError15 = err; | ||
_didIteratorError9 = true; | ||
_iteratorError9 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion15 && _iterator15.return) { | ||
_iterator15.return(); | ||
if (!_iteratorNormalCompletion9 && _iterator9.return) { | ||
_iterator9.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError15) { | ||
throw _iteratorError15; | ||
if (_didIteratorError9) { | ||
throw _iteratorError9; | ||
} | ||
@@ -421,12 +311,12 @@ } | ||
} catch (err) { | ||
_didIteratorError7 = true; | ||
_iteratorError7 = err; | ||
_didIteratorError5 = true; | ||
_iteratorError5 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion7 && _iterator7.return) { | ||
_iterator7.return(); | ||
if (!_iteratorNormalCompletion5 && _iterator5.return) { | ||
_iterator5.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError7) { | ||
throw _iteratorError7; | ||
if (_didIteratorError5) { | ||
throw _iteratorError5; | ||
} | ||
@@ -436,9 +326,9 @@ } | ||
var _iteratorNormalCompletion8 = true; | ||
var _didIteratorError8 = false; | ||
var _iteratorError8 = undefined; | ||
var _iteratorNormalCompletion6 = true; | ||
var _didIteratorError6 = false; | ||
var _iteratorError6 = undefined; | ||
try { | ||
for (var _iterator8 = bemTypifier.elements()[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) { | ||
var _element = _step8.value; | ||
for (var _iterator6 = bemTypifier.elements()[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { | ||
var _element = _step6.value; | ||
@@ -453,9 +343,9 @@ var elementId = (0, _bemNaming.stringify)(_element), | ||
var _iteratorNormalCompletion16 = true; | ||
var _didIteratorError16 = false; | ||
var _iteratorError16 = undefined; | ||
var _iteratorNormalCompletion10 = true; | ||
var _didIteratorError10 = false; | ||
var _iteratorError10 = undefined; | ||
try { | ||
for (var _iterator16 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step16; !(_iteratorNormalCompletion16 = (_step16 = _iterator16.next()).done); _iteratorNormalCompletion16 = true) { | ||
var blockDependency = _step16.value; | ||
for (var _iterator10 = dependencyGraph.orderedDependenciesOf(block)[Symbol.iterator](), _step10; !(_iteratorNormalCompletion10 = (_step10 = _iterator10.next()).done); _iteratorNormalCompletion10 = true) { | ||
var blockDependency = _step10.value; | ||
@@ -468,12 +358,12 @@ if ((0, _bemNaming.stringify)(blockDependency) === elementId) { | ||
} catch (err) { | ||
_didIteratorError16 = true; | ||
_iteratorError16 = err; | ||
_didIteratorError10 = true; | ||
_iteratorError10 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion16 && _iterator16.return) { | ||
_iterator16.return(); | ||
if (!_iteratorNormalCompletion10 && _iterator10.return) { | ||
_iterator10.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError16) { | ||
throw _iteratorError16; | ||
if (_didIteratorError10) { | ||
throw _iteratorError10; | ||
} | ||
@@ -488,12 +378,12 @@ } | ||
} catch (err) { | ||
_didIteratorError8 = true; | ||
_iteratorError8 = err; | ||
_didIteratorError6 = true; | ||
_iteratorError6 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion8 && _iterator8.return) { | ||
_iterator8.return(); | ||
if (!_iteratorNormalCompletion6 && _iterator6.return) { | ||
_iterator6.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError8) { | ||
throw _iteratorError8; | ||
if (_didIteratorError6) { | ||
throw _iteratorError6; | ||
} | ||
@@ -500,0 +390,0 @@ } |
@@ -144,5 +144,5 @@ 'use strict'; | ||
if (declarationEntityId === entityId) continue; | ||
// if (visitedIds.has(entityId)) continue; | ||
if (visitedIds.has(entityId)) continue; | ||
// visitedIds.add(entityId); | ||
visitedIds.add(entityId); | ||
@@ -149,0 +149,0 @@ if (order) { |
{ | ||
"name": "@bem/deps", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
78696
1280