Comparing version 3.1.2 to 3.2.0
@@ -0,1 +1,4 @@ | ||
# 3.2.0 - 23 May. 2021 | ||
* Add `aliases` option to support processing Custom Properties (CSS Variables). **Thanks @elchininet** | ||
# 3.1.2 - 04 Feb. 2021 | ||
@@ -2,0 +5,0 @@ * Update `README.md`. |
@@ -25,2 +25,3 @@ 'use strict' | ||
addKey('useCalc', false) | ||
addKey('aliases', {}) | ||
@@ -27,0 +28,0 @@ // default strings map |
@@ -146,3 +146,4 @@ /* | ||
return context.util.each(plugin.processors, function (processor) { | ||
if (node.prop.match(processor.expr)) { | ||
const alias = context.config.aliases[node.prop] | ||
if ((alias || node.prop).match(processor.expr)) { | ||
const raw = node.raws.value && node.raws.value.raw ? node.raws.value.raw : node.value | ||
@@ -153,3 +154,3 @@ const state = context.util.saveComments(raw) | ||
pair.value = context.util.restoreComments(state) | ||
if (pair.prop !== node.prop || pair.value !== raw) { | ||
if ((!alias && pair.prop !== node.prop) || pair.value !== raw) { | ||
flipped++ | ||
@@ -156,0 +157,0 @@ node.prop = pair.prop |
{ | ||
"author": "Mohammad Younes", | ||
"name": "rtlcss", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)", | ||
@@ -6,0 +6,0 @@ "homepage": "https://rtlcss.com/", |
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
66079
1508