@unocss/core 0.45.1 → 0.45.5

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
@@ -284,7 +284,7 @@ function createValueHandler(handlers) {
284
284
  return handler;
285
285
  }
286
286
 
287
- const splitCode = (code) => code.split(/[\s'"`;=]+/g).filter(isValidSelector);
287
+ const splitCode = (code) => code.split(/\\?[\s'"`;=]+/g).filter(isValidSelector);
288
288
  const extractorSplit = {
289
289
  name: "split",
290
290
  order: 0,
@@ -417,7 +417,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
417
417
  };
418
418
  }
419
419
 
420
- const version = "0.45.1";
420
+ const version = "0.45.5";
421
421
 
422
422
  class UnoGenerator {
423
423
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.d.ts CHANGED
@@ -100,7 +100,7 @@ declare function clone<T>(val: T): T;
100
100
  declare function isStaticRule(rule: Rule): rule is StaticRule;
101
101
  declare function isStaticShortcut(sc: Shortcut): sc is StaticShortcut;
102
102
 
103
- declare function toArray<T>(value?: T | readonly T[]): T[];
103
+ declare function toArray<T>(value?: T | T[]): T[];
104
104
  declare function uniq<T>(value: T[]): T[];
105
105
  declare function mergeSet<T>(target: Set<T>, append: Set<T>): Set<T>;
106
106
  declare function isString(s: any): s is string;
package/dist/index.mjs CHANGED
@@ -280,7 +280,7 @@ function createValueHandler(handlers) {
280
280
  return handler;
281
281
  }
282
282
 
283
- const splitCode = (code) => code.split(/[\s'"`;=]+/g).filter(isValidSelector);
283
+ const splitCode = (code) => code.split(/\\?[\s'"`;=]+/g).filter(isValidSelector);
284
284
  const extractorSplit = {
285
285
  name: "split",
286
286
  order: 0,
@@ -413,7 +413,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
413
413
  };
414
414
  }
415
415
 
416
- const version = "0.45.1";
416
+ const version = "0.45.5";
417
417
 
418
418
  class UnoGenerator {
419
419
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.45.1",
3
+ "version": "0.45.5",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",