Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-sorting

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-sorting - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

2

lib/getContainingNode.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc