postcss-nesting
Advanced tools
Comparing version 4.2.0 to 4.2.1
# Changes to PostCSS Nesting | ||
### 4.2.1 (September 19, 2017) | ||
- Updated: Exposing the transform function as its own for postcss-extend | ||
### 4.2.0 (September 18, 2017) | ||
@@ -4,0 +8,0 @@ |
22
index.js
'use strict'; | ||
// tooling | ||
const postcss = require('postcss'); | ||
const transformBubblingAtrule = require('./lib/transform-bubbling-atrule'); | ||
const transformNestingAtRule = require('./lib/transform-nesting-atrule'); | ||
const transformNestingRule = require('./lib/transform-nesting-rule'); | ||
const postcss = require('postcss'); | ||
const transform = require('./lib/transform'); | ||
@@ -13,17 +11,1 @@ // plugin | ||
}); | ||
function transform(node) { | ||
// console.log('walk', [node.type], [node.name || node.selector || node.prop || 'root'], node.nodes ? `length: ${node.nodes.length}` : `value: "${node.value}"`); | ||
if (transformBubblingAtrule.test(node)) { | ||
// conditionally transform a bubbling atrule | ||
transformBubblingAtrule(node); | ||
} else if (transformNestingAtRule.test(node)) { | ||
// conditionally transform a nesting atrule | ||
node = transformNestingAtRule(node); // eslint-disable-line no-param-reassign | ||
} else if (transformNestingRule.test(node)) { | ||
// conditionally transform a nesting rule | ||
transformNestingRule(node); | ||
} | ||
} |
{ | ||
"name": "postcss-nesting", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Nest style and media rules inside each another, following the CSS Nesting Module Level 3 specification", | ||
@@ -29,3 +29,3 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"devDependencies": { | ||
"eslint": "^4.7.0", | ||
"eslint": "^4.7.1", | ||
"eslint-config-dev": "^2.0.0", | ||
@@ -32,0 +32,0 @@ "postcss-tape": "^2.1.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
14
193
20645