New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@windicss/plugin-utils

Package Overview
Dependencies
Maintainers
2
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windicss/plugin-utils - npm Package Compare versions

Comparing version 0.14.4 to 0.14.5

6

dist/index.d.ts

@@ -53,3 +53,3 @@ import * as windicss_types_interfaces from 'windicss/types/interfaces';

*
* @deprecated
* @deprecated define this field in the windicss.config.ts instead
*/

@@ -118,2 +118,3 @@ enableAll?: boolean;

* @default 'src'
* @deprecated use `extract.include` in the windicss.config.ts instead
*/

@@ -124,3 +125,4 @@ dirs?: string | string[];

*
* @default 'html', 'vue', 'md', 'mdx', 'pug', 'jsx', 'tsx', 'svelte'
* @default 'html', 'vue', 'md', 'mdx', 'pug', 'jsx', 'tsx', 'svelte', 'js', 'ts'
* @deprecated use `extract.include` in the windicss.config.ts instead
*/

@@ -127,0 +129,0 @@ fileExtensions?: string | string[];

@@ -298,2 +298,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __defProp = Object.defineProperty;

function DefaultExtractor(code, id) {
if ((id == null ? void 0 : id.endsWith(".css")) || (id == null ? void 0 : id.endsWith(".postcss"))) {
return {
classes: [],
tags: []
};
}
const classes = Array.from(code.matchAll(regexQuotedString)).flatMap((m) => (m[2] || "").split(regexClassSplitter)).filter(validClassName);

@@ -373,3 +379,3 @@ const tags = Array.from(code.matchAll(regexHtmlTag)).map((i) => i[1]);

async function resolveOptions(options = {}, utilsOptions = {}, loadConfigFile = false) {
var _a, _b, _c, _d, _e, _f;
var _a, _b, _c, _d, _e, _f, _g;
if (isResolvedOptions(options))

@@ -410,3 +416,3 @@ return options;

dirs: ["src"],
exclude: ["node_modules/**/*", ".git/**/*"],
exclude: [],
include: [],

@@ -417,5 +423,5 @@ runOnStartup: true,

}, typeof scan === "boolean" ? {} : scan);
scanOptions.exclude = mergeArrays((_b = config.extract) == null ? void 0 : _b.exclude, scanOptions.exclude).map((i) => slash(_path.resolve.call(void 0, root, i)));
scanOptions.include = mergeArrays((_c = config.extract) == null ? void 0 : _c.include, scanOptions.include, ((_d = config.extract) == null ? void 0 : _d.include) ? [] : buildGlobs(scanOptions.dirs, scanOptions.fileExtensions)).map((i) => slash(_path.resolve.call(void 0, root, i)));
scanOptions.extractors = mergeArrays(getDefaultExtractors(), (_e = config.extract) == null ? void 0 : _e.extractors);
scanOptions.exclude = mergeArrays((_b = config.extract) == null ? void 0 : _b.exclude, scanOptions.exclude, ((_c = config.extract) == null ? void 0 : _c.exclude) ? [] : ["node_modules/**/*", ".git/**/*"]).map((i) => slash(_path.resolve.call(void 0, root, i)));
scanOptions.include = mergeArrays((_d = config.extract) == null ? void 0 : _d.include, scanOptions.include, ((_e = config.extract) == null ? void 0 : _e.include) ? [] : buildGlobs(scanOptions.dirs, scanOptions.fileExtensions)).map((i) => slash(_path.resolve.call(void 0, root, i)));
scanOptions.extractors = mergeArrays(getDefaultExtractors(), (_f = config.extract) == null ? void 0 : _f.extractors);
const safelist = new Set(mergeArrays(config.safelist, options.safelist).flatMap((i) => i.split(" ")));

@@ -448,3 +454,3 @@ const blocklist = new Set(mergeArrays(config.blocklist, options.blocklist).flatMap((i) => i.split(" ")));

});
const modifiedOptions = await ((_f = resolvedOptions.onOptionsResolved) == null ? void 0 : _f.call(resolvedOptions, resolvedOptions));
const modifiedOptions = await ((_g = resolvedOptions.onOptionsResolved) == null ? void 0 : _g.call(resolvedOptions, resolvedOptions));
if (modifiedOptions != null && modifiedOptions !== resolvedOptions)

@@ -451,0 +457,0 @@ resolvedOptions = Object.assign(resolvedOptions, modifiedOptions);

{
"name": "@windicss/plugin-utils",
"description": "Common utils for building integrations of Windi CSS",
"version": "0.14.4",
"version": "0.14.5",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "module": "dist/index.mjs",

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