Socket
Socket
Sign inDemoInstall

postcss-nesting

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-nesting - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

lib/transform.js

4

CHANGELOG.md
# 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",

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