Socket
Socket
Sign inDemoInstall

postcss-automath-latest

Package Overview
Dependencies
17
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

test/border-radius.test.js

4

CHANGELOG.md

@@ -6,2 +6,4 @@ ## 1.0.0

## 1.1.1
- fix bug: Don't resolve '/' in background.
- fix bug: Don't resolve '/' in background.
## 1.1.2
- fix bug: Don't resolve '/' in border-radius.
{
"name": "postcss-automath-latest",
"version": "1.1.1",
"version": "1.1.2",
"description": "Automatically evaluate mathematical expressions in your CSS source files, like in SASS or LESS. No special function calls needed as with `postcss-mathjs`.",

@@ -5,0 +5,0 @@ "main": "postcss-automath.js",

@@ -43,3 +43,3 @@ /**

nodeProp = 'value';
if (node.prop.match(/font|background/)) { // exclude font、background props match 1px/2px
if (node.prop.match(/font|background|border-radius/)) { // exclude font、background props match 1px/2px
// exclude / in url(...)

@@ -46,0 +46,0 @@ if (node[nodeProp].replace(/url\(.*?\)/, '').match(/\//)) {

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