Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-minify-font-values

Package Overview
Dependencies
Maintainers
5
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-minify-font-values - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

9

dist/lib/minify-font.js

@@ -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",

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