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

postcss-merge-idents

Package Overview
Dependencies
Maintainers
7
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-merge-idents - npm Package Compare versions

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

33

dist/index.js

@@ -8,6 +8,2 @@ "use strict";

var _has = _interopRequireDefault(require("has"));
var _postcss = require("postcss");
var _postcssValueParser = _interopRequireDefault(require("postcss-value-parser"));

@@ -23,3 +19,3 @@

return function recurse(key) {
if ((0, _has.default)(obj, key) && obj[key] !== key && stack) {
if (Object.prototype.hasOwnProperty.call(obj, key) && obj[key] !== key && stack) {
stack--;

@@ -89,15 +85,22 @@ return recurse(obj[key]);

var _default = (0, _postcss.plugin)('postcss-merge-idents', () => {
return css => {
mergeAtRules(css, [{
atrule: /keyframes/i,
decl: /animation/i
}, {
atrule: /counter-style/i,
decl: /(list-style|system)/i
}]);
function pluginCreator() {
return {
postcssPlugin: 'postcss-merge-idents',
OnceExit(css) {
mergeAtRules(css, [{
atrule: /keyframes/i,
decl: /animation/i
}, {
atrule: /counter-style/i,
decl: /(list-style|system)/i
}]);
}
};
});
}
pluginCreator.postcss = true;
var _default = pluginCreator;
exports.default = _default;
module.exports = exports.default;
{
"name": "postcss-merge-idents",
"version": "4.0.0-nightly.2020.1.9",
"version": "4.0.0-nightly.2020.1.11",
"description": "Merge keyframe and counter style identifiers.",

@@ -31,5 +31,3 @@ "main": "dist/index.js",

"cssnano-utils": "nightly",
"has": "^1.0.3",
"postcss": "^7.0.16",
"postcss-value-parser": "^3.3.1"
"postcss-value-parser": "^4.1.0"
},

@@ -41,3 +39,9 @@ "bugs": {

"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