Socket
Socket
Sign inDemoInstall

postcss-nested

Package Overview
Dependencies
1
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 2.0
* Use PostCSS 6 API.
## 1.0.1

@@ -2,0 +5,0 @@ * Clean up npm package.

10

index.js

@@ -19,3 +19,3 @@ var postcss = require('postcss');

if ( comment && comment.type === 'comment' ) {
return comment.moveAfter(after);
return after.after(comment);
} else {

@@ -41,3 +41,5 @@ return after;

var clone = rule.clone({ nodes: [] });
for ( var i = 0; i < children.length; i++ ) children[i].moveTo(clone);
for ( var i = 0; i < children.length; i++ ) {
clone.append(children[i]);
}
atrule.prepend(clone);

@@ -55,3 +57,3 @@ }

after = pickComment(child.prev(), after);
after = child.moveAfter(after);
after.after(child);
} else if ( child.type === 'atrule' ) {

@@ -62,3 +64,3 @@ if ( bubble.indexOf(child.name) !== -1 ) {

after = pickComment(child.prev(), after);
after = child.moveAfter(after);
after.after(child);
}

@@ -65,0 +67,0 @@ }

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

@@ -16,3 +16,3 @@ "keywords": [

"dependencies": {
"postcss": "^5.2.17"
"postcss": "^6.0.1"
},

@@ -22,3 +22,3 @@ "devDependencies": {

"eslint-config-postcss": "^2.0.2",
"jest": "^18.0.0"
"jest": "^20.0.0"
},

@@ -25,0 +25,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc