Comparing version 2.2.0 to 2.2.1
# 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 @@ |
@@ -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": [ |
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
44799
491