🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
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.4

7

CHANGELOG.md

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

# 1.2.4 - 2016-06-09
- Fixed: zero values are not unitless anymore.
Browsers do not calculate calc() with 0 unitless values.
http://jsbin.com/punivivipo/edit?html,css,output
([#11](https://github.com/MoOx/reduce-css-calc/pull/11))

# 1.2.3 - 2016-04-28

@@ -2,0 +9,0 @@

6

index.js

@@ -92,6 +92,4 @@ /**

// We don't need units for zero values...
if (result !== 0) {
result += unit
}
// Add unit
result += unit

@@ -98,0 +96,0 @@ return result

@@ -0,4 +1,5 @@

{
"name": "reduce-css-calc",
"version": "1.2.3",
"version": "1.2.4",
"description": "Reduce CSS calc() function to the maximum",

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