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

@fortawesome/vue-fontawesome

Package Overview
Dependencies
Maintainers
7
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fortawesome/vue-fontawesome - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

8

CHANGELOG.md

@@ -13,3 +13,11 @@ # Change Log

---
## [2.0.10](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.10) - 2023-01-24
### Changed
- NPM download `@fortawesome/vue-fontawesome-latest` is now set to Vue 3; to download the Vue 2 package you will have to use `@fortawesome/vue-fontawesome-latest-2`, which is described in our [Vue setup docs](https://fontawesome.com/docs/web/use-with/vue/#_3-add-the-vue-component)
- Updated CI workflow testing to include Vue 2.7.x
- Updated contributor's GitHub user name in README.md and package.json files
---
## [2.0.9](https://github.com/FortAwesome/vue-fontawesome/releases/tag/2.0.9) - 2022-11-07

@@ -16,0 +24,0 @@

68

index.es.js

@@ -5,2 +5,3 @@ import { parse, icon, config, text } from '@fortawesome/fontawesome-svg-core';

var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {

@@ -12,4 +13,6 @@ var symbols = Object.getOwnPropertySymbols(object);

}
return keys;
}
function _objectSpread2(target) {

@@ -24,4 +27,6 @@ for (var i = 1; i < arguments.length; i++) {

}
return target;
}
function _typeof(obj) {

@@ -36,2 +41,3 @@ "@babel/helpers - typeof";

}
function _defineProperty(obj, key, value) {

@@ -48,4 +54,6 @@ if (key in obj) {

}
return obj;
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -56,2 +64,3 @@ if (source == null) return {};

var key, i;
for (i = 0; i < sourceKeys.length; i++) {

@@ -62,10 +71,16 @@ key = sourceKeys[i];

}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {

@@ -78,13 +93,18 @@ key = sourceSymbolKeys[i];

}
return target;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {

@@ -98,7 +118,11 @@ if (!o) return;

}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {

@@ -247,2 +271,3 @@ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");

var _excluded = ["class", "style", "attrs"];
function styleToObject(style) {

@@ -261,2 +286,3 @@ return style.split(';').map(function (s) {

}
function classToObject(cls) {

@@ -268,2 +294,3 @@ return cls.split(/\s+/).reduce(function (acc, c) {

}
function combineClassObjects() {

@@ -273,2 +300,3 @@ for (var _len = arguments.length, objs = new Array(_len), _key = 0; _key < _len; _key++) {

}
return objs.reduce(function (acc, obj) {

@@ -280,5 +308,7 @@ if (Array.isArray(obj)) {

}
return acc;
}, []);
}
function convert(h, element) {

@@ -290,2 +320,3 @@ var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

var val = element.attributes[key];
switch (key) {

@@ -295,8 +326,11 @@ case 'class':

break;
case 'style':
acc['style'] = styleToObject(val);
break;
default:
acc.attrs[key] = val;
}
return acc;

@@ -308,9 +342,11 @@ }, {

});
var _data$class = data.class,
dClass = _data$class === void 0 ? {} : _data$class,
_data$style = data.style,
dStyle = _data$style === void 0 ? {} : _data$style,
_data$attrs = data.attrs,
dAttrs = _data$attrs === void 0 ? {} : _data$attrs,
remainingData = _objectWithoutProperties(data, _excluded);
dClass = _data$class === void 0 ? {} : _data$class,
_data$style = data.style,
dStyle = _data$style === void 0 ? {} : _data$style,
_data$attrs = data.attrs,
dAttrs = _data$attrs === void 0 ? {} : _data$attrs,
remainingData = _objectWithoutProperties(data, _excluded);
if (typeof element === 'string') {

@@ -330,8 +366,11 @@ return element;

var PRODUCTION = false;
try {
PRODUCTION = process.env.NODE_ENV === 'production';
} catch (e) {}
function log () {
if (!PRODUCTION && console && typeof console.error === 'function') {
var _console;
(_console = console).error.apply(_console, arguments);

@@ -346,2 +385,3 @@ }

var _classes;
var classes = (_classes = {

@@ -380,11 +420,15 @@ 'fa-spin': props.spin,

}
if (parse.icon) {
return parse.icon(icon);
}
if (icon === null) {
return null;
}
if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
return icon;
}
if (Array.isArray(icon) && icon.length === 2) {

@@ -396,2 +440,3 @@ return {

}
if (typeof icon === 'string') {

@@ -404,2 +449,3 @@ return {

}
var FontAwesomeIcon = {

@@ -521,5 +567,5 @@ name: 'FontAwesomeIcon',

var iconArgs = props.icon,
maskArgs = props.mask,
symbol = props.symbol,
title = props.title;
maskArgs = props.mask,
symbol = props.symbol,
title = props.title;
var icon$1 = normalizeIconArgs(iconArgs);

@@ -533,5 +579,7 @@ var classes = objectWithKey('classes', classList(props));

}));
if (!renderedIcon) {
return log('Could not find one or more icon(s)', icon$1, mask);
}
var abstract = renderedIcon.abstract;

@@ -593,5 +641,7 @@ var convertCurry = convert.bind(null, createElement);

var abstract = renderedText.abstract;
if (props.counter) {
abstract[0].attributes.class = abstract[0].attributes.class.replace('fa-layers-text', '');
}
var convertCurry = convert.bind(null, createElement);

@@ -598,0 +648,0 @@ return convertCurry(abstract[0], {}, context.data);

@@ -9,2 +9,3 @@ (function (global, factory) {

var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {

@@ -16,4 +17,6 @@ var symbols = Object.getOwnPropertySymbols(object);

}
return keys;
}
function _objectSpread2(target) {

@@ -28,4 +31,6 @@ for (var i = 1; i < arguments.length; i++) {

}
return target;
}
function _typeof(obj) {

@@ -40,2 +45,3 @@ "@babel/helpers - typeof";

}
function _defineProperty(obj, key, value) {

@@ -52,4 +58,6 @@ if (key in obj) {

}
return obj;
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -60,2 +68,3 @@ if (source == null) return {};

var key, i;
for (i = 0; i < sourceKeys.length; i++) {

@@ -66,10 +75,16 @@ key = sourceKeys[i];

}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {

@@ -82,13 +97,18 @@ key = sourceSymbolKeys[i];

}
return target;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {

@@ -102,7 +122,11 @@ if (!o) return;

}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {

@@ -251,2 +275,3 @@ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");

var _excluded = ["class", "style", "attrs"];
function styleToObject(style) {

@@ -265,2 +290,3 @@ return style.split(';').map(function (s) {

}
function classToObject(cls) {

@@ -272,2 +298,3 @@ return cls.split(/\s+/).reduce(function (acc, c) {

}
function combineClassObjects() {

@@ -277,2 +304,3 @@ for (var _len = arguments.length, objs = new Array(_len), _key = 0; _key < _len; _key++) {

}
return objs.reduce(function (acc, obj) {

@@ -284,5 +312,7 @@ if (Array.isArray(obj)) {

}
return acc;
}, []);
}
function convert(h, element) {

@@ -294,2 +324,3 @@ var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

var val = element.attributes[key];
switch (key) {

@@ -299,8 +330,11 @@ case 'class':

break;
case 'style':
acc['style'] = styleToObject(val);
break;
default:
acc.attrs[key] = val;
}
return acc;

@@ -312,9 +346,11 @@ }, {

});
var _data$class = data.class,
dClass = _data$class === void 0 ? {} : _data$class,
_data$style = data.style,
dStyle = _data$style === void 0 ? {} : _data$style,
_data$attrs = data.attrs,
dAttrs = _data$attrs === void 0 ? {} : _data$attrs,
remainingData = _objectWithoutProperties(data, _excluded);
dClass = _data$class === void 0 ? {} : _data$class,
_data$style = data.style,
dStyle = _data$style === void 0 ? {} : _data$style,
_data$attrs = data.attrs,
dAttrs = _data$attrs === void 0 ? {} : _data$attrs,
remainingData = _objectWithoutProperties(data, _excluded);
if (typeof element === 'string') {

@@ -334,8 +370,11 @@ return element;

var PRODUCTION = false;
try {
PRODUCTION = process.env.NODE_ENV === 'production';
} catch (e) {}
function log () {
if (!PRODUCTION && console && typeof console.error === 'function') {
var _console;
(_console = console).error.apply(_console, arguments);

@@ -350,2 +389,3 @@ }

var _classes;
var classes = (_classes = {

@@ -384,11 +424,15 @@ 'fa-spin': props.spin,

}
if (fontawesomeSvgCore.parse.icon) {
return fontawesomeSvgCore.parse.icon(icon);
}
if (icon === null) {
return null;
}
if (_typeof(icon) === 'object' && icon.prefix && icon.iconName) {
return icon;
}
if (Array.isArray(icon) && icon.length === 2) {

@@ -400,2 +444,3 @@ return {

}
if (typeof icon === 'string') {

@@ -408,2 +453,3 @@ return {

}
var FontAwesomeIcon = {

@@ -525,5 +571,5 @@ name: 'FontAwesomeIcon',

var iconArgs = props.icon,
maskArgs = props.mask,
symbol = props.symbol,
title = props.title;
maskArgs = props.mask,
symbol = props.symbol,
title = props.title;
var icon = normalizeIconArgs(iconArgs);

@@ -537,5 +583,7 @@ var classes = objectWithKey('classes', classList(props));

}));
if (!renderedIcon) {
return log('Could not find one or more icon(s)', icon, mask);
}
var abstract = renderedIcon.abstract;

@@ -597,5 +645,7 @@ var convertCurry = convert.bind(null, createElement);

var abstract = renderedText.abstract;
if (props.counter) {
abstract[0].attributes.class = abstract[0].attributes.class.replace('fa-layers-text', '');
}
var convertCurry = convert.bind(null, createElement);

@@ -602,0 +652,0 @@ return convertCurry(abstract[0], {}, context.data);

13

package.json
{
"name": "@fortawesome/vue-fontawesome",
"description": "Official Vue 2 component for Font Awesome",
"version": "2.0.9",
"version": "2.0.10",
"main": "index.js",

@@ -31,3 +31,3 @@ "files": [

"Rob Madole <rob@fontawesome.com>",
"SirLamer <github.com/SirLamer>",
"Greg Peden <github.com/GregPeden>",
"Liu Xinyu <github.com/meteorlxy>",

@@ -45,5 +45,3 @@ "Xaver Schulz <github.com/schulz3000>",

"dist": "cross-env NODE_ENV=production npm run build",
"test": "npm run test.5 && npm run test.6",
"test.5": "npm --no-save install @fortawesome/fontawesome-svg-core@1.2.x @fortawesome/free-solid-svg-icons@5.x && jest --silent",
"test.6": "npm --no-save install @fortawesome/fontawesome-svg-core@6.x @fortawesome/free-solid-svg-icons@6.x && jest --silent",
"test": "jest --silent",
"prepack": "npm run dist"

@@ -69,3 +67,3 @@ },

"@babel/preset-env": "^7.18.2",
"@fortawesome/fontawesome-svg-core": "~6",
"@fortawesome/fontawesome-svg-core": "^6",
"@fortawesome/free-solid-svg-icons": "^6",

@@ -92,3 +90,4 @@ "babel-core": "^7.0.0-bridge.0",

}
}
},
"dependencies": {}
}

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

| :--------------------------------------------------------: | -------------- | ---------------------------------------------------- |
| <img src="https://github.com/SirLamer.png?size=72" /> | SirLamer | [@SirLamer](https://github.com/SirLamer) |
| <img src="https://github.com/GregPeden.png?size=72" /> | Greg Peden | [@GregPeden](https://github.com/GregPeden) |
| <img src="https://github.com/meteorlxy.png?size=72" /> | Liu Xinyu | [@meteorlxy](https://github.com/meteorlxy) |

@@ -61,0 +61,0 @@ | <img src="https://github.com/schulz3000.png?size=72" /> | Xaver Schulz | [@schulz3000](https://github.com/schulz3000) |

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