reduce-css-calc
Advanced tools
Comparing version
@@ -0,4 +1,8 @@ | ||
# 1.1.4 - 2014-11-12 | ||
* 5 decimals rounding for everything | ||
# 1.1.3 - 2014-08-13 | ||
* 5 decimals rounding | ||
* 5 decimals rounding for percentage | ||
@@ -5,0 +9,0 @@ # 1.1.2 - 2014-08-10 |
@@ -84,8 +84,8 @@ /** | ||
result *= 100 | ||
// adjust rounding shit | ||
// (0.1 * 0.2 === 0.020000000000000004) | ||
result = Math.round(result * DECIMAL_PRECISION) / DECIMAL_PRECISION | ||
} | ||
// adjust rounding shit | ||
// (0.1 * 0.2 === 0.020000000000000004) | ||
result = Math.round(result * DECIMAL_PRECISION) / DECIMAL_PRECISION | ||
// We don't need units for zero values... | ||
@@ -92,0 +92,0 @@ if (result !== 0) { |
{ | ||
"name": "reduce-css-calc", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Reduce CSS calc() function to the maximum", | ||
@@ -10,3 +10,3 @@ "keywords": [ | ||
], | ||
"author": "MoOx", | ||
"author": "Maxime Thirouin", | ||
"license": "MIT", | ||
@@ -20,7 +20,6 @@ "repository": { | ||
"LICENSE", | ||
"README.md", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"balanced-match": "~0.1.0", | ||
"balanced-match": "^0.1.0", | ||
"reduce-function-call": "^1.0.1" | ||
@@ -31,4 +30,2 @@ }, | ||
"jshint": "^2.5.2", | ||
"jshint-stylish": "^0.4.0", | ||
"tap-colorize": "^1.2.0", | ||
"tape": "^2.13.4" | ||
@@ -38,5 +35,5 @@ }, | ||
"jscs": "jscs *.js **/*.js", | ||
"jshint": "jshint . --exclude node_modules --reporter node_modules/jshint-stylish/stylish.js", | ||
"test": "npm run jscs && npm run jshint && tape test | tap-colorize" | ||
"jshint": "jshint . --exclude node_modules", | ||
"test": "npm run jscs && npm run jshint && tape test" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
3
-40%7555
-0.7%Updated