parse-css-font
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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" |
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
6584
+ Addedcss-global-keywords@^1.0.1
+ Addedcss-font-stretch-keywords@1.0.1(transitive)
+ Addedcss-font-style-keywords@1.0.1(transitive)
+ Addedcss-font-weight-keywords@1.0.0(transitive)
+ Addedcss-global-keywords@1.0.1(transitive)
+ Addedcss-system-font-keywords@1.0.0(transitive)
- Removedcss-font-stretches@^1.0.1
- Removedcss-font-styles@^1.0.0
- Removedcss-font-weights@^1.0.0
- Removedcss-global-values@^1.0.0
- Removedcss-system-fonts@0.0.1
- Removedcss-font-stretches@1.0.2(transitive)
- Removedcss-font-styles@1.0.1(transitive)
- Removedcss-font-weights@1.0.1(transitive)
- Removedcss-global-values@1.0.1(transitive)
- Removedcss-system-fonts@0.0.1(transitive)