purgetss 5.3.19 → 5.3.20

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.
Files changed (2) hide show
  1. package/index.js +1 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2224,8 +2224,7 @@ function purgeTailwind(uniqueClasses) {
2224
2224
  if (classesWithOpacityValues.length > 0) {
2225
2225
  purgedClasses += '\n// Styles with color opacity modifiers\n';
2226
2226
  classesWithOpacityValues.forEach(opacityValue => {
2227
- let opacityIndex = _.findIndex(tailwindClasses, line => line.startsWith(`'.${opacityValue.className}`));
2228
-
2227
+ let opacityIndex = _.findIndex(tailwindClasses, line => line.startsWith(`'.${opacityValue.theClassName}`));
2229
2228
  if (opacityIndex > -1) {
2230
2229
  //! TODO: Check if color value is a hex value!! (if not, they are using rbg, rgba or semantic colors)
2231
2230
  //! In other words, we need to validate the color value, before we can alter its opacity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgetss",
3
- "version": "5.3.19",
3
+ "version": "5.3.20",
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": {