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

css-font

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-font - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "css-font",
"version": "1.1.0",
"version": "1.1.1",
"description": "Parse or stringify CSS font property.",

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

@@ -24,7 +24,7 @@ 'use strict'

style: 'normal',
variant: 'small-caps',
variant: 'normal',
weight: 'normal',
stretch: 'normal',
size: '1rem',
lineHeight: '1',
lineHeight: 'normal',
family: 'serif'

@@ -75,6 +75,11 @@ }

if (o.variant !== o.style) result.push(o.variant)
if (o.weight !== o.variant && o.weight !== o.style) result.push(o.weight)
if (o.stretch !== o.weight && o.stretch !== o.variant && o.stretch !== o.style) result.push(o.stretch)
result.push(o.size + (o.lineHeight == null ? '' : ('/' + o.lineHeight)))
if (o.weight !== o.variant &&
o.weight !== o.style) result.push(o.weight)
if (o.stretch !== o.weight &&
o.stretch !== o.variant &&
o.stretch !== o.style) result.push(o.stretch)
result.push(o.size + (o.lineHeight == null || o.lineHeight === 'normal' || (o.lineHeight + '' === '1') ? '' : ('/' + o.lineHeight)))
result.push(o.family)

@@ -81,0 +86,0 @@

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