Comparing version 2.4.3 to 2.4.4
const calcWidth = require('./calc-text-width.js').Verdana110 | ||
const colorPresets = require('./color-presets.js') | ||
const sanitize = str => str.replace(/\u0026/g, '&').replace(/\u003C/g, '<') | ||
@@ -18,2 +19,5 @@ module.exports = ({ subject, status, color, style, icon, iconWidth = 13 }) => { | ||
subject = sanitize(subject) | ||
status = sanitize(status) | ||
if (style === 'flat') { | ||
@@ -20,0 +24,0 @@ return `<svg width="${width / 10}" height="20" viewBox="0 0 ${width} 200" xmlns="http://www.w3.org/2000/svg"${xlink}> |
{ | ||
"name": "badgen", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"description": "Fast svg badge generator.", | ||
@@ -20,3 +20,3 @@ "repository": "amio/badgen", | ||
"serve-marked": "0.3.3", | ||
"standard": "^11.0.1", | ||
"standard": "^12.0.0", | ||
"tap": "^12.0.1" | ||
@@ -23,0 +23,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
33545
186