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.12 to 0.23.0

dist/chunk-BPHJA2FM.mjs

6

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

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

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

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

import { Options } from './types.js';
export { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, Options, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from './types.js';
export { ComponentInfo, ComponentResolveResult, ComponentResolver, ComponentResolverFunction, ComponentResolverObject, ComponentsImportMap, ImportInfo, ImportInfoLegacy, Matcher, PublicPluginAPI, ResolvedOptions, SideEffectsInfo, SupportedTransformer, Transformer, TypeImport } from './types.js';
import * as unplugin from 'unplugin';

@@ -13,2 +13,2 @@ import '@rollup/pluginutils';

export { camelCase, _default as default, kebabCase, pascalCase };
export { Options, camelCase, _default as default, kebabCase, pascalCase };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');

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

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

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

exports.camelCase = _chunk44ONIEX7js.camelCase; exports.default = _chunkL42GFWTAjs.unplugin_default; exports.kebabCase = _chunk44ONIEX7js.kebabCase; exports.pascalCase = _chunk44ONIEX7js.pascalCase;
exports.camelCase = _chunkHCIFGIWSjs.camelCase; exports.default = _chunkKARXI5H6js.unplugin_default; exports.kebabCase = _chunkHCIFGIWSjs.kebabCase; exports.pascalCase = _chunkHCIFGIWSjs.pascalCase;

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

import * as _nuxt_schema from '@nuxt/schema';
import { Options } from './types.js';

@@ -6,4 +7,4 @@ import '@rollup/pluginutils';

declare function export_default(this: any, options: Options): void;
declare const _default: _nuxt_schema.NuxtModule<Options>;
export { export_default as default };
export { _default as default };
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkL42GFWTAjs = require('./chunk-L42GFWTA.js');
require('./chunk-44ONIEX7.js');
var _chunkKARXI5H6js = require('./chunk-KARXI5H6.js');
require('./chunk-HCIFGIWS.js');
require('./chunk-BTQOTIPQ.js');

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

// src/nuxt.ts
function nuxt_default(options) {
this.extendBuild((config) => {
config.plugins = config.plugins || [];
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(_chunkL42GFWTAjs.unplugin_default.vite(options));
});
}
var _kit = require('@nuxt/kit');
var nuxt_default = _kit.defineNuxtModule.call(void 0, {
setup(options) {
_kit.addWebpackPlugin.call(void 0, _chunkKARXI5H6js.unplugin_default.webpack(options));
_kit.addVitePlugin.call(void 0, _chunkKARXI5H6js.unplugin_default.vite(options));
}
});

@@ -21,0 +18,0 @@

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

var _chunk44ONIEX7js = require('./chunk-44ONIEX7.js');
var _chunkHCIFGIWSjs = require('./chunk-HCIFGIWS.js');

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

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

@@ -226,3 +226,3 @@ }

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

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

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

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

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

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

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

@@ -552,3 +552,3 @@ return {

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

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

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

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

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

@@ -766,5 +766,5 @@ }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

return void 0;
let componentDir = _chunk44ONIEX7js.kebabCase.call(void 0, importName);
let componentDir = _chunkHCIFGIWSjs.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 = _chunk44ONIEX7js.pascalCase.call(void 0, getResolveIconPrefix(options.resolveIcons));
const iconPrefix = _chunkHCIFGIWSjs.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 = _chunk44ONIEX7js.kebabCase.call(void 0, importName);
let fileName = _chunkHCIFGIWSjs.kebabCase.call(void 0, importName);
if (!importStyle)

@@ -1296,2 +1296,4 @@ return;

fileName = "table";
if (["pagination-mini"].includes(fileName))
fileName = "pagination";
if (importStyle === "less")

@@ -1298,0 +1300,0 @@ return `tdesign-${library}/esm/${fileName}/style`;

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

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

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

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

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

/**
* Collapse same prefixes (case-insensitive) of folders and components
* to prevent duplication inside namespaced component name
* Collapse same prefixes (camel-sensitive) of folders and components
* to prevent duplication inside namespaced component name.
*

@@ -92,0 +92,0 @@ * Works when `directoryAsNamespace: true`

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

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

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

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

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

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

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

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

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

@@ -17,7 +17,8 @@ "description": "Components auto importing for Vue",

".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./*": "./*",
"./nuxt": {
"types": "./dist/nuxt.d.ts",
"require": "./dist/nuxt.js",

@@ -27,2 +28,3 @@ "import": "./dist/nuxt.mjs"

"./resolvers": {
"types": "./dist/resolvers.d.ts",
"require": "./dist/resolvers.js",

@@ -32,2 +34,3 @@ "import": "./dist/resolvers.mjs"

"./rollup": {
"types": "./dist/rollup.d.ts",
"require": "./dist/rollup.js",

@@ -37,2 +40,3 @@ "import": "./dist/rollup.mjs"

"./types": {
"types": "./dist/types.d.ts",
"require": "./dist/types.js",

@@ -42,2 +46,3 @@ "import": "./dist/types.mjs"

"./vite": {
"types": "./dist/vite.d.ts",
"require": "./dist/vite.js",

@@ -47,2 +52,3 @@ "import": "./dist/vite.mjs"

"./webpack": {
"types": "./dist/webpack.d.ts",
"require": "./dist/webpack.js",

@@ -52,5 +58,7 @@ "import": "./dist/webpack.mjs"

"./esbuild": {
"types": "./dist/esbuild.d.ts",
"require": "./dist/esbuild.js",
"import": "./dist/esbuild.mjs"
}
},
"./*": "./*"
},

@@ -95,2 +103,3 @@ "main": "dist/index.js",

"@antfu/utils": "^0.7.2",
"@nuxt/kit": "^3.1.1",
"@rollup/pluginutils": "^5.0.2",

@@ -100,5 +109,5 @@ "chokidar": "^3.5.3",

"fast-glob": "^3.2.12",
"local-pkg": "^0.4.2",
"local-pkg": "^0.4.3",
"magic-string": "^0.27.0",
"minimatch": "^5.1.1",
"minimatch": "^6.1.6",
"resolve": "^1.22.1",

@@ -108,24 +117,25 @@ "unplugin": "^1.0.1"

"devDependencies": {
"@antfu/eslint-config": "^0.33.1",
"@babel/parser": "^7.20.5",
"@babel/types": "^7.20.5",
"@antfu/eslint-config": "^0.34.1",
"@babel/parser": "^7.20.13",
"@babel/types": "^7.20.7",
"@nuxt/schema": "^3.1.1",
"@types/debug": "^4.1.7",
"@types/minimatch": "^5.1.2",
"@types/node": "^18.11.13",
"@types/node": "^18.11.18",
"@types/resolve": "^1.20.2",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"bumpp": "^8.2.1",
"compare-versions": "^5.0.1",
"element-plus": "^2.2.26",
"eslint": "^8.29.0",
"compare-versions": "^5.0.3",
"element-plus": "^2.2.28",
"eslint": "^8.32.0",
"esno": "^0.16.3",
"estree-walker": "^3.0.1",
"pathe": "^1.0.0",
"rollup": "^3.7.3",
"estree-walker": "^3.0.3",
"pathe": "^1.1.0",
"rollup": "^3.12.0",
"tsup": "^6.5.0",
"typescript": "^4.9.4",
"vite": "^4.0.0",
"vitest": "^0.25.7",
"vite": "^4.0.4",
"vitest": "^0.28.3",
"vue": "3.2.45"
}
}

@@ -341,4 +341,9 @@ # unplugin-vue-components

directoryAsNamespace: false,
// Subdirectory paths for ignoring namespace prefixes
// Collapse same prefixes (camel-sensitive) of folders and components
// to prevent duplication inside namespaced component name.
// works when `directoryAsNamespace: true`
collapseSamePrefixes: false,
// Subdirectory paths for ignoring namespace prefixes.
// works when `directoryAsNamespace: true`
globalNamespaces: [],

@@ -345,0 +350,0 @@

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