Socket
Socket
Sign inDemoInstall

unplugin-vue-components

Package Overview
Dependencies
10
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.19.6 to 0.19.9

dist/chunk-EUNTLVSW.js

6

dist/esbuild.js
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
require('./chunk-TMX2H7L5.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');
require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');
// src/esbuild.ts
var esbuild_default = _chunkOUA4VSFEjs.unplugin_default.esbuild;
var esbuild_default = _chunkMF6CXARBjs.unplugin_default.esbuild;

@@ -10,0 +10,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');

@@ -8,3 +8,3 @@

var _chunkTMX2H7L5js = require('./chunk-TMX2H7L5.js');
var _chunkEUNTLVSWjs = require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');

@@ -16,2 +16,2 @@

exports.camelCase = _chunkTMX2H7L5js.camelCase; exports.default = _chunkOUA4VSFEjs.unplugin_default; exports.kebabCase = _chunkTMX2H7L5js.kebabCase; exports.pascalCase = _chunkTMX2H7L5js.pascalCase;
exports.camelCase = _chunkEUNTLVSWjs.camelCase; exports.default = _chunkMF6CXARBjs.unplugin_default; exports.kebabCase = _chunkEUNTLVSWjs.kebabCase; exports.pascalCase = _chunkEUNTLVSWjs.pascalCase;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
require('./chunk-TMX2H7L5.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');
require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');

@@ -11,7 +11,7 @@

config.plugins = config.plugins || [];
config.plugins.unshift(_chunkOUA4VSFEjs.unplugin_default.webpack(options));
config.plugins.unshift(_chunkMF6CXARBjs.unplugin_default.webpack(options));
});
this.nuxt.hook("vite:extend", async (vite) => {
vite.config.plugins = vite.config.plugins || [];
vite.config.plugins.push(_chunkOUA4VSFEjs.unplugin_default.vite(options));
vite.config.plugins.push(_chunkMF6CXARBjs.unplugin_default.vite(options));
});

@@ -18,0 +18,0 @@ }

@@ -434,2 +434,9 @@ import { ComponentResolver, ComponentResolveResult } from './types.js';

export { AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, DevResolverOptions, DevUiResolver, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, Vuetify3Resolver, VuetifyResolver, getResolved };
/**
* Resolver for BootstrapVue
*
* @link https://github.com/bootstrap-vue/bootstrap-vue
*/
declare function BootstrapVueResolver(): ComponentResolver;
export { AntDesignVueResolver, AntDesignVueResolverOptions, ArcoResolver, ArcoResolverOptions, BootstrapVueResolver, DevResolverOptions, DevUiResolver, ElementPlusResolver, ElementPlusResolverOptions, ElementUiResolver, ElementUiResolverOptions, HeadlessUiResolver, HeadlessUiResolverOptions, IduxResolver, IduxResolverOptions, InklineResolver, LayuiVueResolver, LayuiVueResolverOptions, NaiveUiResolver, PrimeVueResolver, PrimeVueResolverOptions, QuasarResolver, TDesignResolver, TDesignResolverOptions, VantResolver, VantResolverOptions, VarletUIResolver, VarletUIResolverOptions, VeuiResolver, VeuiResolverOptions, ViewUiResolver, VueUseComponentsResolver, Vuetify3Resolver, VuetifyResolver, getResolved };

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }

@@ -10,3 +10,3 @@

var _chunkTMX2H7L5js = require('./chunk-TMX2H7L5.js');
var _chunkEUNTLVSWjs = require('./chunk-EUNTLVSW.js');

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

if (!styleDir)
styleDir = _chunkTMX2H7L5js.kebabCase.call(void 0, compName);
styleDir = _chunkEUNTLVSWjs.kebabCase.call(void 0, compName);
return styleDir;

@@ -347,3 +347,3 @@ }

return;
const partialName = _chunkTMX2H7L5js.kebabCase.call(void 0, name.slice(2));
const partialName = _chunkEUNTLVSWjs.kebabCase.call(void 0, name.slice(2));
const { version, ssr } = options;

