@unocss/core 0.57.7 → 0.58.1

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/README.md CHANGED
@@ -9,4 +9,3 @@ Please refer to the [documentation](https://unocss.dev/tools/core).
9
9
  ## License
10
10
 
11
11
  MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)
12
-
package/dist/index.cjs CHANGED
@@ -590,7 +590,7 @@ function definePreset(preset) {
590
590
  return preset;
591
591
  }
592
592
 
593
- const version = "0.57.7";
593
+ const version = "0.58.1";
594
594
 
595
595
  var __defProp = Object.defineProperty;
596
596
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -1082,7 +1082,7 @@ function createGenerator(config, defaults) {
1082
1082
  }
1083
1083
  const regexScopePlaceholder = /\s\$\$\s+/g;
1084
1084
  function hasScopePlaceholder(css) {
1085
- return css.match(/\s\$\$\s/);
1085
+ return regexScopePlaceholder.test(css);
1086
1086
  }
1087
1087
  function applyScope(css, scope) {
1088
1088
  if (hasScopePlaceholder(css))
package/dist/index.d.cts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
685
685
  */
686
686
  interface CliOptions {
687
687
  cli?: {
688
- entry?: CliEntryItem | CliEntryItem[];
688
+ entry?: Arrayable<CliEntryItem>;
689
689
  };
690
690
  }
691
691
  interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
package/dist/index.d.mts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
685
685
  */
686
686
  interface CliOptions {
687
687
  cli?: {
688
- entry?: CliEntryItem | CliEntryItem[];
688
+ entry?: Arrayable<CliEntryItem>;
689
689
  };
690
690
  }
691
691
  interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
package/dist/index.d.ts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
@@ -685,7 +685,7 @@ interface UserOnlyOptions<Theme extends object = object> {
685
685
  */
686
686
  interface CliOptions {
687
687
  cli?: {
688
- entry?: CliEntryItem | CliEntryItem[];
688
+ entry?: Arrayable<CliEntryItem>;
689
689
  };
690
690
  }
691
691
  interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
package/dist/index.mjs CHANGED
@@ -588,7 +588,7 @@ function definePreset(preset) {
588
588
  return preset;
589
589
  }
590
590
 
591
- const version = "0.57.7";
591
+ const version = "0.58.1";
592
592
 
593
593
  var __defProp = Object.defineProperty;
594
594
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -1080,7 +1080,7 @@ function createGenerator(config, defaults) {
1080
1080
  }
1081
1081
  const regexScopePlaceholder = /\s\$\$\s+/g;
1082
1082
  function hasScopePlaceholder(css) {
1083
- return css.match(/\s\$\$\s/);
1083
+ return regexScopePlaceholder.test(css);
1084
1084
  }
1085
1085
  function applyScope(css, scope) {
1086
1086
  if (hasScopePlaceholder(css))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.57.7",
3
+ "version": "0.58.1",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",