Comparing version 2.4.0 to 2.4.1
const calcWidth = require('./calc-text-width.js').Verdana110 | ||
const colorPresets = require('./color-presets.js') | ||
module.exports = ({ subject, status, color, style, icon, iconWidth = 130 }) => { | ||
module.exports = ({ subject, status, color, style, icon, iconWidth = 13 }) => { | ||
typeAssert(typeof subject === 'string', '<subject> must be string') | ||
typeAssert(typeof status === 'string', '<status> must be string') | ||
color = colorPresets[color] || color || colorPresets['blue'] | ||
iconWidth = iconWidth * 10 | ||
@@ -9,0 +10,0 @@ const iconSpanWidth = icon ? (subject.length ? iconWidth + 40 : iconWidth - 20) : 0 |
{ | ||
"name": "badgen", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Fast svg badge generator.", | ||
@@ -5,0 +5,0 @@ "repository": "amio/badgen", |
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
33519
187