Socket
Socket
Sign inDemoInstall

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.0 to 3.1.1

5

CHANGELOG.md

@@ -0,3 +1,8 @@

# 3.1.1 - 30 Jan. 2021
* Fixes `TypeError` when placing value directive before `!important`. [#218](https://github.com/MohammadYounes/rtlcss/issues/218)
# 3.1.0 - 30 Jan. 2021
* Use `strict` mode across all files. **Thanks @XhmikosR**
* Decrease package size by around 6%. **Thanks @XhmikosR**
* Add guards against prototype pollution. **Thanks @XhmikosR**
* Allow value directives to be placed any where inside the declaration value.

@@ -4,0 +9,0 @@ * Handle value directives placed after `!important`.

4

lib/rtlcss.js

@@ -124,3 +124,3 @@ /*

const expr = context.util.regexDirective(directive.name)
if (expr.test(`${node.raws.between}${hasRawValue ? node.raws.value.raw : ''}${node.important ? node.raws.important : ''}`)) {
if (expr.test(`${node.raws.between}${hasRawValue ? node.raws.value.raw : ''}${node.important && node.raws.important ? node.raws.important : ''}`)) {
expr.lastIndex = 0

@@ -130,3 +130,3 @@ if (directive.action(node, expr, context)) {

node.raws.between = context.util.trimDirective(node.raws.between)
if (node.important) {
if (node.important && node.raws.important) {
node.raws.important = context.util.trimDirective(node.raws.important)

@@ -133,0 +133,0 @@ }

{
"author": "Mohammad Younes",
"name": "rtlcss",
"version": "3.1.0",
"version": "3.1.1",
"description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)",

@@ -34,3 +34,3 @@ "homepage": "https://rtlcss.com/",

"mkdirp": "^1.0.4",
"postcss": "^8.2.1",
"postcss": "^8.2.4",
"strip-json-comments": "^3.1.1"

@@ -43,3 +43,3 @@ },

"peerDependencies": {
"postcss": "^8.2.1"
"postcss": "^8.2.4"
},

@@ -58,2 +58,2 @@ "scripts": {

]
}
}
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