postcss-merge-idents
Advanced tools
Comparing version 4.0.0-nightly.2020.1.9 to 4.0.0-nightly.2020.1.11
@@ -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" | ||
} | ||
} |
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
5871
3
86
1
+ Addedpostcss-value-parser@4.2.0(transitive)
- Removedhas@^1.0.3
- Removedpostcss@^7.0.16
- Removedhas@1.0.4(transitive)
- Removedpicocolors@0.2.1(transitive)
- Removedpostcss@7.0.39(transitive)
- Removedpostcss-value-parser@3.3.1(transitive)
- Removedsource-map@0.6.1(transitive)
Updatedpostcss-value-parser@^4.1.0