Socket
Socket
Sign inDemoInstall

@tkskto/vue-component-analyzer

Package Overview
Dependencies
8
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

13

CHANGELOG.md
# Changelog
## 0.3.1
### Bug Fixes
- \#94 exclude `node_modules`.
### Chores
- \#93 update `vue-eslint-parser` 7.6.0 to 7.7.2
- \#91 update `commander` 7.2.0 to 8.0.0
- \#89 update `globby` 11.0.3 to 11.0.4
- \#88 update `ws` 7.4.6 to 7.5.2
## 0.3.0

@@ -4,0 +17,0 @@

15

dist/index.js
/*!
@tkskto/vue-component-analyzer v0.3.0
@tkskto/vue-component-analyzer v0.3.1
https://github.com/tkskto/
Released under the MIT License.
dependencies:
commander -- 7.2.0
commander -- 8.0.0
ejs -- 3.1.6
express -- 4.17.1
globby -- 11.0.3
globby -- 11.0.4
mkdirp -- 1.0.4
opener -- 1.5.2
vue-eslint-parser -- 7.6.0
ws -- 7.4.6
vue-eslint-parser -- 7.7.2
ws -- 7.5.2
*/

@@ -435,3 +435,3 @@ 'use strict';

const analyzer = new Analyzer();
const entries = yield globby([argv.dir], {
const entries = yield globby([argv.dir, '!**/node_modules/**'], {
expandDirectories: {

@@ -441,2 +441,5 @@ extensions: ['vue'],

});
if (entries.length === 0) {
console.log('There is no entry file.');
}
const entriesData = [];

@@ -443,0 +446,0 @@ for (let i = 0, len = entries.length; i < len; i++) {

39

package.json
{
"name": "@tkskto/vue-component-analyzer",
"version": "0.3.0",
"version": "0.3.1",
"description": "Analyze dependency tree for Vue.js SFC (Single File Component)",

@@ -20,3 +20,3 @@ "main": "dist/index.js",

"test:base:update": "ts-mocha ./test/specs/*.ts --update",
"tmp": "node dist/index.js --dir test/fixture/declarationTest/importOne.vue -p 8888"
"tmp": "node dist/index.js --dir . -p 8888"
},

@@ -49,10 +49,10 @@ "keywords": [

"dependencies": {
"commander": "7.2.0",
"commander": "8.0.0",
"ejs": "3.1.6",
"express": "4.17.1",
"globby": "11.0.3",
"globby": "11.0.4",
"mkdirp": "1.0.4",
"opener": "1.5.2",
"vue-eslint-parser": "7.6.0",
"ws": "7.4.6"
"vue-eslint-parser": "7.7.2",
"ws": "7.5.2"
},

@@ -65,18 +65,18 @@ "devDependencies": {

"@rollup/plugin-typescript": "8.2.1",
"@types/express": "4.17.11",
"@types/express": "4.17.12",
"@types/mocha": "8.2.2",
"@types/node": "14.14.35",
"@types/node": "14.17.4",
"@types/opener": "1.4.0",
"@types/ws": "7.4.4",
"@typescript-eslint/eslint-plugin": "4.25.0",
"@typescript-eslint/parser": "4.25.0",
"eslint": "7.27.0",
"husky": "4.3.8",
"@types/ws": "7.4.6",
"@typescript-eslint/eslint-plugin": "4.28.1",
"@typescript-eslint/parser": "4.28.1",
"eslint": "7.30.0",
"husky": "7.0.0",
"lint-staged": "11.0.0",
"mocha": "8.4.0",
"mocha": "9.0.2",
"nyc": "15.1.0",
"rollup": "2.50.1",
"rollup-plugin-license": "2.3.0",
"rollup": "2.52.7",
"rollup-plugin-license": "2.5.0",
"ts-mocha": "8.0.0",
"typescript": "4.3.2"
"typescript": "4.3.5"
},

@@ -87,8 +87,3 @@ "lint-staged": {

]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
# vue-component-analyzer
This tool can Analyze dependency tree for Vue.js SFC (Single File Component).
This tool can Analyze dependency tree for Vue.js SFC (Single File Component). You can see [GitHub Pages](https://tkskto.github.io/vue-component-analyzer/dist/) for a demo.

@@ -15,5 +15,5 @@ Also, you can see Props of Component.

When you try to change the behavior of components, it will help you to investigate the influence range. Because it is hard to know where the component is used.
When you try to change the behavior of components, it is hard to know where the component is used.
When you join a new big project using Vue.js, it will help you to understand dependencies.
When you join a new big project using Vue.js, it is hard to understand dependencies.

@@ -36,6 +36,6 @@ ## installation and usage

Or you can use npx(after npm install):
Or you can use npm exec(after npm install):
```
npx vca --dir pages
npm exec vca -- --dir .
```

@@ -45,6 +45,7 @@

- `--dir` : analyze target directory. default is `src`.
- `-f` or `--format` : report type. choose one from [browser | json | both]. default is `browser`.
- `-o` or `--out` : output directory. JSON file will output here.
- `-p` or `--port` : select a port number for the local server.
* `--dir` : analyze target directory. default is `src`. `node_modules` will be ignored by default.
* `--silent` : running without almost logs.
* `-f` or `--format` : report type. choose one from [browser | json | both]. default is `browser`.
* `-o` or `--out` : output directory. JSON file will output here.
* `-p` or `--port` : select a port number for the local server.

@@ -51,0 +52,0 @@ ## License

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc