postcss-html
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -33,3 +33,3 @@ 'use strict'; | ||
index = style.startIndex + style.content.length; | ||
document.push(root); | ||
document.nodes.push(root); | ||
}); | ||
@@ -45,2 +45,19 @@ document.raws.afterEnd = source.slice(index); | ||
document.each = callback => { | ||
let wasBreak, lastResult; | ||
document.nodes.forEach(node => { | ||
const result = node.each(callback); | ||
if ( result === false ) { | ||
wasBreak = true; | ||
} else { | ||
lastResult = result; | ||
} | ||
}); | ||
if (wasBreak) { | ||
return false; | ||
} else { | ||
return lastResult; | ||
} | ||
}; | ||
return document; | ||
@@ -47,0 +64,0 @@ } |
{ | ||
"name": "postcss-html", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "PostCSS Syntax for parsing HTML / Markdown / Vue Component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
13596
333