Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unocss/core

Package Overview
Dependencies
Maintainers
2
Versions
390
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unocss/core - npm Package Compare versions

Comparing version 0.65.2 to 0.65.3

33

dist/index.d.ts

@@ -139,11 +139,11 @@ import MagicString from 'magic-string';

defaults: UserConfigDefaults<Theme>;
version: string;
private _cache;
readonly version: string;
readonly events: Emitter<{
config: (config: ResolvedConfig<Theme>) => void;
}>;
config: ResolvedConfig<Theme>;
cache: Map<string, StringifiedUtil<Theme>[] | null>;
blocked: Set<string>;
parentOrders: Map<string, number>;
activatedRules: Set<Rule<Theme>>;
events: Emitter<{
config: (config: ResolvedConfig<Theme>) => void;
}>;
protected constructor(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>);

@@ -776,11 +776,25 @@ static create<Theme extends object = object>(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): Promise<UnoGeneratorInternal<Theme>>;

interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
/**
* Singleton promise for config loading
*/
ready: Promise<LoadConfigResult<Config>>;
/**
* The UnoCSS generator instance. Should be used after `ready` resolved.
*/
uno: UnoGenerator;
/** All tokens scanned */
/**
* All tokens scanned
*/
tokens: Set<string>;
/** Map for all module's raw content */
/**
* Map for all module's raw content
*/
modules: BetterMap<string, string>;
/** Module IDs that been affected by UnoCSS */
/**
* Module IDs that been affected by UnoCSS
*/
affectedModules: Set<string>;
/** Pending promises */
/**
* Pending promises
*/
tasks: Promise<any>[];

@@ -1065,2 +1079,3 @@ /**

declare function definePreset<Options extends object | undefined = undefined, Theme extends object = object>(preset: PresetFactory<Theme, Options>): PresetFactory<Theme, Options>;
declare function definePreset<Options extends object | undefined = undefined, Theme extends object = object>(preset: PresetFactoryAwaitable<Theme, Options>): PresetFactoryAwaitable<Theme, Options>;
declare function definePreset<Theme extends object = object>(preset: Preset<Theme>): Preset<Theme>;

@@ -1067,0 +1082,0 @@

{
"name": "@unocss/core",
"type": "module",
"version": "0.65.2",
"version": "0.65.3",
"description": "The instant on-demand Atomic CSS engine.",

@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc