postcss-colormin
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9787
145