postcss-styl
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -1233,2 +1233,3 @@ "use strict" | ||
atRule.raws = atRuleRaws | ||
atRule.cssLiteral = true | ||
@@ -1235,0 +1236,0 @@ parent.nodes.push(atRule) |
@@ -19,3 +19,6 @@ "use strict" | ||
const afterTokens = | ||
token && token.value !== ";" && token.value !== "}" | ||
token && | ||
token.value !== ";" && | ||
token.value !== "}" && | ||
token.value !== "{" | ||
? stripStartLineComments(after) | ||
@@ -22,0 +25,0 @@ : after |
@@ -12,3 +12,3 @@ "use strict" | ||
function isCssLiteral(node) { | ||
return node.type === "atrule" && node.name === "css" | ||
return node.type === "atrule" && node.name === "css" && node.cssLiteral | ||
} | ||
@@ -24,3 +24,6 @@ | ||
} | ||
if (!node.nodes || !node.nodes.length) { | ||
if ( | ||
!node.nodes || | ||
!node.nodes.some(n => n.type !== "comment" || !n.raws.inline) | ||
) { | ||
// empty | ||
@@ -27,0 +30,0 @@ return false |
{ | ||
"name": "postcss-styl", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "PostCSS parser plugin for converting Stylus syntax to PostCSS AST.", | ||
@@ -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
120588
3676