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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
2
+ * Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  */
5
5
 
@@ -1,4 +1,4 @@
1
- // Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
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
- return _.map(data.stylesheet.rules, rule => {
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
1
  /**
2
- * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
2
+ * Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com
3
3
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
4
  */
@@ -1,4 +1,4 @@
1
- // Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgetss",
3
- "version": "5.3.21",
3
+ "version": "5.3.24",
4
4
  "description": "An extension for Titanium SDK that contains a set of Tailwind-like classes to easily and quickly create beautifully designed mobile apps.",
5
5
  "main": "index.js",
6
6
  "bin": {