Socket
Socket
Sign inDemoInstall

postcss-colormin

Package Overview
Dependencies
Maintainers
8
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-colormin - npm Package Compare versions

Comparing version 5.2.3 to 5.2.4

11

dist/index.js

@@ -39,5 +39,4 @@ "use strict";

function hasTransparentBug(browser) {
return ~['ie 8', 'ie 9'].indexOf(browser);
}
const browsersWithTransparentBug = new Set(['ie 8', 'ie 9']);
const mathFunctions = new Set(['calc', 'min', 'max', 'clamp']);

@@ -49,3 +48,3 @@ function isMathFunctionNode(node) {

return ['calc', 'min', 'max', 'clamp'].includes(node.value.toLowerCase());
return mathFunctions.has(node.value.toLowerCase());
}

@@ -83,6 +82,6 @@

const defaults = {
transparent: browsers.some(hasTransparentBug) === false,
// Does the browser support 4 & 8 character hex notation
transparent: browsers.some(b => browsersWithTransparentBug.has(b)) === false,
// Does the browser support "transparent" value properly
alphaHex: (0, _caniuseApi.isSupported)('css-rrggbbaa', browsers),
// Does the browser support "transparent" value properly
name: true

@@ -89,0 +88,0 @@ };

{
"name": "postcss-colormin",
"version": "5.2.3",
"version": "5.2.4",
"description": "Minify colors in your CSS files with PostCSS.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc