Socket
Socket
Sign inDemoInstall

postcss-nested

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-nested - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

4

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 5.0.4
* Fixed nested `&` at the tail (by Raphael Luba).
* Fixed docs (by Samuel Charpentier).
## 5.0.3

@@ -5,0 +9,0 @@ * Fixed compability with Autoprefixer by adding `@-webkit-keyframes` support.

8

index.js

@@ -135,3 +135,3 @@ let parser = require('postcss-selector-parser')

postcssPlugin: 'postcss-nested',
RuleExit (rule, { Rule }) {
Rule (rule, { Rule }) {
let unwrapped = false

@@ -156,4 +156,2 @@ let after = rule

} else if (child.type === 'atrule') {
copyDeclarations = false
if (declarations.length) {

@@ -177,2 +175,3 @@ after = pickDeclarations(rule.selector, declarations, after, Rule)

} else if (bubble[child.name]) {
copyDeclarations = true
unwrapped = true

@@ -184,2 +183,3 @@ atruleChilds(rule, child, true)

} else if (unwrap[child.name]) {
copyDeclarations = true
unwrapped = true

@@ -190,2 +190,4 @@ atruleChilds(rule, child, false)

after = child
} else if (copyDeclarations) {
declarations.push(child)
}

@@ -192,0 +194,0 @@ } else if (child.type === 'decl' && copyDeclarations) {

{
"name": "postcss-nested",
"version": "5.0.3",
"version": "5.0.4",
"description": "PostCSS plugin to unwrap nested rules like how Sass does it",

@@ -5,0 +5,0 @@ "keywords": [

@@ -30,3 +30,2 @@ # PostCSS Nested

--font: 16px
}
}

@@ -96,3 +95,3 @@ }

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
**Step 2:** Check your project for existing PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`

@@ -99,0 +98,0 @@ or `postcss` in bundle config.

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