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.0 to 1.1.1

test/background.test.js

4

CHANGELOG.md
## 1.0.0
- Support less@3.9.0+
## 1.1.0
- Don't resolve font which contains '/'.
- Don't resolve font which contains '/'.
## 1.1.1
- fix bug: Don't resolve '/' in background.
{
"name": "postcss-automath-latest",
"version": "1.1.0",
"version": "1.1.1",
"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,4 +43,7 @@ /**

nodeProp = 'value';
if (node.prop.match(/font/) && node[nodeProp].match(/\//)) { // exclude font: 5px/10px
return;
if (node.prop.match(/font|background/)) { // exclude font、background props match 1px/2px
// exclude / in url(...)
if (node[nodeProp].replace(/url\(.*?\)/, '').match(/\//)) {
return;
}
}

@@ -47,0 +50,0 @@ }

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