Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gh-badges

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-badges - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

9

CHANGELOG.md
# Changelog
## 2.2.0
## 2.2.1
### Fixes
- Escape logos to prevent XSS vulnerability
- Update docblock for BadgeFactory.create()
## 2.2.0 - 2019-05-29
### Deprecations

@@ -6,0 +13,0 @@

8

lib/index.js

@@ -19,5 +19,7 @@ 'use strict'

* @param {string[]} format.text
* @param {string} format.colorscheme
* @param {string} format.colorA
* @param {string} format.colorB
* @param {string} format.labelColor - label color
* @param {string} format.color - message color
* @param {string} format.colorA - deprecated: alias for `labelColor`
* @param {string} format.colorscheme - deprecated: alias for `color`
* @param {string} format.colorB - deprecated: alias for `color`
* @param {string} format.format

@@ -24,0 +26,0 @@ * @param {string} format.template

@@ -93,2 +93,6 @@ 'use strict'

/*
note: makeBadge() is fairly thinly wrapped so if we are making changes here
it is likely this will impact on the package's public interface in index.js
*/
module.exports = function makeBadge({

@@ -173,3 +177,3 @@ format,

links: links.map(escapeXml),
logo,
logo: escapeXml(logo),
logoPosition,

@@ -176,0 +180,0 @@ logoWidth,

{
"name": "gh-badges",
"version": "2.2.0",
"version": "2.2.1",
"description": "Shields.io badge library",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc