🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

postcss-css-variables

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-css-variables - npm Package Compare versions

Comparing version

to
0.12.0

@@ -0,1 +1,7 @@

# v0.12.0 - 2019-2-21
- Accept whitespace in `var( --var )` expression
- Thank you to [@benwest](https://github.com/benwest) for the [contribution](https://github.com/MadLittleMods/postcss-css-variables/pull/93)
# v0.11.0 - 2018-10-9

@@ -2,0 +8,0 @@

@@ -13,3 +13,3 @@ var generateScopeList = require('./generate-scope-list');

// See: http://dev.w3.org/csswg/css-variables/#funcdef-var
var RE_VAR_FUNC = (/var\((--[^,\s]+?)(?:\s*,\s*(.+))?\)/);
var RE_VAR_FUNC = (/var\(\s*(--[^,\s]+?)(?:\s*,\s*(.+))?\s*\)/);

@@ -16,0 +16,0 @@ function toString(value) {

{
"name": "postcss-css-variables",
"version": "0.11.0",
"version": "0.12.0",
"description": "PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation",

@@ -5,0 +5,0 @@ "keywords": [

@@ -104,3 +104,3 @@ # PostCSS CSS Variables

--some-color: green;
/* Automically gets a `color: green;` declaration because we `--some-color` used within scope elsewhere */
/* Automatically gets a `color: green;` declaration because we `--some-color` used within scope elsewhere */
}

@@ -401,3 +401,3 @@ ```

- This plugin was spawned out of a [discussion on the `cssnext` repo](https://github.com/cssnext/cssnext/issues/99)
- This plugin was spawned out of a [discussion on the `cssnext` repo](https://github.com/cssnext/cssnext/issues/99).
- We provide a larger CSS variable feature subset than [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties).

@@ -404,0 +404,0 @@ - Related links and issues: