Release 5.12.1 (#1474)

This commit is contained in:
Rob Madole
2020-02-05 08:32:15 -06:00
committed by GitHub
parent 74c5b96eeb
commit c7585e1eaf
357 changed files with 3569 additions and 876 deletions

View File

@@ -1079,7 +1079,7 @@ var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMA
mark: noop$1,
measure: noop$1
};
var preamble = "FA \"5.12.0\"";
var preamble = "FA \"5.12.1\"";
var begin = function begin(name) {
p.mark("".concat(preamble, " ").concat(name, " begins"));
@@ -1973,6 +1973,7 @@ function replaceForPosition(node, position) {
var styles = WINDOW.getComputedStyle(node, position);
var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
var fontWeight = styles.getPropertyValue('font-weight');
var content = styles.getPropertyValue('content');
if (alreadyProcessedPseudoElement && !fontFamily) {
// If we've already processed it but the current computed style does not result in a font-family,
@@ -1980,8 +1981,7 @@ function replaceForPosition(node, position) {
// removed. So we now should delete the icon.
node.removeChild(alreadyProcessedPseudoElement);
return resolve();
} else if (fontFamily) {
var content = styles.getPropertyValue('content');
} else if (fontFamily && content !== 'none' && content !== '') {
var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
var iconName = byUnicode(prefix, hexValue);

View File

@@ -1085,7 +1085,7 @@
mark: noop$1,
measure: noop$1
};
var preamble = "FA \"5.12.0\"";
var preamble = "FA \"5.12.1\"";
var begin = function begin(name) {
p.mark("".concat(preamble, " ").concat(name, " begins"));
@@ -1979,6 +1979,7 @@
var styles = WINDOW.getComputedStyle(node, position);
var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
var fontWeight = styles.getPropertyValue('font-weight');
var content = styles.getPropertyValue('content');
if (alreadyProcessedPseudoElement && !fontFamily) {
// If we've already processed it but the current computed style does not result in a font-family,
@@ -1986,8 +1987,7 @@
// removed. So we now should delete the icon.
node.removeChild(alreadyProcessedPseudoElement);
return resolve();
} else if (fontFamily) {
var content = styles.getPropertyValue('content');
} else if (fontFamily && content !== 'none' && content !== '') {
var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
var iconName = byUnicode(prefix, hexValue);

View File

@@ -47,9 +47,9 @@
"node": ">=6"
},
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.26"
"@fortawesome/fontawesome-common-types": "^0.2.27"
},
"version": "1.2.26",
"version": "1.2.27",
"name": "@fortawesome/fontawesome-svg-core",
"main": "index.js",
"module": "index.es.js",