Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-merge-rules

Package Overview
Dependencies
Maintainers
7
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-merge-rules - npm Package Compare versions

Comparing version 4.0.0-nightly.2020.1.9 to 4.0.0-nightly.2020.1.11

36

dist/index.js

@@ -10,4 +10,2 @@ "use strict";

var _postcss = _interopRequireDefault(require("postcss"));
var _vendors = _interopRequireDefault(require("vendors"));

@@ -422,16 +420,28 @@

var _default = _postcss.default.plugin('postcss-merge-rules', () => {
return (css, result) => {
const resultOpts = result.opts || {};
const browsers = (0, _browserslist.default)(null, {
stats: resultOpts.stats,
path: __dirname,
env: resultOpts.env
});
const compatibilityCache = {};
css.walkRules(selectorMerger(browsers, compatibilityCache));
function pluginCreator() {
return {
postcssPlugin: 'postcss-merge-rules',
prepare(result) {
const resultOpts = result.opts || {};
const browsers = (0, _browserslist.default)(null, {
stats: resultOpts.stats,
path: __dirname,
env: resultOpts.env
});
const compatibilityCache = {};
return {
OnceExit(css) {
css.walkRules(selectorMerger(browsers, compatibilityCache));
}
};
}
};
});
}
pluginCreator.postcss = true;
var _default = pluginCreator;
exports.default = _default;
module.exports = exports.default;
{
"name": "postcss-merge-rules",
"version": "4.0.0-nightly.2020.1.9",
"version": "4.0.0-nightly.2020.1.11",
"description": "Merge CSS rules with PostCSS.",

@@ -30,7 +30,6 @@ "main": "dist/index.js",

"dependencies": {
"browserslist": "^4.6.0",
"browserslist": "^4.16.0",
"caniuse-api": "^3.0.0",
"cssnano-utils": "nightly",
"postcss": "^7.0.16",
"postcss-selector-parser": "^3.1.1",
"postcss-selector-parser": "^6.0.4",
"vendors": "^1.0.3"

@@ -43,3 +42,9 @@ },

"node": ">=10.13.0"
},
"devDependencies": {
"postcss": "^8.2.1"
},
"peerDependencies": {
"postcss": "^8.2.1"
}
}
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