Release 5.11.0 (#1436)

This commit is contained in:
Rob Madole
2019-09-18 12:10:06 -05:00
committed by GitHub
parent ad98aa363b
commit 3900f1b104
2041 changed files with 48106 additions and 8869 deletions

View File

@@ -1085,7 +1085,7 @@
mark: noop$1,
measure: noop$1
};
var preamble = "FA \"5.10.2\"";
var preamble = "FA \"5.11.0\"";
var begin = function begin(name) {
p.mark("".concat(preamble, " ").concat(name, " begins"));
@@ -1351,6 +1351,7 @@
var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
delete abstract[0].attributes.style;
delete abstract[0].attributes.id;
var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
if (cls === config.replacementClass || cls.match(forSvg)) {
acc.toSvg.push(cls);
@@ -1797,6 +1798,12 @@
return resolve(asFoundIcon(icon));
}
var headers = {};
if (_typeof(WINDOW.FontAwesomeKitConfig) === 'object' && typeof window.FontAwesomeKitConfig.token === 'string') {
headers['fa-kit-token'] = WINDOW.FontAwesomeKitConfig.token;
}
if (iconName && prefix && !config.showMissingIcons) {
reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
} else {