@@ -393,5 +393,5 @@ if (compareVersions.compare(version, "1.1.0-beta.1", ">=")) {

return optionsResolved;
optionsResolved = _chunkTMX2H7L5js.__spreadValues.call(void 0, {
optionsResolved = _chunkEUNTLVSWjs.__spreadValues.call(void 0, {
ssr: false,
version: await _chunkTMX2H7L5js.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
version: await _chunkEUNTLVSWjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
importStyle: "css",

@@ -442,3 +442,3 @@ directives: true,

const compName = name.slice(2);
const partialName = _chunkTMX2H7L5js.kebabCase.call(void 0, compName);
const partialName = _chunkEUNTLVSWjs.kebabCase.call(void 0, compName);
if (partialName === "collapse-transition") {

@@ -553,3 +553,3 @@ return {

const nameIndex = packageName === "pro" ? 2 : 1;
dirname = _chunkTMX2H7L5js.kebabCase.call(void 0, name).split("-")[nameIndex];
dirname = _chunkEUNTLVSWjs.kebabCase.call(void 0, name).split("-")[nameIndex];
}

@@ -720,6 +720,6 @@ const path = `@idux/${packageName}/${dirname}`;

// src/core/resolvers/vant.ts
var moduleType = _chunkTMX2H7L5js.isSSR ? "lib" : "es";
var moduleType = _chunkEUNTLVSWjs.isSSR ? "lib" : "es";
function getSideEffects4(dirName, options) {
const { importStyle = true } = options;
if (!importStyle || _chunkTMX2H7L5js.isSSR)
if (!importStyle || _chunkEUNTLVSWjs.isSSR)
return;

@@ -741,3 +741,3 @@ if (importStyle === "less")

from: `vant/${moduleType}`,
sideEffects: getSideEffects4(_chunkTMX2H7L5js.kebabCase.call(void 0, partialName), options)
sideEffects: getSideEffects4(_chunkEUNTLVSWjs.kebabCase.call(void 0, partialName), options)
};

@@ -761,5 +761,5 @@ }

if (importStyle === "less" || importLess)
sideEffects.push(`${path}/es/${_chunkTMX2H7L5js.kebabCase.call(void 0, name)}/style/less.js`);
sideEffects.push(`${path}/es/${_chunkEUNTLVSWjs.kebabCase.call(void 0, name)}/style/less.js`);
else
sideEffects.push(`${path}/es/${_chunkTMX2H7L5js.kebabCase.call(void 0, name)}/style`);
sideEffects.push(`${path}/es/${_chunkEUNTLVSWjs.kebabCase.call(void 0, name)}/style`);
}

@@ -804,3 +804,3 @@ return {

try {
const componentsData = _chunkTMX2H7L5js.__require.call(void 0, `${alias}/components.json`);
const componentsData = _chunkEUNTLVSWjs.__require.call(void 0, `${alias}/components.json`);
components3 = new Set(componentsData.map(({ name }) => name));

@@ -825,5 +825,5 @@ } catch (e) {

var formatters = {
"kebab-case": _chunkTMX2H7L5js.kebabCase,
"camelCase": _chunkTMX2H7L5js.camelCase,
"PascalCase": _chunkTMX2H7L5js.pascalCase
"kebab-case": _chunkEUNTLVSWjs.kebabCase,
"camelCase": _chunkEUNTLVSWjs.camelCase,
"PascalCase": _chunkEUNTLVSWjs.pascalCase
};

@@ -834,3 +834,3 @@ var peerPaths = /* @__PURE__ */ new Map();

try {
_chunkTMX2H7L5js.resolveImportPath.call(void 0, peerPath);
_chunkEUNTLVSWjs.resolveImportPath.call(void 0, peerPath);
peerPaths.set(peerPath, true);

@@ -887,3 +887,3 @@ } catch (e) {

if (compName.match(matcher.pattern)) {
compPath = `${matcher.compDir}/${_chunkTMX2H7L5js.kebabCase.call(void 0, compName)}.vue`;
compPath = `${matcher.compDir}/${_chunkEUNTLVSWjs.kebabCase.call(void 0, compName)}.vue`;
break;

@@ -893,3 +893,3 @@ }

if (!compPath)
compPath = _chunkTMX2H7L5js.kebabCase.call(void 0, compName);
compPath = _chunkEUNTLVSWjs.kebabCase.call(void 0, compName);
return compPath;

@@ -1003,3 +1003,3 @@ }

return;
const resolveId = _chunkTMX2H7L5js.kebabCase.call(void 0, name = name.slice(1));
const resolveId = _chunkEUNTLVSWjs.kebabCase.call(void 0, name = name.slice(1));
return {

@@ -1021,3 +1021,3 @@ from: LIB_NAME,

function DevUiResolver(options = {}) {
const config = _chunkTMX2H7L5js.__spreadValues.call(void 0, { directives: true, importStyle: true }, options);
const config = _chunkEUNTLVSWjs.__spreadValues.call(void 0, { directives: true, importStyle: true }, options);
const resolvers = [

@@ -1058,2 +1058,6 @@ { type: "component", resolve: componentsResolver }

{
pattern: /^CascaderPanel$/,
componentDir: "cascader"
},
{
pattern: /^CheckboxGroup$/,

@@ -1071,2 +1075,6 @@ componentDir: "checkbox"

{
pattern: /^DescriptionsItem$/,
componentDir: "descriptions"
},
{
pattern: /^(Doption|Dgroup|Dsubmenu|DropdownButton)$/,

@@ -1113,3 +1121,3 @@ componentDir: "dropdown"

pattern: /^(SkeletonLine|SkeletonShape)$/,
componentDir: "table"
componentDir: "skeleton"
},

@@ -1129,2 +1137,6 @@ {

{
pattern: /^TagGroup$/,
componentDir: "tag"
},
{
pattern: /^TabPane$/,

@@ -1140,6 +1152,2 @@ componentDir: "tabs"

componentDir: "typography"
},
{
pattern: /^DescriptionsItem$/,
componentDir: "descriptions"
}

@@ -1150,3 +1158,3 @@ ];

return void 0;
let componentDir = _chunkTMX2H7L5js.kebabCase.call(void 0, importName);
let componentDir = _chunkEUNTLVSWjs.kebabCase.call(void 0, importName);
for (const item of matchComponents3) {

@@ -1167,3 +1175,2 @@ if (item.pattern.test(importName)) {

resolve: (name) => {
var _a;
if (options.resolveIcons && name.match(/^Icon/)) {

@@ -1176,3 +1183,3 @@ return {

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

@@ -1194,3 +1201,3 @@ const config = {

const { library = "vue", importStyle = "css" } = options;
let fileName = _chunkTMX2H7L5js.kebabCase.call(void 0, importName);
let fileName = _chunkEUNTLVSWjs.kebabCase.call(void 0, importName);
if (!importStyle)

@@ -1380,2 +1387,12 @@ return;

// src/core/resolvers/bootstrap-vue.ts
function BootstrapVueResolver() {
return {
type: "component",
resolve: (name) => {
if (name.match(/^B[A-Z]/))
return { name, from: "bootstrap-vue" };
}
};
}

@@ -1402,3 +1419,5 @@

exports.AntDesignVueResolver = AntDesignVueResolver; exports.ArcoResolver = ArcoResolver; exports.DevUiResolver = DevUiResolver; exports.ElementPlusResolver = ElementPlusResolver; exports.ElementUiResolver = ElementUiResolver; exports.HeadlessUiResolver = HeadlessUiResolver; exports.IduxResolver = IduxResolver; exports.InklineResolver = InklineResolver; exports.LayuiVueResolver = LayuiVueResolver; exports.NaiveUiResolver = NaiveUiResolver; exports.PrimeVueResolver = PrimeVueResolver; exports.QuasarResolver = QuasarResolver; exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.VarletUIResolver = VarletUIResolver; exports.VeuiResolver = VeuiResolver; exports.ViewUiResolver = ViewUiResolver; exports.VueUseComponentsResolver = VueUseComponentsResolver; exports.Vuetify3Resolver = Vuetify3Resolver; exports.VuetifyResolver = VuetifyResolver; exports.getResolved = getResolved;
exports.AntDesignVueResolver = AntDesignVueResolver; exports.ArcoResolver = ArcoResolver; exports.BootstrapVueResolver = BootstrapVueResolver; exports.DevUiResolver = DevUiResolver; exports.ElementPlusResolver = ElementPlusResolver; exports.ElementUiResolver = ElementUiResolver; exports.HeadlessUiResolver = HeadlessUiResolver; exports.IduxResolver = IduxResolver; exports.InklineResolver = InklineResolver; exports.LayuiVueResolver = LayuiVueResolver; exports.NaiveUiResolver = NaiveUiResolver; exports.PrimeVueResolver = PrimeVueResolver; exports.QuasarResolver = QuasarResolver; exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.VarletUIResolver = VarletUIResolver; exports.VeuiResolver = VeuiResolver; exports.ViewUiResolver = ViewUiResolver; exports.VueUseComponentsResolver = VueUseComponentsResolver; exports.Vuetify3Resolver = Vuetify3Resolver; exports.VuetifyResolver = VuetifyResolver; exports.getResolved = getResolved;
exports.default = module.exports;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
require('./chunk-TMX2H7L5.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');
require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');
// src/rollup.ts
var rollup_default = _chunkOUA4VSFEjs.unplugin_default.rollup;
var rollup_default = _chunkMF6CXARBjs.unplugin_default.rollup;

@@ -10,0 +10,0 @@

@@ -88,4 +88,13 @@ import { FilterPattern } from '@rollup/pluginutils';

/**
* Collapse same prefixes (case-insensitive) of folders and components
* to prevent duplication inside namespaced component name
*
* Works when `directoryAsNamespace: true`
* @default false
*/
collapseSamePrefixes?: boolean;
/**
* Subdirectory paths for ignoring namespace prefixes
* works when `directoryAsNamespace: true`
*
* Works when `directoryAsNamespace: true`
* @default "[]"

@@ -115,3 +124,3 @@ */

*
* @see https://github.com/vuejs/vue-next/pull/3399
* @see https://github.com/vuejs/core/pull/3399
* @see https://github.com/johnsoncodehk/volar#using

@@ -118,0 +127,0 @@ * @default true

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
require('./chunk-TMX2H7L5.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');
require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');
// src/vite.ts
var vite_default = _chunkOUA4VSFEjs.unplugin_default.vite;
var vite_default = _chunkMF6CXARBjs.unplugin_default.vite;

@@ -10,0 +10,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkOUA4VSFEjs = require('./chunk-OUA4VSFE.js');
require('./chunk-TMX2H7L5.js');
var _chunkMF6CXARBjs = require('./chunk-MF6CXARB.js');
require('./chunk-EUNTLVSW.js');
require('./chunk-6F4PWJZI.js');
// src/webpack.ts
var webpack_default = _chunkOUA4VSFEjs.unplugin_default.webpack;
var webpack_default = _chunkMF6CXARBjs.unplugin_default.webpack;

@@ -10,0 +10,0 @@

{
"name": "unplugin-vue-components",
"version": "0.19.6",
"version": "0.19.9",
"packageManager": "pnpm@7.1.5",
"description": "Components auto importing for Vue",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/unplugin-vue-components",
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
"license": "MIT",
"author": "antfu <anthonyfu117@hotmail.com>",
"repository": {

@@ -14,6 +14,3 @@ "type": "git",

},
"funding": "https://github.com/sponsors/antfu",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bugs": "https://github.com/antfu/unplugin-vue-components/issues",
"exports": {

@@ -54,6 +51,5 @@ ".": {

},
"files": [
"dist",
"*.d.ts"
],
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "index.d.ts",
"typesVersions": {

@@ -66,2 +62,8 @@ "*": {

},
"files": [
"dist"
],
"engines": {
"node": ">=14"
},
"scripts": {

@@ -92,3 +94,3 @@ "build": "tsup && esno scripts/postbuild.ts",

"dependencies": {
"@antfu/utils": "^0.5.1",
"@antfu/utils": "^0.5.2",
"@rollup/pluginutils": "^4.2.1",

@@ -99,33 +101,30 @@ "chokidar": "^3.5.3",

"local-pkg": "^0.4.1",
"magic-string": "^0.26.1",
"minimatch": "^5.0.1",
"magic-string": "^0.26.2",
"minimatch": "^5.1.0",
"resolve": "^1.22.0",
"unplugin": "^0.6.3"
"unplugin": "^0.7.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.23.0",
"@babel/parser": "^7.17.10",
"@babel/traverse": "^7.17.10",
"@babel/types": "^7.17.10",
"@antfu/eslint-config": "^0.25.1",
"@babel/parser": "^7.18.5",
"@babel/traverse": "^7.18.5",
"@babel/types": "^7.18.4",
"@types/debug": "^4.1.7",
"@types/minimatch": "^3.0.5",
"@types/node": "^17.0.31",
"@types/node": "^18.0.0",
"@types/resolve": "^1.20.2",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"bumpp": "^7.1.1",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"bumpp": "^8.1.0",
"compare-versions": "^4.1.3",
"element-plus": "^2.2.0",
"eslint": "^8.15.0",
"esno": "^0.14.1",
"element-plus": "^2.2.5",
"eslint": "^8.17.0",
"esno": "^0.16.3",
"pathe": "^0.3.0",
"rollup": "^2.72.1",
"tsup": "5.12.7",
"typescript": "^4.6.4",
"vite": "^2.9.8",
"vitest": "^0.12.1",
"vue": "3.2.33"
},
"engines": {
"node": ">=14"
"rollup": "^2.75.6",
"tsup": "^6.1.2",
"typescript": "^4.7.3",
"vite": "^2.9.12",
"vitest": "^0.15.1",
"vue": "3.2.37"
}
}

@@ -169,3 +169,3 @@ # unplugin-vue-components

To get TypeScript support for auto-imported components, there is [a PR](https://github.com/vuejs/vue-next/pull/3399) to Vue 3 extending the interface of global components. Currently, [Volar](https://github.com/johnsoncodehk/volar) has supported this usage already. If you are using Volar, you can change the config as following to get the support.
To get TypeScript support for auto-imported components, there is [a PR](https://github.com/vuejs/core/pull/3399) to Vue 3 extending the interface of global components. Currently, [Volar](https://github.com/johnsoncodehk/volar) has supported this usage already. If you are using Volar, you can change the config as following to get the support.

@@ -172,0 +172,0 @@ ```ts

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc