postcss-sorting
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -7,3 +7,3 @@ module.exports = function getContainingNode(node) { | ||
// postcss-styled-syntax: declarations are children of Root node | ||
if (node.parent?.type === 'root' && node.parent?.raws.styledSyntaxIsComponent) { | ||
if (node.parent?.type === 'root' && node.parent?.raws.isRuleLike) { | ||
return node.parent; | ||
@@ -10,0 +10,0 @@ } |
@@ -13,3 +13,3 @@ const atRuleExcludes = ['function', 'if', 'else', 'for', 'each', 'while']; | ||
// postcss-styled-syntax: Interpolations at the end of node | ||
if (node.raws.after.includes('${')) { | ||
if (node.raws.after?.includes('${')) { | ||
return false; | ||
@@ -16,0 +16,0 @@ } |
{ | ||
"name": "postcss-sorting", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "PostCSS plugin to keep rules and at-rules content in order.", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"postcss-html": "^1.5.0", | ||
"postcss-styled-syntax": "^0.1.0", | ||
"postcss-styled-syntax": "^0.4.0", | ||
"prettier": "^2.8.1", | ||
@@ -41,0 +41,0 @@ "prettier-config-hudochenkov": "^0.3.0" |
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
49208