Socket
Socket
Sign inDemoInstall

postcss-calc

Package Overview
Dependencies
8
Maintainers
7
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.0 to 9.0.1

3

package.json
{
"name": "postcss-calc",
"version": "9.0.0",
"version": "9.0.1",
"description": "PostCSS plugin to reduce calc()",

@@ -32,3 +32,2 @@ "keywords": [

"license": "MIT",
"repository": "https://github.com/postcss/postcss-calc.git",
"eslintConfig": {

@@ -35,0 +34,0 @@ "extends": [

@@ -76,3 +76,4 @@ 'use strict';

const shouldPrintCalc =
node.type === 'MathExpression' || node.type === 'Function';
node.type === 'MathExpression' || node.type === 'Function' ||
node.type === 'ParenthesizedExpression';

@@ -82,3 +83,7 @@ if (shouldPrintCalc) {

// a calc()
str = `${calc}(${str})`;
if (node.type === 'ParenthesizedExpression') {
str = `${calc}${str}`;
} else {
str = `${calc}(${str})`;
}

@@ -85,0 +90,0 @@ // if the warnWhenCannotResolve option is on, inform the user that the calc

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc