Socket
Socket
Sign inDemoInstall

badgen

Package Overview
Dependencies
0
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.1 to 2.4.2

14

lib/index.js

@@ -10,3 +10,3 @@ const calcWidth = require('./calc-text-width.js').Verdana110

const iconSpanWidth = icon ? (subject.length ? iconWidth + 40 : iconWidth - 20) : 0
const iconSpanWidth = icon ? (subject.length ? iconWidth + 30 : iconWidth - 18) : 0
const sbTextWidth = calcWidth(subject)

@@ -27,8 +27,8 @@ const stTextWidth = calcWidth(status)

<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="${icon ? '225' : '65'}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.1">${subject}</text>
<text x="${icon ? '215' : '55'}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${icon ? '220' : '50'}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.1">${subject}</text>
<text x="${icon ? '210' : '50'}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${sbRectWidth + 55}" y="148" textLength="${stTextWidth}" fill="#000" opacity="0.1">${status}</text>
<text x="${sbRectWidth + 45}" y="138" textLength="${stTextWidth}">${status}</text>
</g>
${icon ? `<image x="38" y="34" width="${iconWidth}" height="132" xlink:href="${icon}"/>` : ''}
${icon ? `<image x="40" y="35" width="${iconWidth}" height="132" xlink:href="${icon}"/>` : ''}
</svg>

@@ -51,8 +51,8 @@ `

<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="${icon ? '225' : '65'}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.25">${subject}</text>
<text x="${icon ? '215' : '55'}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${icon ? '220' : '60'}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.25">${subject}</text>
<text x="${icon ? '210' : '50'}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${sbRectWidth + 55}" y="148" textLength="${stTextWidth}" fill="#000" opacity="0.25">${status}</text>
<text x="${sbRectWidth + 45}" y="138" textLength="${stTextWidth}">${status}</text>
</g>
${icon ? `<image x="39" y="35" width="${iconWidth}" height="130" xlink:href="${icon}"/>` : ''}
${icon ? `<image x="40" y="35" width="${iconWidth}" height="130" xlink:href="${icon}"/>` : ''}
</svg>

@@ -59,0 +59,0 @@ `

{
"name": "badgen",
"version": "2.4.1",
"version": "2.4.2",
"description": "Fast svg badge generator.",

@@ -5,0 +5,0 @@ "repository": "amio/badgen",

@@ -42,2 +42,3 @@ # badgen

![](https://badgen.net/badge/color/grey/grey)
![](https://badgen.net/badge/color/black/black)

@@ -44,0 +45,0 @@ ## Benchmarks

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc