Socket
Socket
Sign inDemoInstall

@fortawesome/react-fontawesome

Package Overview
Dependencies
8
Maintainers
6
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.14 to 0.1.15

8

CHANGELOG.md

@@ -9,2 +9,10 @@ # Change Log

## [0.1.15](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.15) - 2021-08-03
### Fixed
- Skip parse.icon if the icon is imported directly from an icon package
---
## [0.1.14](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.14) - 2020-12-22

@@ -11,0 +19,0 @@

8

index.es.js

@@ -263,2 +263,8 @@ import { parse, icon } from '@fortawesome/fontawesome-svg-core';

function normalizeIconArgs(icon) {
// this has everything that it needs to be rendered which means it was probably imported
// directly from an icon svg package
if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
return icon;
}
if (parse.icon) {

@@ -274,3 +280,3 @@ return parse.icon(icon);

if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
return icon;

@@ -277,0 +283,0 @@ } // if it's an array with length of two

@@ -268,2 +268,8 @@ (function (global, factory) {

function normalizeIconArgs(icon) {
// this has everything that it needs to be rendered which means it was probably imported
// directly from an icon svg package
if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
return icon;
}
if (fontawesomeSvgCore.parse.icon) {

@@ -279,3 +285,3 @@ return fontawesomeSvgCore.parse.icon(icon);

if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
return icon;

@@ -282,0 +288,0 @@ } // if it's an array with length of two

5

package.json
{
"name": "@fortawesome/react-fontawesome",
"description": "Official React component for Font Awesome 5",
"version": "0.1.14",
"version": "0.1.15",
"main": "index.js",

@@ -38,5 +38,4 @@ "module": "index.es.js",

"prepack": "npm run dist",
"test": "npm run test.latest && npm run test.next",
"test": "npm run test.latest && npm run test.next.proregistry",
"test.latest": "npm --no-save install @fortawesome/fontawesome-svg-core@latest @fortawesome/free-solid-svg-icons@latest && jest --silent",
"test.next": "npm --no-save install @fortawesome/fontawesome-svg-core@next @fortawesome/free-solid-svg-icons@next && jest --silent",
"test.next.proregistry": "npm --userconfig .npmrc.proregistry --registry https://npm.fontawesome.com install --no-save @fortawesome/fontawesome-svg-core@next @fortawesome/free-solid-svg-icons@next && jest --silent",

@@ -43,0 +42,0 @@ "clean": "rm -f index.js && rm -f index.es.js"

@@ -12,2 +12,3 @@ <a href="https://fontawesome.com">

<!-- toc -->
- [Documentation](#documentation)

@@ -14,0 +15,0 @@ - [How to Help](#how-to-help)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc