Socket
Socket
Sign inDemoInstall

@vuepress/plugin-register-components

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/plugin-register-components - npm Package Compare versions

Comparing version 2.0.0-rc.37 to 2.0.0-rc.42

6

lib/node/prepareClientConfigFile.js

@@ -17,4 +17,6 @@ import { getComponentsFromDir } from './getComponentsFromDir.js';

enhance: ({ app }) => {\
${Object.entries(componentsMap).map(([name, filepath]) => `
app.component(${JSON.stringify(name)}, defineAsyncComponent(() => import(${JSON.stringify(filepath)})))`)}
${Object.entries(componentsMap)
.map(([name, filepath]) => `
app.component(${JSON.stringify(name)}, defineAsyncComponent(() => import(${JSON.stringify(filepath)})))`)
.join('\n ')}
},

@@ -21,0 +23,0 @@ }

@@ -25,6 +25,6 @@ import chokidar from 'chokidar';

componentsWatcher.on('add', () => {
prepareClientConfigFile(app, options, optionsHash);
void prepareClientConfigFile(app, options, optionsHash);
});
componentsWatcher.on('unlink', () => {
prepareClientConfigFile(app, options, optionsHash);
void prepareClientConfigFile(app, options, optionsHash);
});

@@ -31,0 +31,0 @@ watchers.push(componentsWatcher);

{
"name": "@vuepress/plugin-register-components",
"version": "2.0.0-rc.37",
"version": "2.0.0-rc.42",
"description": "VuePress plugin - register-components",

@@ -36,3 +36,3 @@ "keywords": [

"peerDependencies": {
"vuepress": "2.0.0-rc.14"
"vuepress": "2.0.0-rc.15"
},

@@ -42,3 +42,3 @@ "publishConfig": {

},
"gitHead": "3754bbda881d738a0dcfacc5172a70af67505013"
"gitHead": "66e494405a7fbb02f6d46d7be670ec69605b7606"
}
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