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.4 to 2.4.5

9

lib/index.js

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

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

@@ -30,4 +31,4 @@ const stTextWidth = calcWidth(status)

<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<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="${sbTextStart + 10}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.1">${subject}</text>
<text x="${sbTextStart}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${sbRectWidth + 55}" y="148" textLength="${stTextWidth}" fill="#000" opacity="0.1">${status}</text>

@@ -52,4 +53,4 @@ <text x="${sbRectWidth + 45}" y="138" textLength="${stTextWidth}">${status}</text>

<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<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="${sbTextStart + 10}" y="148" textLength="${sbTextWidth}" fill="#000" opacity="0.25">${subject}</text>
<text x="${sbTextStart}" y="138" textLength="${sbTextWidth}">${subject}</text>
<text x="${sbRectWidth + 55}" y="148" textLength="${stTextWidth}" fill="#000" opacity="0.25">${status}</text>

@@ -56,0 +57,0 @@ <text x="${sbRectWidth + 45}" y="138" textLength="${stTextWidth}">${status}</text>

{
"name": "badgen",
"version": "2.4.4",
"version": "2.4.5",
"description": "Fast svg badge generator.",

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

@@ -49,10 +49,10 @@ # badgen

```bash
[classic] style, long params x 1,317,650 ops/sec ±0.44% (88 runs sampled)
[classic] style, full params x 1,711,139 ops/sec ±0.51% (94 runs sampled)
[classic] style, with emoji x 1,308,026 ops/sec ±1.94% (88 runs sampled)
[classic] style, with icon x 1,476,024 ops/sec ±0.48% (92 runs sampled)
[flat] style, long params x 663,252 ops/sec ±0.65% (93 runs sampled)
[flat] style, full params x 739,821 ops/sec ±1.56% (94 runs sampled)
[flat] style, with emoji x 674,228 ops/sec ±3.05% (88 runs sampled)
[flat] style, with icon x 764,540 ops/sec ±2.58% (88 runs sampled)
[classic] style, long params x 784,111 ops/sec ±1.53% (89 runs sampled)
[classic] style, full params x 1,096,667 ops/sec ±1.37% (90 runs sampled)
[classic] style, with emoji x 1,086,230 ops/sec ±1.85% (92 runs sampled)
[classic] style, with icon x 941,914 ops/sec ±0.41% (93 runs sampled)
[flat] style, long params x 546,447 ops/sec ±0.52% (91 runs sampled)
[flat] style, full params x 612,977 ops/sec ±1.08% (94 runs sampled)
[flat] style, with emoji x 620,193 ops/sec ±0.95% (92 runs sampled)
[flat] style, with icon x 566,848 ops/sec ±0.84% (93 runs sampled)
```

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

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