@unocss/core 0.28.1 → 0.28.2

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/index.cjs CHANGED
@@ -356,7 +356,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
356
356
  };
357
357
  }
358
358
 
359
- const version = "0.28.1";
359
+ const version = "0.28.2";
360
360
 
361
361
  class UnoGenerator {
362
362
  constructor(userConfig = {}, defaults = {}) {
@@ -552,15 +552,13 @@ class UnoGenerator {
552
552
  continue;
553
553
  if (typeof handler === "string")
554
554
  handler = { matcher: handler };
555
- if (handler) {
556
- processed = handler.matcher;
557
- if (Array.isArray(handler.parent))
558
- this.parentOrders.set(handler.parent[0], handler.parent[1]);
559
- handlers.push(handler);
560
- usedVariants.add(v);
561
- applied = true;
562
- break;
563
- }
555
+ processed = handler.matcher;
556
+ if (Array.isArray(handler.parent))
557
+ this.parentOrders.set(handler.parent[0], handler.parent[1]);
558
+ handlers.push(handler);
559
+ usedVariants.add(v);
560
+ applied = true;
561
+ break;
564
562
  }
565
563
  if (!applied)
566
564
  break;
package/dist/index.mjs CHANGED
@@ -352,7 +352,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
352
352
  };
353
353
  }
354
354
 
355
- const version = "0.28.1";
355
+ const version = "0.28.2";
356
356
 
357
357
  class UnoGenerator {
358
358
  constructor(userConfig = {}, defaults = {}) {
@@ -548,15 +548,13 @@ class UnoGenerator {
548
548
  continue;
549
549
  if (typeof handler === "string")
550
550
  handler = { matcher: handler };
551
- if (handler) {
552
- processed = handler.matcher;
553
- if (Array.isArray(handler.parent))
554
- this.parentOrders.set(handler.parent[0], handler.parent[1]);
555
- handlers.push(handler);
556
- usedVariants.add(v);
557
- applied = true;
558
- break;
559
- }
551
+ processed = handler.matcher;
552
+ if (Array.isArray(handler.parent))
553
+ this.parentOrders.set(handler.parent[0], handler.parent[1]);
554
+ handlers.push(handler);
555
+ usedVariants.add(v);
556
+ applied = true;
557
+ break;
560
558
  }
561
559
  if (!applied)
562
560
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",