🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cssnano-utils

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssnano-utils - npm Package Compare versions

Comparing version

to
3.0.0

8

dist/getArguments.js

@@ -9,3 +9,5 @@ "use strict";

function getArguments(node) {
return node.nodes.reduce((list, child) => {
const list = [[]];
for (const child of node.nodes) {
if (child.type !== 'div') {

@@ -16,7 +18,7 @@ list[list.length - 1].push(child);

}
}
return list;
}, [[]]);
return list;
}
module.exports = exports.default;

@@ -6,20 +6,14 @@ "use strict";

});
Object.defineProperty(exports, "rawCache", {
Object.defineProperty(exports, "getArguments", {
enumerable: true,
get: function () {
return _rawCache.default;
return _getArguments.default;
}
});
Object.defineProperty(exports, "getMatch", {
Object.defineProperty(exports, "rawCache", {
enumerable: true,
get: function () {
return _getMatch.default;
return _rawCache.default;
}
});
Object.defineProperty(exports, "getArguments", {
enumerable: true,
get: function () {
return _getArguments.default;
}
});
Object.defineProperty(exports, "sameParent", {

@@ -34,4 +28,2 @@ enumerable: true,

var _getMatch = _interopRequireDefault(require("./getMatch.js"));
var _getArguments = _interopRequireDefault(require("./getArguments.js"));

@@ -38,0 +30,0 @@

{
"name": "cssnano-utils",
"version": "2.0.1",
"version": "3.0.0",
"repository": "cssnano/cssnano",
"main": "dist/index.js",
"description": "Utility methods and plugin for cssnano projects",
"scripts": {
"prebuild": "del-cli dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepublish": "yarn build"
},
"homepage": "https://github.com/cssnano/cssnano",

@@ -29,3 +24,7 @@ "bugs": {

},
"gitHead": "28c247175032fa03f04911cde56ad82d74d211cc"
}
"scripts": {
"prebuild": "rimraf dist",
"build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
},
"readme": "# cssnano-utils\n\nUtility methods and plugin for cssnano projects\n\n## List of methods and plugin(s)\n\n| **utility methods** | **description** |\n| ------------------- | ------------------------------------------------------------------------- |\n| `rawCache` | Postcss plugin to manage the raw value formatting for generated AST nodes |\n| `getMatch` | Convert a list of keywords into a single keyword match. |\n| `getArguments` | Get a list of arguments, separated by a comma. |\n| `sameParent` | Check that two PostCSS nodes share the same parent. |\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n"
}