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 2.0.0 to 2.0.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 2.0.1
* Fixed a crash when the module was trying to retrieve declarations
from a rule which contained comments in it.
# 2.0.0

@@ -2,0 +7,0 @@

6

dist/lib/decl/border-base.js

@@ -35,3 +35,3 @@ 'use strict';

explode: function explode(rule) {
rule.eachDecl(declaration, function (decl) {
rule.walkDecls(declaration, function (decl) {
var values = _postcss.list.space(decl.value);

@@ -47,3 +47,3 @@ wsc.forEach(function (prop, index) {

});
decl.removeSelf();
decl.remove();
});

@@ -79,3 +79,3 @@ },

props.forEach(function (prop) {
return prop.removeSelf();
return prop.remove();
});

@@ -82,0 +82,0 @@ }

@@ -41,3 +41,3 @@ 'use strict';

explode: function explode(rule) {
rule.eachDecl('border', function (decl) {
rule.walkDecls('border', function (decl) {
trbl.forEach(function (prop) {

@@ -49,3 +49,3 @@ var node = (0, _clone2['default'])(decl);

decl.removeSelf();
decl.remove();
});

@@ -82,3 +82,3 @@ },

props.forEach(function (prop) {
return prop.removeSelf();
return prop.remove();
});

@@ -131,3 +131,3 @@ })();

props.forEach(function (prop) {
return prop.removeSelf();
return prop.remove();
});

@@ -134,0 +134,0 @@ }

@@ -46,3 +46,3 @@ 'use strict';

explode: function explode(rule) {
rule.eachDecl(property, function (decl) {
rule.walkDecls(property, function (decl) {
var values = (0, _parseTrbl2['default'])(decl.value);

@@ -55,3 +55,3 @@ trbl.forEach(function (direction, index) {

});
decl.removeSelf();
decl.remove();
});

@@ -82,3 +82,3 @@ },

props.forEach(function (prop) {
return prop.removeSelf();
return prop.remove();
});

@@ -101,3 +101,3 @@ }

rules.slice(0, 3).forEach(function (rule) {
return rule.removeSelf();
return rule.remove();
});

@@ -104,0 +104,0 @@ rules[3].value = (0, _minifyTrbl2['default'])(_mergeValues2['default'].apply(undefined, rules));

@@ -26,3 +26,3 @@ 'use strict';

explode: function explode(rule) {
rule.eachDecl('columns', function (decl) {
rule.walkDecls('columns', function (decl) {
var values = _postcss.list.space(decl.value).sort();

@@ -47,3 +47,3 @@ if (values.length === 1) {

});
decl.removeSelf();
decl.remove();
});

@@ -72,3 +72,3 @@ },

props.forEach(function (prop) {
return prop.removeSelf();
return prop.remove();
});

@@ -75,0 +75,0 @@ decls = decls.filter(function (node) {

@@ -9,3 +9,3 @@ 'use strict';

return rule.nodes.filter(function (n) {
return ~n.prop.indexOf(prop);
return n.prop && ~n.prop.indexOf(prop);
}).pop();

@@ -12,0 +12,0 @@ };

{
"name": "postcss-merge-longhand",
"version": "2.0.0",
"version": "2.0.1",
"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