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 0.5.0 to 0.6.0

0

CLI.md

@@ -0,0 +0,0 @@ RTLCSS CLI

4

lib/rules.js

@@ -8,3 +8,3 @@ function main(configuration) {

"name": "ignore",
"expr": /\/\*rtl:ignore\*\//img,
"expr": /(?:[^]*)(?:\/\*rtl:ignore)([^]*?)(?:\*\/)/img,
"action": function (rule) {

@@ -16,3 +16,3 @@ return true;

"name": "rename",
"expr": /\/\*rtl:rename\*\//img,
"expr": /(?:[^]*)(?:\/\*rtl:rename)([^]*?)(?:\*\/)/img,
"action": function (rule) {

@@ -19,0 +19,0 @@ var renamed = util.swapLeftRight(util.swapLtrRtl(util.swapWestEast(rule.selector)));

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

@@ -6,0 +6,0 @@ "bugs": "https://github.com/MohammadYounes/rtlcss/issues?state=open",

@@ -200,3 +200,3 @@ [![GitHub version](https://badge.fury.io/gh/MohammadYounes%2Frtlcss.svg)](http://badge.fury.io/gh/MohammadYounes%2Frtlcss)

| **`important`** | `boolean` | Controls whether to insert the PI at the start or end of the declarations PIs list.
| **`action`** | `function` | The action to be called when a match is found, it will be passed a `prop` (string holding the CSS property name) and `value` (string holding the CSS property raw value). If `options.preserveComments == true`, comments in the raw value will be replaced by the Unicode Character 'REPLACEMENT CHARACTER' (U+FFFD) � to simplify pattern matching. The functions is expected to return an object containing the modified version of the property and its value.
| **`action`** | `function` | The action to be called when a match is found, it will be passed a `prop` (string holding the CSS property name) and `value` (string holding the CSS property raw value). If `options.preserveComments == true`, comments in the raw value will be replaced by the Unicode Character 'REPLACEMENT CHARACTER' (U+FFFD) � (this is to simplify pattern matching). The function is expected to return an object containing the modified version of the property and its value.

@@ -225,2 +225,5 @@

## Release Notes
* **v0.6.0** [4 Jul. 2014]
* Allow additional comments inside `ignore`/`rename` rule level directives.
* **v0.5.0** [11 Jun. 2014]

@@ -227,0 +230,0 @@ * Add CLI support.

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