react-google-font-loader
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -45,5 +45,5 @@ 'use strict'; | ||
var family = font.font.replace(/ +/g, '+'); | ||
var weights = font.weights.join(','); | ||
var weights = (font.weights || []).join(','); | ||
acc.push(family + ':' + weights); | ||
acc.push(family + (weights && ':' + weights)); | ||
@@ -94,7 +94,5 @@ return acc; | ||
; | ||
GoogleFontLoader.propTypes = { | ||
fonts: _propTypes2.default.arrayOf(_propTypes2.default.shape({ | ||
font: _propTypes2.default.string, | ||
font: _propTypes2.default.string.isRequired, | ||
weights: _propTypes2.default.arrayOf(_propTypes2.default.number) | ||
@@ -101,0 +99,0 @@ })).isRequired |
{ | ||
"name": "react-google-font-loader", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Simple React component to load Google Fonts.", | ||
@@ -5,0 +5,0 @@ "main": "build/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
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
6780
75