InhiblabCore / vue-hooks-plus

High performance & Simplicity 🧲 Vue 3 Hooks library
https://InhiblabCore.github.io/docs/hooks
MIT License
1.65k stars 104 forks source link

新增构建体积分析工具 #185

Closed XiaoDaiGua-Ray closed 8 months ago

XiaoDaiGua-Ray commented 8 months ago

[中文版模板 / Chinese template]

🤔 This is a ...

🔗 Related issue link

💡 Background and solution

📝 Changelog

对于 hooks 包新增体积分析插件配置,现在会在执行 build 命令操作时,自动生成构建体积分析文件 visualizer.html

Language Changelog
🇺🇸 English
🇨🇳 Chinese ☑️

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

socket-security[bot] commented 8 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@typescript-eslint/eslint-plugin@5.62.0 Transitive: environment, eval, filesystem, shell, unsafe +128 56.1 MB jameshenry
npm/@typescript-eslint/parser@5.62.0 Transitive: environment, eval, filesystem, shell, unsafe +120 53 MB jameshenry
npm/@vitejs/plugin-vue@3.2.0 environment Transitive: eval, filesystem, network, shell, unsafe +38 29.5 MB vitebot
npm/@vitest/coverage-c8@0.25.8 environment, filesystem, unsafe Transitive: eval, network, shell +113 22 MB oreanno
npm/@vue-hooks-plus/md-demo-plugins@1.1.0 filesystem Transitive: environment, eval, network, shell, unsafe +95 51.8 MB yongjie
npm/@vue-hooks-plus/vite-plugin-gen-temp@2.6.6 filesystem Transitive: environment, eval, network, shell, unsafe +122 51.9 MB yongjie
npm/@vue-hooks-plus/vitepress@1.2.4 filesystem, network, shell, unsafe Transitive: environment, eval +74 49.9 MB yongjie
npm/@vue/test-utils@2.4.1 eval Transitive: environment, filesystem, network, shell, unsafe +47 19.5 MB lmiller1990
npm/eslint-config-prettier@8.10.0 Transitive: environment, eval, filesystem, shell, unsafe +96 10.5 MB lydell
npm/eslint-plugin-prettier@4.2.1 Transitive: environment, eval, filesystem, shell, unsafe +100 19 MB jounqin
npm/eslint-plugin-vue@9.17.0 filesystem, unsafe Transitive: environment, eval, shell +107 14.7 MB ota-meshi
npm/pinia@2.1.6 environment Transitive: eval, filesystem, unsafe +27 56.6 MB posva
npm/rollup-plugin-visualizer@5.12.0 filesystem Transitive: environment, network, shell +22 1.7 MB btd
npm/ts-node@10.9.1 environment, filesystem, unsafe +18 43.8 MB cspotcode
npm/vite-plugin-dts@2.3.0 filesystem, unsafe Transitive: environment, eval, network, shell +97 87.8 MB qmhc
npm/vite@3.0.2 environment, eval, filesystem, network, shell, unsafe +17 13.6 MB vitebot
npm/vitepress@1.0.0-alpha.60 filesystem, network, shell, unsafe Transitive: environment, eval +70 47.3 MB yyx990803
npm/vitest@0.25.3 environment, eval, filesystem, shell Transitive: network, unsafe +56 24.1 MB oreanno
npm/vue-demi@0.13.11 filesystem Transitive: environment, eval, unsafe +24 16.1 MB antfu
npm/vue-eslint-parser@9.3.1 unsafe Transitive: environment, eval, filesystem, shell +100 13.2 MB ota-meshi
npm/vue-tsc@1.0.9 Transitive: environment, eval, filesystem, unsafe +32 51.9 MB johnsoncodehk

🚮 Removed packages: npm/pinia@2.1.7

View full report↗︎

socket-security[bot] commented 8 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/vue-demi@0.14.5
  • Install script: postinstall
  • Source: node ./scripts/postinstall.js
Install scripts npm/vue-demi@0.13.11
  • Install script: postinstall
  • Source: node ./scripts/postinstall.js

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/vue-demi@0.14.5
  • @SocketSecurity ignore npm/vue-demi@0.13.11