postcss-minify-font-values
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -17,8 +17,9 @@ 'use strict'; | ||
} | ||
if (node.value === 'normal' || ~_keywords2.default.style.indexOf(node.value) || ~_keywords2.default.variant.indexOf(node.value) || ~_keywords2.default.stretch.indexOf(node.value)) { | ||
const value = node.value.toLowerCase(); | ||
if (value === 'normal' || ~_keywords2.default.style.indexOf(value) || ~_keywords2.default.variant.indexOf(value) || ~_keywords2.default.stretch.indexOf(value)) { | ||
familyStart = i; | ||
} else if (~_keywords2.default.weight.indexOf(node.value)) { | ||
node.value = (0, _minifyWeight2.default)(node.value); | ||
} else if (~_keywords2.default.weight.indexOf(value)) { | ||
node.value = (0, _minifyWeight2.default)(value); | ||
familyStart = i; | ||
} else if (~_keywords2.default.size.indexOf(node.value) || (0, _postcssValueParser.unit)(node.value)) { | ||
} else if (~_keywords2.default.size.indexOf(value) || (0, _postcssValueParser.unit)(value)) { | ||
familyStart = i; | ||
@@ -25,0 +26,0 @@ hasSize = true; |
{ | ||
"name": "postcss-minify-font-values", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Minify font declarations 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15693
280