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

parse-css-font

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-css-font - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 2.0.2
- Update dependencies.
## 2.0.1

@@ -2,0 +5,0 @@ - Fix issue w/ slashes in functions.

20

index.js
var t = require('tcomb');
var unquote = require('unquote');
var cssGlobalValues = require('css-global-values');
var cssSystemFonts = require('css-system-fonts');
var cssFontWeights = require('css-font-weights');
var cssFontStyles = require('css-font-styles');
var cssFontStretches = require('css-font-stretches');
var globalKeywords = require('css-global-keywords');
var systemFontKeywords = require('css-system-font-keywords');
var fontWeightKeywords = require('css-font-weight-keywords');
var fontStyleKeywords = require('css-font-style-keywords');
var fontStretchKeywords = require('css-font-stretch-keywords');
var cssListHelpers = require('css-list-helpers');

@@ -35,3 +35,3 @@

if (cssSystemFonts().indexOf(value) !== -1) {
if (systemFontKeywords.indexOf(value) !== -1) {
return SystemFont({ system: value });

@@ -53,3 +53,3 @@ }

if (token === 'normal' || cssGlobalValues.indexOf(token) !== -1) {
if (token === 'normal' || globalKeywords.indexOf(token) !== -1) {
['style', 'variant', 'weight', 'stretch'].forEach(function(prop) {

@@ -62,3 +62,3 @@ font[prop] = token;

if (cssFontWeights.indexOf(token) !== -1) {
if (fontWeightKeywords.indexOf(token) !== -1) {
if (isLocked) {

@@ -71,3 +71,3 @@ continue;

if (cssFontStyles.indexOf(token) !== -1) {
if (fontStyleKeywords.indexOf(token) !== -1) {
if (isLocked) {

@@ -80,3 +80,3 @@ continue;

if (cssFontStretches.indexOf(token) !== -1) {
if (fontStretchKeywords.indexOf(token) !== -1) {
if (isLocked) {

@@ -83,0 +83,0 @@ continue;

{
"name": "parse-css-font",
"version": "2.0.1",
"version": "2.0.2",
"description": "Parse the CSS font property value.",

@@ -29,8 +29,8 @@ "main": "index.js",

"css-font-size-keywords": "^1.0.0",
"css-font-stretches": "^1.0.1",
"css-font-styles": "^1.0.0",
"css-font-weights": "^1.0.0",
"css-global-values": "^1.0.0",
"css-font-stretch-keywords": "^1.0.1",
"css-font-style-keywords": "^1.0.1",
"css-font-weight-keywords": "^1.0.0",
"css-global-keywords": "^1.0.1",
"css-list-helpers": "^1.0.1",
"css-system-fonts": "0.0.1",
"css-system-font-keywords": "^1.0.0",
"tcomb": "^2.5.0",

@@ -37,0 +37,0 @@ "unquote": "^1.1.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