@fortawesome/fontawesome
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -13,3 +13,3 @@ export as namespace fontawesome; | ||
assembler: ( | ||
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void | ||
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void | ||
) => void | ||
@@ -29,3 +29,3 @@ ): Layer; | ||
assembler: ( | ||
addLayerCallback: (layerToAdd: IconLookup | IconLookup[]) => void | ||
addLayerCallback: (layerToAdd: IconOrText | IconOrText[]) => void | ||
) => void | ||
@@ -87,2 +87,3 @@ ): Layer; | ||
} | ||
type IconOrText = Icon | Text; | ||
export interface Attributes { | ||
@@ -122,2 +123,2 @@ [key: string]: number | string; | ||
reset(): void; | ||
} | ||
} |
/*! | ||
* Font Awesome Free 5.0.5 by @fontawesome - http://fontawesome.com | ||
* License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
* Font Awesome Free 5.0.7 by @fontawesome - https://fontawesome.com | ||
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
*/ | ||
@@ -606,3 +606,3 @@ var noop = function noop() {}; | ||
var p = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$2, measure: noop$2 }; | ||
var preamble = 'FA "5.0.5"'; | ||
var preamble = 'FA "5.0.7"'; | ||
@@ -889,2 +889,4 @@ var begin = function begin(name) { | ||
var mo = null; | ||
function observe(options) { | ||
@@ -898,3 +900,3 @@ if (!MUTATION_OBSERVER) return; | ||
var mo = new MUTATION_OBSERVER(function (objects) { | ||
mo = new MUTATION_OBSERVER(function (objects) { | ||
if (disabled) return; | ||
@@ -937,2 +939,8 @@ | ||
function disconnect() { | ||
if (!mo) return; | ||
mo.disconnect(); | ||
} | ||
var styleParser = function (node) { | ||
@@ -1585,4 +1593,6 @@ var style = node.getAttribute('style'); | ||
var library = new Library(); | ||
var noAuto = function noAuto() { | ||
return auto(false); | ||
auto(false); | ||
disconnect(); | ||
}; | ||
@@ -1716,3 +1726,3 @@ | ||
assembler(function (args) { | ||
Array.isArray(args) ? children = args.map(function (a) { | ||
Array.isArray(args) ? args.map(function (a) { | ||
children = children.concat(a.abstract); | ||
@@ -1719,0 +1729,0 @@ }) : children = children.concat(args.abstract); |
22
index.js
/*! | ||
* Font Awesome Free 5.0.5 by @fontawesome - http://fontawesome.com | ||
* License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
* Font Awesome Free 5.0.7 by @fontawesome - https://fontawesome.com | ||
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) | ||
*/ | ||
@@ -612,3 +612,3 @@ (function (global, factory) { | ||
var p = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : { mark: noop$2, measure: noop$2 }; | ||
var preamble = 'FA "5.0.5"'; | ||
var preamble = 'FA "5.0.7"'; | ||
@@ -895,2 +895,4 @@ var begin = function begin(name) { | ||
var mo = null; | ||
function observe(options) { | ||
@@ -904,3 +906,3 @@ if (!MUTATION_OBSERVER) return; | ||
var mo = new MUTATION_OBSERVER(function (objects) { | ||
mo = new MUTATION_OBSERVER(function (objects) { | ||
if (disabled) return; | ||
@@ -943,2 +945,8 @@ | ||
function disconnect() { | ||
if (!mo) return; | ||
mo.disconnect(); | ||
} | ||
var styleParser = function (node) { | ||
@@ -1591,4 +1599,6 @@ var style = node.getAttribute('style'); | ||
var library = new Library(); | ||
var noAuto = function noAuto() { | ||
return auto(false); | ||
auto(false); | ||
disconnect(); | ||
}; | ||
@@ -1722,3 +1732,3 @@ | ||
assembler(function (args) { | ||
Array.isArray(args) ? children = args.map(function (a) { | ||
Array.isArray(args) ? args.map(function (a) { | ||
children = children.concat(a.abstract); | ||
@@ -1725,0 +1735,0 @@ }) : children = children.concat(args.abstract); |
@@ -50,5 +50,5 @@ { | ||
"dependencies": { | ||
"@fortawesome/fontawesome-common-types": "^0.1.2" | ||
"@fortawesome/fontawesome-common-types": "^0.1.3" | ||
}, | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"name": "@fortawesome/fontawesome", | ||
@@ -55,0 +55,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
127729
3397