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

rtlcss

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

rtlcss - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

3

CHANGELOG.md

@@ -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

5

lib/rtlcss.js

@@ -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/",

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