Socket
Socket
Sign inDemoInstall

unplugin-vue-components

Package Overview
Dependencies
Maintainers
2
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.22.11 to 0.22.12

dist/chunk-44ONIEX7.js

6

dist/esbuild.js
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
require('./chunk-DLADAJMI.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -9,3 +9,3 @@ require('./chunk-6F4PWJZI.js');

// src/esbuild.ts
var esbuild_default = _chunkIBVXRXR4js.unplugin_default.esbuild;
var esbuild_default = _chunkL42GFWTAjs.unplugin_default.esbuild;

@@ -12,0 +12,0 @@

@@ -7,3 +7,3 @@ import { Options } from './types.js';

declare const _default: unplugin.UnpluginInstance<Options, false>;
declare const _default: unplugin.UnpluginInstance<Options, boolean>;

@@ -10,0 +10,0 @@ declare function pascalCase(str: string): string;

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');

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

var _chunkDLADAJMIjs = require('./chunk-DLADAJMI.js');
var _chunk44ONIEX7js = require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -17,2 +17,2 @@ require('./chunk-6F4PWJZI.js');

exports.camelCase = _chunkDLADAJMIjs.camelCase; exports.default = _chunkIBVXRXR4js.unplugin_default; exports.kebabCase = _chunkDLADAJMIjs.kebabCase; exports.pascalCase = _chunkDLADAJMIjs.pascalCase;
exports.camelCase = _chunk44ONIEX7js.camelCase; exports.default = _chunkL42GFWTAjs.unplugin_default; exports.kebabCase = _chunk44ONIEX7js.kebabCase; exports.pascalCase = _chunk44ONIEX7js.pascalCase;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
require('./chunk-DLADAJMI.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -12,7 +12,7 @@ require('./chunk-6F4PWJZI.js');

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

@@ -19,0 +19,0 @@ }

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

esm?: boolean;
/**
* exclude component name, if match do not resolve the name
*
*/
exclude?: string | RegExp | (string | RegExp)[];
}

@@ -455,0 +460,0 @@ declare function TDesignResolver(options?: TDesignResolverOptions): ComponentResolver;

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

var _chunkDLADAJMIjs = require('./chunk-DLADAJMI.js');
var _chunk44ONIEX7js = require('./chunk-44ONIEX7.js');

@@ -170,3 +170,3 @@

if (!styleDir)
styleDir = _chunkDLADAJMIjs.kebabCase.call(void 0, compName);
styleDir = _chunk44ONIEX7js.kebabCase.call(void 0, compName);
return styleDir;

@@ -337,3 +337,3 @@ }

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

