Socket
Socket
Sign inDemoInstall

postcss-calc

Package Overview
Dependencies
7
Maintainers
5
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.2 to 7.0.3

4

CHANGELOG.md

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

# 7.0.3
- Fixed: substracted css-variable from zero ([#111](https://github.com/postcss/postcss-calc/issues/111))
# 7.0.2

@@ -2,0 +6,0 @@

@@ -71,3 +71,3 @@ "use strict";

if (isValueType(node.left.type) && node.left.value === 0 && node.operator === "-" && node.right.type !== "Function") {
if (isValueType(node.left.type) && node.left.value === 0 && node.operator === "-" && !isCSSFunction(node.right)) {
return flipValue(node.right);

@@ -328,2 +328,15 @@ } // value + value

exports.default = _default;
function isCSSFunction(node) {
if (node.type === "Function") {
return true;
}
if (node.type === "MathExpression") {
return isCSSFunction(node.left) || isCSSFunction(node.right);
}
return false;
}
module.exports = exports.default;

2

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

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

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