🚀 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.8

5

CHANGELOG.md

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

# 1.2.8 - 2016-08-26
- Fixed: regression from 1.2.5 on calc() with value without leading 0
([#17](https://github.com/MoOx/reduce-css-calc/pull/17) - @ben-eb)
# 1.2.7 - 2016-08-22

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

9

index.js

@@ -35,10 +35,5 @@ /**

value = value
// CSS allow to omit 0 for 0.* values,
// but math-expression-evaluator does not
.replace(/(\s|\()(\.[0-9])/g, "$10$2")
// Allow calc() on multiple lines
value = value.replace(/\n+/g, " ")
// allow calc() on multiple lines
.replace(/\n+/g, " ")
/**

@@ -45,0 +40,0 @@ * Evaluates an expression

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

@@ -17,4 +17,4 @@ "keywords": [

"dependencies": {
"balanced-match": "^0.1.0",
"math-expression-evaluator": "^1.2.9",
"balanced-match": "^0.4.2",
"math-expression-evaluator": "^1.2.14",
"reduce-function-call": "^1.0.1"

@@ -21,0 +21,0 @@ },