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

postcss-merge-longhand

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-merge-longhand - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.2
* Fixes an issue where properties with the `inherit` keyword were being merged.
# 1.0.1

@@ -2,0 +6,0 @@

20

dist/lib/canMerge.js
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
value: true
});
var important = function important(node) {
return node.important;
return node.important;
};
var unimportant = function unimportant(node) {
return !node.important;
return !node.important;
};
var hasInherit = function hasInherit(node) {
return ~node.value.indexOf('inherit');
};
exports['default'] = function () {
for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
props[_key] = arguments[_key];
}
for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
props[_key] = arguments[_key];
}
return props.every(important) || props.every(unimportant);
if (props.some(hasInherit)) {
return false;
}
return props.every(important) || props.every(unimportant);
};
module.exports = exports['default'];
{
"name": "postcss-merge-longhand",
"version": "1.0.1",
"version": "1.0.2",
"description": "Merge longhand properties into shorthand with PostCSS.",

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

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