{"_id":"@belloai/webpack-auth-tree-plugin","_rev":"13-c0a8104f973f5e8f998a9400696490be","name":"@belloai/webpack-auth-tree-plugin","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.1","description":"Bello Auth Tree 前端获取权限树","main":"libs/index.js","license":"ISC","dependencies":{"lodash":"^4.17.21","@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","babel-traverse":"^6.26.0","@vue/component-compiler-utils":"^3.3.0","vue-template-compiler":"^2.6.14"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"2.x"},"homepage":"https://github.com/threfo/bello_frontend#readme","_id":"@belloai/webpack-auth-tree-plugin@0.0.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.12","dist":{"integrity":"sha512-BSqFT/Uzq7UGx9iD9Vej9cIPgf23QkUoswZFL2IYAQf7fq+ebfweJURq0nHYcsgN76oEM1FSXIvqej647JQkCw==","shasum":"09e8e31dae665eadf7574a1d508b502489ed8759","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.1.tgz","fileCount":8,"unpackedSize":54475,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDw0P1vTrRFNnsVtFCOPzFXvno7Ik+DfekNgVj5kzh8aAIhAN512nXVyaVZSoRjs8K7FjcpIO4jD8gmIP1jQRATJpEz"}]},"_npmUser":{"name":"elysion72513","email":"liguangyuan@belloai.com"},"directories":{},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.1_1635314496829_0.1895632613448215"},"_hasShrinkwrap":false},"0.0.2":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.2","description":"Bello Auth Tree 前端获取权限树","main":"index.js","license":"ISC","dependencies":{"lodash":"^4.17.21","@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","babel-traverse":"^6.26.0","@vue/component-compiler-utils":"^3.3.0","vue-template-compiler":"^2.6.14"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"2.x"},"homepage":"https://github.com/threfo/bello_frontend#readme","_id":"@belloai/webpack-auth-tree-plugin@0.0.2","_nodeVersion":"14.18.0","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Hg1DyKLgKZVWztaiN3t2m8O9P+uKijVn88Vev28hzu+IkIj25TR85gejTgCxxYDmwkDd78mtBgZZzELjIQKIIg==","shasum":"2d620c962af4ccc5adaac84e1432e9aba8867bfa","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.2.tgz","fileCount":11,"unpackedSize":56274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGL4SZgLxAh5JKW/ye62c7JdpS+CnW7bydg/EPeAme1UAiB7Pg7NHKCkKKSwSASKvqd3vL1RjiFeUUDeb1xS2XZgyA=="}]},"_npmUser":{"name":"elysion72513","email":"liguangyuan@belloai.com"},"directories":{},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.2_1635321310346_0.4299220336874119"},"_hasShrinkwrap":false},"0.0.3":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.3","description":"Bello Auth Tree 前端获取权限树","main":"index.js","license":"ISC","dependencies":{"lodash":"^4.17.21","@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","babel-traverse":"^6.26.0","@vue/component-compiler-utils":"^3.3.0","vue-template-compiler":"^2.6.14"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"2.x"},"homepage":"https://github.com/threfo/bello_frontend#readme","_id":"@belloai/webpack-auth-tree-plugin@0.0.3","_nodeVersion":"14.18.0","_npmVersion":"6.14.12","dist":{"integrity":"sha512-CP6+uelQiUZ+DsLmGFRi+zQTRgzDM/BY5f8hTnzY52gYZh3Kj6OREMqULvHHp8b7eqnxuZiwgMwGjQzOqxqKMg==","shasum":"b75326146b3855632f7cb899cb27f23d50978a34","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.3.tgz","fileCount":11,"unpackedSize":56267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRC8pO7KFUZfsZnLVycGJG0i/Riy9+em0s4c58ReWpgQIgNe5pYNueDDR7/sxyH+mJFTOlEo2c9GXENw3K+AQ0+ro="}]},"_npmUser":{"name":"elysion72513","email":"liguangyuan@belloai.com"},"directories":{},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.3_1635322484776_0.8033983260020159"},"_hasShrinkwrap":false},"0.0.4":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.4","description":"Bello Auth Tree 前端获取权限树","main":"index.js","license":"ISC","dependencies":{"lodash":"^4.17.21","@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","babel-traverse":"^6.26.0","@vue/component-compiler-utils":"^3.3.0","vue-template-compiler":"^2.6.14"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"2.x"},"homepage":"https://github.com/threfo/bello_frontend#readme","_id":"@belloai/webpack-auth-tree-plugin@0.0.4","_nodeVersion":"14.18.0","_npmVersion":"6.14.12","dist":{"integrity":"sha512-b+VH1JxMmWjLfjq9bxd12bWKz2exPf5nJhBA1gB7D0Pji7OYiCcqZkbyPb0zF9U3GbYt14e52RZkR6vu9nsdEg==","shasum":"55125c9c01f07bbb7ee25bb6027be680fae3883e","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.4.tgz","fileCount":11,"unpackedSize":56261,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHft0UPLhCV6+QhGAxpbtJoRAJ+hLPIaePwf08uhmmJgIgfqzgjLYhq5soADpnM8+OmnQ41jXZOvKJMGnag7xaNeY="}]},"_npmUser":{"name":"elysion72513","email":"liguangyuan@belloai.com"},"directories":{},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.4_1635322793176_0.5307446961510855"},"_hasShrinkwrap":false},"0.0.5":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.5","description":"Bello Auth Tree 前端获取权限树","main":"lib/index.js","license":"ISC","dependencies":{"vue":"^2.6.11"},"devDependencies":{"@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","@vue/component-compiler-utils":"^3.3.0","babel-traverse":"^6.26.0","lodash":"^4.17.21","vue-template-compiler":"^2.6.11"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"^2.6.11"},"homepage":"https://github.com/threfo/bello_frontend#readme","author":{"name":"李广远","email":"liguangyuan@belloai.com"},"directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_id":"@belloai/webpack-auth-tree-plugin@0.0.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/P9DS5TqbRfzB/6ZVq4uNgMrfWSoK2cMclW5D04CW7r/D0wTOt/nqomX3vOw8mu85v7pGczTzLdi7FOA1ufdvQ==","shasum":"8750ec09a95de9c9abbe06c330cd212ad7786b63","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.5.tgz","fileCount":10,"unpackedSize":55422,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5G35PSV7t6WOeWbsMQnpkJluoySsw6SOImoBUbs17AQIgZuZPvHwItWORjIczA1IHITJvvvs8s9M/+r32TcC0CXE="}]},"_npmUser":{"name":"elysion72513","email":"liguangyuan@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.5_1635617985039_0.9851195986137373"},"_hasShrinkwrap":false},"0.0.6":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.6","description":"Bello Auth Tree 前端获取权限树","main":"lib/index.js","license":"ISC","dependencies":{"vue":"^2.6.11"},"devDependencies":{"@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","@vue/component-compiler-utils":"^3.3.0","babel-traverse":"^6.26.0","lodash":"^4.17.21","vue-template-compiler":"^2.6.11"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"^2.6.11"},"homepage":"https://github.com/threfo/bello_frontend#readme","author":{"name":"李广远","email":"liguangyuan@belloai.com"},"directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"gitHead":"5b51e7ae00eac75c274520232345f8e9a0f5096a","_id":"@belloai/webpack-auth-tree-plugin@0.0.6","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (darwin)","dist":{"integrity":"sha512-gKPqyf9xFOLjpvY/IE5NdJUQv6Dq0EbUVPEtmQ5kir7Q6lkNcNY3u190LpYqsXJtSQ0uYBS/aIN54+934PnHRA==","shasum":"5f6b5ece57a5c9d573ddbe270b7309a42c3e8f0a","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.6.tgz","fileCount":10,"unpackedSize":55479,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5BA57LjgwkrBSshMfI8wrlcw+dKt7kl9F1y/Bld9/PAIhAKojatkUbb1PO5BZTmlpSN1XCdSlgw6/Wnw2rQMSi+fL"}]},"_npmUser":{"name":"thomas-ballo","email":"liurongliang@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.6_1635836262974_0.9725562361035753"},"_hasShrinkwrap":false},"0.0.7":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.7","description":"Bello Auth Tree 前端获取权限树","main":"lib/index.js","license":"ISC","dependencies":{"vue":"^2.6.11"},"devDependencies":{"@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","@vue/component-compiler-utils":"^3.3.0","babel-traverse":"^6.26.0","lodash":"^4.17.21","vue-template-compiler":"^2.6.11"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"^2.6.11"},"homepage":"https://github.com/threfo/bello_frontend#readme","author":{"name":"李广远","email":"liguangyuan@belloai.com"},"directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"gitHead":"53f32d61a1384e91472dd009874f058f2033d7c0","_id":"@belloai/webpack-auth-tree-plugin@0.0.7","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (darwin)","dist":{"integrity":"sha512-9wqZ41iyyGiU8U6qOk3Yd/Y8Za1QoTEQ92AdENgrzyz+pDv0xSmv8LvCwtTuoyGeKFjeiTgmfBGU60MK+Ad9Bw==","shasum":"6649263696606fc98f69e3b28a72c740ce11b527","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.7.tgz","fileCount":10,"unpackedSize":55479,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmB3pg6IP9tT0TCv1zch3JnRjv3XNgJxF7AeJkmQV9sQIhAPS1sQez3zwzDA05/rnZ/TcshOwqQL2Bv3jnJVK4RP84"}]},"_npmUser":{"name":"thomas-ballo","email":"liurongliang@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.7_1636784725745_0.09262637986600053"},"_hasShrinkwrap":false},"0.0.8":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.8","description":"Bello Auth Tree 前端获取权限树","main":"lib/index.js","license":"ISC","dependencies":{"vue":"^2.6.11"},"devDependencies":{"@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","@vue/component-compiler-utils":"^3.3.0","babel-traverse":"^6.26.0","lodash":"^4.17.21","vue-template-compiler":"^2.6.11"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"^2.6.11"},"homepage":"https://github.com/threfo/bello_frontend#readme","author":{"name":"李广远","email":"liguangyuan@belloai.com"},"directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"gitHead":"3a4ee1b9e4e28ec91c73455addb07454e4c69fe0","_id":"@belloai/webpack-auth-tree-plugin@0.0.8","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (darwin)","dist":{"integrity":"sha512-ct5dskw5TUjell8oRvoq9wqXBWJqZOb86W3UFZ8OtXP7IEb34pufNN4s/XQNgjhEoel88zd+LT7J/LaUNn17EA==","shasum":"4ecb65d247baa0abbc3650f34566a9afcac6513f","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.8.tgz","fileCount":10,"unpackedSize":55479,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEE+Ox2PBq9nTNx/MpJe3gzME51Qn5OD9Rbdq6rnFKOCAiBpKkoZSqXpEBIXJV0hKqClxaNJzjd2bl3i+uo7zwLwBQ=="}]},"_npmUser":{"name":"thomas-ballo","email":"liurongliang@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.8_1636796896585_0.3624656195385958"},"_hasShrinkwrap":false},"0.0.9":{"name":"@belloai/webpack-auth-tree-plugin","version":"0.0.9","description":"Bello Auth Tree 前端获取权限树","main":"lib/index.js","license":"ISC","dependencies":{"vue":"^2.6.11"},"devDependencies":{"@babel/core":"^7.15.8","@babel/parser":"^7.15.8","@babel/types":"^7.15.6","@vue/component-compiler-utils":"^3.3.0","babel-traverse":"^6.26.0","lodash":"^4.17.21","vue-template-compiler":"^2.6.11"},"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"peerDependencies":{"vue":"^2.6.11"},"homepage":"https://github.com/threfo/bello_frontend#readme","author":{"name":"李广远","email":"liguangyuan@belloai.com"},"directories":{"lib":"lib","test":"__tests__"},"scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"gitHead":"86ff8c62bb9e93cce3fd1d0d635525c227e08730","_id":"@belloai/webpack-auth-tree-plugin@0.0.9","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (darwin)","dist":{"integrity":"sha512-fR+LxNST4wqQUtRmS+7uv8b3CMtc1cb1IHJsRWRJ7hu2xg67CD37a91ggchikhVKtKqNzbHmQZm/Qr5/GX4oKg==","shasum":"299740973d643fa547de6c9203b438fd362f4100","tarball":"https://registry.npmjs.org/@belloai/webpack-auth-tree-plugin/-/webpack-auth-tree-plugin-0.0.9.tgz","fileCount":10,"unpackedSize":58484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwDjXCRA9TVsSAnZWagAAEVoP/33hIZQbE7MmlqI9aelR\nDm9t4BTGkqVXm76I/+V29E6iCA5BQDCHfmKE/2x7T3wBMkYZRhAE7Mj2EHC+\nYzjEW69K1gXCPPN4UljUzevta/T+O74kqM6Rm8NI8yceCYxW7ARqQtpwdWDg\n6DbTTDmc6cJwyyHGc5dfK7CtUDoWuiSrWXqwn9mgU6Ebek0YwFHM4kr7DR4b\nNqeGF4yYzvtvsEmHIpEv8bg4XtdqeZKBtyOyRQjDEI/uPtPrtxjVy2ngr1HM\noVntqCS5M3oy4fGDI6qbpDFKkJNZYXrvJpEeyEVaqLXyxa1tUw/4Kp85MJ8i\nurKZ+Fc6VXYtwxwWU80L6ZZDLdV0udCiXVjjt91ck1CWxHO+dBfb2FmzWA0A\nvftRlnG1InScIS3V7ocYMxy3MrpTiuuZXDnS6I0cmjPXhWVyVVTA9v0vtBOd\nXX4KVtNQEFeap1kYB17AZq6kuM+M6/qSgX+2FJxuMp60PsOHHKb9cpRtwRso\nsDCmt56ln163OK0izDmYRZomHYHE6OPIe8E4eqHBrPzkVwrJtG75sF/BqQXe\n+zhQAko+2qJp2VwhrHKaYAYiUbwu9vS5hyUfo/loc9yKnQRmKTT+t2IMvGgv\ny2zcL+3eLnWxYQq0HCc92cz3P/nnAR/nVaE1349peEZh4nj011jXVBKViT4r\n/M0E\r\n=qcWG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1taxS04/IanHjaky2fpu9CM57vAvhVnVB7TTCdilavAiEA6DoiNKuZxt/MkgrBBbOj9IaEd7ZoapPV5pItiwkPa8M="}]},"_npmUser":{"name":"thomas-ballo","email":"liurongliang@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-auth-tree-plugin_0.0.9_1639987414863_0.26935620090687995"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-27T06:01:36.705Z","0.0.1":"2021-10-27T06:01:36.984Z","modified":"2024-04-03T09:39:43.041Z","0.0.2":"2021-10-27T07:55:10.490Z","0.0.3":"2021-10-27T08:14:44.930Z","0.0.4":"2021-10-27T08:19:53.328Z","0.0.5":"2021-10-30T18:19:45.327Z","0.0.6":"2021-11-02T06:57:43.207Z","0.0.7":"2021-11-13T06:25:25.914Z","0.0.8":"2021-11-13T09:48:16.782Z","0.0.9":"2021-12-20T08:03:35.196Z"},"maintainers":[{"email":"powan.li@foxmail.com","name":"powan"},{"email":"elysion72513@gmail.com","name":"elysion72513"},{"email":"liurongliang@belloai.com","name":"thomas-ballo"},{"email":"627424435@qq.com","name":"ouxiaohui"}],"description":"Bello Auth Tree 前端获取权限树","homepage":"https://github.com/threfo/bello_frontend#readme","repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git","directory":"packages/bello-tsconfig"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"license":"ISC","readme":"# bello 鉴权 webpack 插件\n\n收集代码内的权限配置结合 `routesPath` 和 `menuPath` 构建出权限分布 json\n\n```js\nconst BuildAuthTreePlugin = require('@belloai/webpack-auth-tree-plugin')\n\nconst chainWebPackConfig = config => {\n  config.plugin('build-auth-tree-plugin').use(BuildAuthTreePlugin, [\n    {\n      routesPath: getPath('../../src/router/routes.ts'),\n      menuPath: getPath('../../src/router/menu.ts')\n    }\n  ])\n}\n```\n\n```html\n<div v-if=\"$auth('authType')\">当我有对应的`authType`权限了才会显示哟</div>\n```\n\n例子\n\n```js\n// 路由配置\n{\n  path: '/main/resume-detail',\n  component: import('/viewsresume-manage/detail'),\n  meta: {\n    name: '简历详情',\n    order: 1,\n    parent: {\n      name: '简历管理'\n    },\n    activePath: '/main/resume-manage',\n    authType: 'view_etp'\n  }\n}\n```\n\n在 `/viewsresume-manage/detail.vue` 上有以下代码块\n\n```html\n<auth name=\"简历编辑\" eleKey=\"editBtn\" eleType=\"btn\">\n  <el-button v-if=\"$auth('add_resume','新增简历')\">简历编辑</el-button>\n</auth>\n<div v-if=\"$auth('add_resume','新增简历')\">新增简历</div>\n```\n\n保存后，在 `build/auth_json.json` 内就会自动生成了以下的 json 片段\n\n```json\n{\n  \"view_etp\": [\n    {\n      ...\n      \"views\": [\n        {\n          \"name\": \"简历详情\",\n          \"key\": \"view_etp#/main/resume-detail\",\n          \"eles\": [\n            {\n              \"key\": \"view_etp#/main/resume-detail#editBtn\",\n              \"name\": \"简历编辑\",\n              \"eleType\": \"btn\"\n            }\n          ],\n          \"funcs\": [\n            {\n              \"key\": \"add_resume\",\n              \"msg\": \"新增简历\"\n            },\n          ]\n        }\n      ]\n    }\n  ]\n}\n\n```\n\n然后项目在服务器部署时，会自动的把这份 json 数据更新到数据库，在管理后台的权限配置功能上就会出现该权限按钮的配置项。\n\n如果用户只配置了 `view_etp` 这个权限，没有配置`view_etp`下的其他权限，则所有带有`view_etp`的权限块都会生效显示，如果有配置`view_etp`下的其他权限，例如 `view_etp#/main/resume-detail#editBtn`，则按照真是的拥有的权限来显示带有`view_etp`的权限块。\n\n在项目启动/代码更新时，就会出现 auth json 构建的情况报告\n\n```bash\nBuildAuthTreePlugin done, auth json 构建开始解析\n/Users/thomaslau/Projects/btp_frontend/build/routes_json.json file save success\n/Users/thomaslau/Projects/btp_frontend/build/menu_json.json file save success\n/Users/thomaslau/Projects/btp_frontend/build/auth_json.json file save success\n共分析了 400 个文件，\n    路由: 63 个，\n    权限模块: 28 个，\n    有使用到<auth>标签的页面共: 0 个,\n    有使用到$auth方法的页面共: 26 个,\n    耗时 24.11s\n```\n\n如果有新的写法导致解析出错，会有异常提示，请及时维护\n\n试验项目 <https://github.com/threfo/auth_demo>\n\n- [x] 做成 npm，webpack 的 plugin 包\n\n## 注意事项\n\n1. `$auth` 的信息收集只限于`.vue` 文件\n2. `$auth` 的写法暂时只支持常量方法，没有做变量值分析。\n\n```js\nconst auth1 = 'test1'\nif (this.$auth(auth1， '权限1')) {\n  // 这个是解析不了的\n}\n\nif (this.$auth('test2', '权限2')) {\n  // 这个才会解析到\n}\n\n```\n","readmeFilename":"README.md","author":{"name":"李广远","email":"liguangyuan@belloai.com"}}