Socket
Socket
Sign inDemoInstall

@unocss/core

Package Overview
Dependencies
Maintainers
1
Versions
370
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.52.7 to 0.53.0

87

dist/index.d.ts

@@ -732,12 +732,57 @@ import { LoadConfigResult } from 'unconfig';

}
interface ExtraContentOptions {
interface ContentOptions {
/**
* Glob patterns to match the files to be extracted
* In dev mode, the files will be watched and trigger HMR
* Glob patterns to extract from the file system, in addition to other content sources.
*
* In dev mode, the files will be watched and trigger HMR.
*
* @default []
*/
filesystem?: string[];
/**
* Plain text to be extracted
* Inline text to be extracted
*/
plain?: string[];
inline?: (string | {
code: string;
id?: string;
} | (() => Awaitable<string | {
code: string;
id?: string;
}>))[];
/**
* Filters to determine whether to extract certain modules from the build tools' transformation pipeline.
*
* Currently only works for Vite and Webpack integration.
*
* Set `false` to disable.
*/
pipeline?: false | {
/**
* Patterns that filter the files being extracted.
* Supports regular expressions and `picomatch` glob patterns.
*
* By default, `.ts` and `.js` files are NOT extracted.
*
* @see https://www.npmjs.com/package/picomatch
* @default [/\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/]
*/
include?: FilterPattern;
/**
* Patterns that filter the files NOT being extracted.
* Supports regular expressions and `picomatch` glob patterns.
*
* By default, `node_modules` and `dist` are also extracted.
*
* @see https://www.npmjs.com/package/picomatch
* @default [/\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/]
*/
exclude?: FilterPattern;
};
/**
* @deprecated Renamed to `inline`
*/
plain?: (string | {
code: string;
id?: string;
})[];
}

@@ -759,17 +804,31 @@ /**

/**
* Patterns that filter the files being extracted.
* Custom transformers to the source code
*/
include?: FilterPattern;
transformers?: SourceCodeTransformer[];
/**
* Patterns that filter the files NOT being extracted.
* Options for sources to be extracted as utilities usages
*
* Supported sources:
* - `filesystem` - extract from file system
* - `plain` - extract from plain inline text
* - `pipeline` - extract from build tools' transformation pipeline, such as Vite and Webpack
*
* The usage extracted from each source will be **merged** together.
*/
exclude?: FilterPattern;
content?: ContentOptions;
/** ========== DEPRECATED OPTIONS ========== **/
/**
* Custom transformers to the source code
* @deprecated Renamed to `content`
*/
transformers?: SourceCodeTransformer[];
extraContent?: ContentOptions;
/**
* Extra content outside of build pipeline (assets, backend, etc.) to be extracted
* Patterns that filter the files being extracted.
* @deprecated moved to `content.pipeline.include`
*/
extraContent?: ExtraContentOptions;
include?: FilterPattern;
/**
* Patterns that filter the files NOT being extracted.
* @deprecated moved to `content.pipeline.exclude`
*/
exclude?: FilterPattern;
}

@@ -891,2 +950,2 @@ interface UserConfig<Theme extends {} = {}> extends ConfigBase<Theme>, UserOnlyOptions<Theme>, GeneratorOptions, PluginOptions, CliOptions {

export { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BetterMap, BlocklistRule, CONTROL_SHORTCUT_NO_MERGE, CSSColorValue, CSSEntries, CSSObject, CSSValue, CSSValues, CliEntryItem, CliOptions, ConfigBase, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, ExtraContentOptions, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, ParsedColorValue, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetOptions, RGBAColorValue, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, Shift, Shortcut, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, ToArray, TransformResult, TwoKeyMap, UnoGenerator, UnocssPluginContext, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, ValueHandler, ValueHandlerCallback, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject, attributifyRE, clearIdenticalEntries, clone, collapseVariantGroup, createGenerator, createValueHandler, cssIdRE, defaultSplitRE, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit as extractorDefault, extractorSplit, hasScopePlaceholder, isAttributifySelector, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, makeRegexClassGroup, mergeConfigs, mergeDeep, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, parseVariantGroup, regexScopePlaceholder, resolveConfig, resolvePreset, resolvePresets, resolveShortcuts, splitWithVariantGroupRE, toArray, toEscapedSelector, uniq, validateFilterRE, warnOnce, withLayer };
export { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BetterMap, BlocklistRule, CONTROL_SHORTCUT_NO_MERGE, CSSColorValue, CSSEntries, CSSObject, CSSValue, CSSValues, CliEntryItem, CliOptions, ConfigBase, ContentOptions, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, ParsedColorValue, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetOptions, RGBAColorValue, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, Shift, Shortcut, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, ToArray, TransformResult, TwoKeyMap, UnoGenerator, UnocssPluginContext, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, ValueHandler, ValueHandlerCallback, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject, attributifyRE, clearIdenticalEntries, clone, collapseVariantGroup, createGenerator, createValueHandler, cssIdRE, defaultSplitRE, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit as extractorDefault, extractorSplit, hasScopePlaceholder, isAttributifySelector, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, makeRegexClassGroup, mergeConfigs, mergeDeep, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, parseVariantGroup, regexScopePlaceholder, resolveConfig, resolvePreset, resolvePresets, resolveShortcuts, splitWithVariantGroupRE, toArray, toEscapedSelector, uniq, validateFilterRE, warnOnce, withLayer };

2

package.json
{
"name": "@unocss/core",
"version": "0.52.7",
"version": "0.53.0",
"description": "The instant on-demand Atomic CSS engine.",

@@ -5,0 +5,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