purgetss 5.3.21 → 5.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fontawesome.js
CHANGED
package/dist/fontawesome.tss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Font Awesome Free 6.
|
|
1
|
+
// Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com
|
|
2
2
|
// License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
3
3
|
|
|
4
4
|
// Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons
|
package/index.js
CHANGED
|
@@ -765,13 +765,15 @@ function getRules(data) {
|
|
|
765
765
|
}
|
|
766
766
|
|
|
767
767
|
function getFontFamily(data) {
|
|
768
|
-
|
|
768
|
+
let allFontFamilies = _.map(data.stylesheet.rules, rule => {
|
|
769
769
|
if (rule.type === 'font-face') {
|
|
770
770
|
let something = rule.declarations.filter(declaration => declaration.property === 'font-family').map(declaration => declaration.value)[0];
|
|
771
771
|
something = something.replace(/'(.*?)'/g, (_match, p1) => p1);
|
|
772
772
|
return something;
|
|
773
773
|
}
|
|
774
774
|
}).filter(rule => rule);
|
|
775
|
+
|
|
776
|
+
return Array.from(new Set(allFontFamilies));
|
|
775
777
|
}
|
|
776
778
|
|
|
777
779
|
function findPrefix(rules) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Font Awesome Free 6.
|
|
1
|
+
// Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com
|
|
2
2
|
// License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
3
3
|
|
|
4
4
|
// Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons
|
package/package.json
CHANGED