@@ -386,3 +386,3 @@ if (compare(version, "1.1.0-beta.1", ">=")) {

ssr: false,
version: await _chunkDLADAJMIjs.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
version: await _chunk44ONIEX7js.getPkgVersion.call(void 0, "element-plus", "2.2.2"),
importStyle: "css",

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

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

@@ -551,3 +551,3 @@ return {

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

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

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

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

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

@@ -751,3 +751,3 @@ }

// src/core/resolvers/varlet-ui.ts
var varFunctions = ["ImagePreview", "Snackbar", "Picker", "ActionSheet", "Dialog", "Locale", "StyleProvider"];
var varFunctions = ["ImagePreview", "Snackbar", "Picker", "ActionSheet", "Dialog", "Locale", "StyleProvider", "LoadingBar"];
var varDirectives = ["Ripple", "Lazy"];

@@ -766,5 +766,5 @@ function getResolved(name, options) {

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

@@ -831,5 +831,5 @@ return {

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

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

try {
_chunkDLADAJMIjs.resolveImportPath.call(void 0, peerPath);
_chunk44ONIEX7js.resolveImportPath.call(void 0, peerPath);
peerPaths.set(peerPath, true);

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

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

@@ -901,3 +901,3 @@ }

if (!compPath)
compPath = _chunkDLADAJMIjs.kebabCase.call(void 0, compName);
compPath = _chunk44ONIEX7js.kebabCase.call(void 0, compName);
return compPath;

@@ -1031,3 +1031,3 @@ }

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

@@ -1040,3 +1040,3 @@ name,

function directivesResolver(name, { ssr }) {
const resolveId = _chunkDLADAJMIjs.kebabCase.call(void 0, name);
const resolveId = _chunk44ONIEX7js.kebabCase.call(void 0, name);
return {

@@ -1189,3 +1189,3 @@ name: `${name}Directive`,

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

@@ -1228,3 +1228,3 @@ if (item.pattern.test(importName)) {

if (canResolveIcons(options.resolveIcons)) {
const iconPrefix = _chunkDLADAJMIjs.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
const iconPrefix = _chunk44ONIEX7js.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
const newNameRegexp = new RegExp(`^${iconPrefix}Icon`);

@@ -1260,3 +1260,3 @@ if (newNameRegexp.test(name)) {

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

@@ -1304,4 +1304,6 @@ return;

resolve: (name) => {
const { library = "vue" } = options;
const { library = "vue", exclude } = options;
const importFrom = options.esm ? "/esm" : "";
if (options.exclude && isExclude(name, exclude))
return;
if (options.resolveIcons && name.match(/[a-z]Icon$/)) {

@@ -1324,2 +1326,15 @@ return {

}
function isExclude(name, exclude) {
if (typeof exclude === "string")
return name === exclude;
if (exclude instanceof RegExp)
return !!name.match(exclude);
if (Array.isArray(exclude)) {
for (const item of exclude) {
if (name === item || name.match(item))
return true;
}
}
return false;
}

@@ -1427,3 +1442,3 @@ // src/core/resolvers/layui-vue.ts

let name;
if (options.exclude && isExclude(importName, options.exclude))
if (options.exclude && isExclude2(importName, options.exclude))
return void 0;

@@ -1442,3 +1457,3 @@ if (options.resolveIcons && importName.match(iconsRE)) {

}
function isExclude(name, exclude) {
function isExclude2(name, exclude) {
for (const item of exclude) {

@@ -1445,0 +1460,0 @@ if (name === item || name.match(item))

@@ -7,4 +7,4 @@ import * as rollup from 'rollup';

declare const _default: (options: Options) => rollup.Plugin;
declare const _default: (options: Options) => rollup.Plugin | rollup.Plugin[];
export { _default as default };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
require('./chunk-DLADAJMI.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -9,3 +9,3 @@ require('./chunk-6F4PWJZI.js');

// src/rollup.ts
var rollup_default = _chunkIBVXRXR4js.unplugin_default.rollup;
var rollup_default = _chunkL42GFWTAjs.unplugin_default.rollup;

@@ -12,0 +12,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
require('./chunk-DLADAJMI.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -9,3 +9,3 @@ require('./chunk-6F4PWJZI.js');

// src/vite.ts
var vite_default = _chunkIBVXRXR4js.unplugin_default.vite;
var vite_default = _chunkL42GFWTAjs.unplugin_default.vite;

@@ -12,0 +12,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkIBVXRXR4js = require('./chunk-IBVXRXR4.js');
require('./chunk-DLADAJMI.js');
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
require('./chunk-BTQOTIPQ.js');

@@ -9,3 +9,3 @@ require('./chunk-6F4PWJZI.js');

// src/webpack.ts
var webpack_default = _chunkIBVXRXR4js.unplugin_default.webpack;
var webpack_default = _chunkL42GFWTAjs.unplugin_default.webpack;

@@ -12,0 +12,0 @@

{
"name": "unplugin-vue-components",
"version": "0.22.11",
"version": "0.22.12",
"packageManager": "pnpm@7.13.4",

@@ -87,3 +87,3 @@ "description": "Components auto importing for Vue",

"dependencies": {
"@antfu/utils": "^0.7.0",
"@antfu/utils": "^0.7.2",
"@rollup/pluginutils": "^5.0.2",

@@ -94,30 +94,30 @@ "chokidar": "^3.5.3",

"local-pkg": "^0.4.2",
"magic-string": "^0.26.7",
"minimatch": "^5.1.0",
"magic-string": "^0.27.0",
"minimatch": "^5.1.1",
"resolve": "^1.22.1",
"unplugin": "^1.0.0"
"unplugin": "^1.0.1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.31.0",
"@babel/parser": "^7.20.3",
"@babel/types": "^7.20.2",
"@antfu/eslint-config": "^0.33.1",
"@babel/parser": "^7.20.5",
"@babel/types": "^7.20.5",
"@types/debug": "^4.1.7",
"@types/minimatch": "^5.1.2",
"@types/node": "^18.11.9",
"@types/node": "^18.11.13",
"@types/resolve": "^1.20.2",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"bumpp": "^8.2.1",
"compare-versions": "^5.0.1",
"element-plus": "^2.2.22",
"eslint": "^8.28.0",
"element-plus": "^2.2.26",
"eslint": "^8.29.0",
"esno": "^0.16.3",
"estree-walker": "^3.0.1",
"pathe": "^1.0.0",
"rollup": "^3.4.0",
"rollup": "^3.7.3",
"tsup": "^6.5.0",
"typescript": "^4.9.3",
"vite": "^3.2.4",
"vitest": "^0.25.2",
"vue": "3.2.37"
"typescript": "^4.9.4",
"vite": "^4.0.0",
"vitest": "^0.25.7",
"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

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