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

reduce-css-calc

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reduce-css-calc - npm Package Compare versions

Comparing version

to
1.2.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 1.2.2 - 2016-04-19
- Fixed: Don't reduce expression containing CSS variables.
([#9](https://github.com/MoOx/reduce-css-calc/pull/9))
# 1.2.1 - 2016-02-22

@@ -2,0 +7,0 @@

5

index.js

@@ -54,4 +54,5 @@ /**

// If multiple units let the expression be (i.e. browser calc())
if (units.length > 1) {
// If the expression contains multiple units or CSS variables,
// then let the expression be (i.e. browser calc())
if (units.length > 1 || expression.indexOf("var(") > -1) {
return functionIdentifier + "(" + expression + ")"

@@ -58,0 +59,0 @@ }

2

package.json
{
"name": "reduce-css-calc",
"version": "1.2.1",
"version": "1.2.2",
"description": "Reduce CSS calc() function to the maximum",

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