@unocss/core 0.55.3 → 0.55.4

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
@@ -15,6 +15,10 @@ function escapeSelector(str) {
15
15
  result += "\uFFFD";
16
16
  continue;
17
17
  }
18
+ if (codeUnit === 37) {
19
+ result += "\\%";
20
+ continue;
21
+ }
18
22
  if (codeUnit === 44) {
19
23
  result += "\\,";
20
24
  continue;
@@ -609,7 +613,7 @@ function mergeAutocompleteShorthands(shorthands) {
609
613
  );
610
614
  }
611
615
 
612
- const version = "0.55.3";
616
+ const version = "0.55.4";
613
617
 
614
618
  var __defProp = Object.defineProperty;
615
619
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -821,7 +825,7 @@ class UnoGenerator {
821
825
  if (!parent)
822
826
  return rules;
823
827
  const parents = parent.split(" $$ ");
824
- return `${parents.join("{")}{${nl}${rules}${nl}}${parents.map((_) => "").join("}")}`;
828
+ return `${parents.join("{")}{${nl}${rules}${nl}${"}".repeat(parents.length)}`;
825
829
  }).filter(Boolean).join(nl);
826
830
  if (preflights) {
827
831
  css = [preflightsMap[layer], css].filter(Boolean).join(nl);
package/dist/index.mjs CHANGED
@@ -13,6 +13,10 @@ function escapeSelector(str) {
13
13
  result += "\uFFFD";
14
14
  continue;
15
15
  }
16
+ if (codeUnit === 37) {
17
+ result += "\\%";
18
+ continue;
19
+ }
16
20
  if (codeUnit === 44) {
17
21
  result += "\\,";
18
22
  continue;
@@ -607,7 +611,7 @@ function mergeAutocompleteShorthands(shorthands) {
607
611
  );
608
612
  }
609
613
 
610
- const version = "0.55.3";
614
+ const version = "0.55.4";
611
615
 
612
616
  var __defProp = Object.defineProperty;
613
617
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -819,7 +823,7 @@ class UnoGenerator {
819
823
  if (!parent)
820
824
  return rules;
821
825
  const parents = parent.split(" $$ ");
822
- return `${parents.join("{")}{${nl}${rules}${nl}}${parents.map((_) => "").join("}")}`;
826
+ return `${parents.join("{")}{${nl}${rules}${nl}${"}".repeat(parents.length)}`;
823
827
  }).filter(Boolean).join(nl);
824
828
  if (preflights) {
825
829
  css = [preflightsMap[layer], css].filter(Boolean).join(nl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.55.3",
3
+ "version": "0.55.4",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",