postcss-merge-longhand
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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 @@ |
@@ -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", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29521
0