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

6

CHANGELOG.md

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

# 1.3.0 - 2016-08-26
- Added: calc identifier from unresolved nested expressions are removed for
better browser support
([#19](https://github.com/MoOx/reduce-css-calc/pull/19) - @ben-eb)
# 1.2.8 - 2016-08-26

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

3

index.js

@@ -109,2 +109,5 @@ /**

function evaluateNestedExpression(expression, call) {
// Remove the calc part from nested expressions to ensure
// better browser compatibility
expression = expression.replace(/((?:\-[a-z]+\-)?calc)/g, "")
var evaluatedPart = ""

@@ -111,0 +114,0 @@ var nonEvaluatedPart = expression

2

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

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