Socket
Socket
Sign inDemoInstall

unplugin-vue-components

Package Overview
Dependencies
Maintainers
4
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-vue-components - npm Package Compare versions

Comparing version 0.27.2 to 0.27.3

dist/chunk-3RG5ZIWI.js

6

dist/esbuild.js
import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
} from "./chunk-YOHL3P33.js";
import {

@@ -8,4 +8,4 @@ camelCase,

pascalCase
} from "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -12,0 +12,0 @@ export {

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

@@ -7,8 +7,6 @@ import {

pascalCase
} from "./chunk-5LSX6IQN.js";
} from "./chunk-4KHLF5I7.js";
import {
__require,
__spreadProps,
__spreadValues
} from "./chunk-HMX3D6IV.js";
__require
} from "./chunk-3RG5ZIWI.js";

@@ -236,3 +234,3 @@ // src/core/resolvers/antdv.ts

const lib = options.cjs ? "lib" : "es";
const packageName = (options == null ? void 0 : options.packageName) || "ant-design-vue";
const packageName = options?.packageName || "ant-design-vue";
if (importStyle === "less" || importStyle === "css-in-js" || importLess) {

@@ -263,8 +261,6 @@ const styleDir = getStyleDir(compName);

function AntDesignVueResolver(options = {}) {
var _a;
const originPrefix = (_a = options.prefix) != null ? _a : "A";
const originPrefix = options.prefix ?? "A";
return {
type: "component",
resolve: (name) => {
var _a2;
if (options.resolveIcons && name.match(/(Outlined|Filled|TwoTone)$/)) {

@@ -277,3 +273,3 @@ return {

const [compName, prefix] = [name.slice(originPrefix.length), name.slice(0, originPrefix.length)];
if (prefix === originPrefix && isAntdv(compName) && !((_a2 = options == null ? void 0 : options.exclude) == null ? void 0 : _a2.includes(compName))) {
if (prefix === originPrefix && isAntdv(compName) && !options?.exclude?.includes(compName)) {
const { cjs = false, packageName = "ant-design-vue" } = options;

@@ -291,3 +287,3 @@ const path = `${packageName}/${cjs ? "lib" : "es"}`;

// node_modules/.pnpm/compare-versions@6.1.0/node_modules/compare-versions/lib/esm/utils.js
// node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/utils.js
var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;

@@ -330,3 +326,3 @@ var validateAndParse = (version) => {

// node_modules/.pnpm/compare-versions@6.1.0/node_modules/compare-versions/lib/esm/compareVersions.js
// node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/compareVersions.js
var compareVersions = (v1, v2) => {

@@ -348,3 +344,3 @@ const n1 = validateAndParse(v1);

// node_modules/.pnpm/compare-versions@6.1.0/node_modules/compare-versions/lib/esm/compare.js
// node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/compare.js
var compare = (v1, v2, operator) => {

@@ -457,3 +453,3 @@ assertValidOperator(operator);

return optionsResolved;
optionsResolved = __spreadValues({
optionsResolved = {
ssr: false,

@@ -465,4 +461,5 @@ version: await getPkgVersion("element-plus", "2.2.2"),

noStylesComponents: options.noStylesComponents || [],
nightly: false
}, options);
nightly: false,
...options
};
return optionsResolved;

@@ -476,3 +473,3 @@ }

if ([...options2.noStylesComponents, ...noStylesComponents].includes(name))
return resolveComponent(name, __spreadProps(__spreadValues({}, options2), { importStyle: false }));
return resolveComponent(name, { ...options2, importStyle: false });
else return resolveComponent(name, options2);

@@ -929,3 +926,3 @@ }

components3 = new Set(componentsData.map(({ name }) => name));
} catch (e) {
} catch {
throw new Error("[unplugin-vue-components:veui] VEUI is not installed");

@@ -958,3 +955,3 @@ }

peerPaths.set(peerPath, true);
} catch (e) {
} catch {
peerPaths.set(peerPath, false);

@@ -1183,3 +1180,3 @@ }

function DevUiResolver(options = {}) {
const config = __spreadValues({ directives: true, importStyle: true, ssr: false }, options);
const config = { directives: true, importStyle: true, ssr: false, ...options };
const resolvers = [

@@ -1364,3 +1361,2 @@ {

function getResolveIconPrefix(options) {
var _a;
if (canResolveIcons(options)) {

@@ -1370,3 +1366,3 @@ if (typeof options === "boolean" && options)

else if (options.enable)
return (_a = options.iconPrefix) != null ? _a : "";
return options.iconPrefix ?? "";
else

@@ -1381,3 +1377,2 @@ return "";

resolve: (name) => {
var _a;
if (canResolveIcons(options.resolveIcons)) {

@@ -1398,3 +1393,3 @@ const iconPrefix = pascalCase(getResolveIconPrefix(options.resolveIcons));

if (name.match(/^A[A-Z]/) && !isExclude(name, options.exclude)) {
const importStyle = (_a = options.importStyle) != null ? _a : "css";
const importStyle = options.importStyle ?? "css";
const importName = name.slice(1);

@@ -1530,3 +1525,3 @@ const config = {

var layerRE = /^(layer|LayLayer)$/;
var iconsRE = /^([A-Z][\w]+Icon|LayIcon)$/;
var iconsRE = /^[A-Z]\w+Icon$/;
var libName = "@layui/layui-vue";

@@ -1592,5 +1587,5 @@ function lowerCamelCase(str) {

BCheck: "BFormCheckbox",
BCheckGroup: "BFormCheckboxGroup",
BCheckbox: "BFormCheckbox",
BCheckboxGroup: "BFormCheckboxGroup",
BCheckGroup: "BFormCheckboxGroup",
BDatalist: "BFormDatalist",

@@ -1627,3 +1622,3 @@ BDatepicker: "BFormDatepicker",

function BootstrapVueResolver(_options = {}) {
const options = __spreadValues({ directives: true }, _options);
const options = { directives: true, ..._options };
const resolvers = [{

@@ -1656,3 +1651,3 @@ type: "component",

function BootstrapVueNextResolver(_options = {}) {
const options = __spreadValues({ directives: true }, _options);
const options = { directives: true, ..._options };
const resolvers = [{

@@ -1677,3 +1672,3 @@ type: "component",

function BootstrapVue3Resolver(_options = {}) {
const options = __spreadValues({ directives: true }, _options);
const options = { directives: true, ..._options };
const resolvers = [{

@@ -1680,0 +1675,0 @@ type: "component",

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

import {
unplugin_default
} from "./chunk-DLVGSKLE.js";
import "./chunk-5LSX6IQN.js";
import "./chunk-HMX3D6IV.js";
} from "./chunk-YOHL3P33.js";
import "./chunk-4KHLF5I7.js";
import "./chunk-3RG5ZIWI.js";
import "./chunk-6F4PWJZI.js";

@@ -7,0 +7,0 @@

{
"name": "unplugin-vue-components",
"type": "module",
"version": "0.27.2",
"packageManager": "pnpm@9.4.0",
"version": "0.27.3",
"packageManager": "pnpm@9.5.0",
"description": "Components auto importing for Vue",

@@ -105,16 +105,16 @@ "author": "antfu <anthonyfu117@hotmail.com>",

"mlly": "^1.7.1",
"unplugin": "^1.10.1"
"unplugin": "^1.11.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
"@babel/parser": "^7.24.7",
"@babel/types": "^7.24.7",
"@nuxt/kit": "^3.12.2",
"@antfu/eslint-config": "^2.22.4",
"@babel/parser": "^7.24.8",
"@babel/types": "^7.24.9",
"@nuxt/kit": "^3.12.3",
"@types/debug": "^4.1.12",
"@types/minimatch": "^5.1.2",
"@types/node": "^20.14.9",
"@types/node": "^20.14.10",
"bumpp": "^9.4.1",
"compare-versions": "^6.1.0",
"element-plus": "^2.7.6",
"eslint": "^9.5.0",
"compare-versions": "^6.1.1",
"element-plus": "^2.7.7",
"eslint": "^9.7.0",
"eslint-plugin-format": "^0.1.2",

@@ -124,9 +124,9 @@ "esno": "^4.7.0",

"pathe": "^1.1.2",
"rollup": "^4.18.0",
"rollup": "^4.18.1",
"tsup": "^8.1.0",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"vitest": "^1.6.0",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vitest": "^2.0.3",
"vue": "3.2.45"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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