{"_id":"@decoraxios/ioc-aop","_rev":"3-a85c10a1996f33cf373156f55b5ab523","name":"@decoraxios/ioc-aop","dist-tags":{"latest":"0.5.0"},"versions":{"0.4.0":{"name":"@decoraxios/ioc-aop","version":"0.4.0","keywords":["ioc","aop","decorator","typescript"],"author":{"name":"SWUST-LMH","email":"1357526355@qq.com"},"license":"MIT","_id":"@decoraxios/ioc-aop@0.4.0","maintainers":[{"name":"bloom_lmh","email":"1357526355@qq.com"}],"homepage":"https://github.com/bloom-lmh/awe-axios#readme","bugs":{"url":"https://github.com/bloom-lmh/awe-axios/issues"},"dist":{"shasum":"94a67a760a661de1c102cc85b9cf66a80128da24","tarball":"https://registry.npmjs.org/@decoraxios/ioc-aop/-/ioc-aop-0.4.0.tgz","fileCount":9,"integrity":"sha512-1BhrlKsNtaMdwK0pm7EISDuW8/G7sZbTAvyjt5g0DLy0zZroqLN0L7Rwcw8XevPSIr59j+FOMoxDETAyQ2MgBg==","signatures":[{"sig":"MEUCIQDRuSbw/AJRSMMzVxpKtSsx9+86TrBz43E0dVWveSRnGAIgETzaufC449KT63alit1VJHXFPt+JXkDb1RnyOGdMUw8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116135},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"262fdf3310d2f345f671a57874897b82bba042b8","scripts":{"build":"tsup --config tsup.config.ts"},"_npmUser":{"name":"bloom_lmh","email":"1357526355@qq.com"},"repository":{"url":"git+https://github.com/bloom-lmh/awe-axios.git","type":"git"},"_npmVersion":"11.9.0","description":"IoC and AOP package for Decoraxios","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"reflect-metadata":"^0.2.2"},"peerDependencies":{"reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ioc-aop_0.4.0_1774603567022_0.24200654858281534","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@decoraxios/ioc-aop","version":"0.4.1","keywords":["ioc","aop","decorator","typescript"],"author":{"name":"SWUST-LMH","email":"1357526355@qq.com"},"license":"MIT","_id":"@decoraxios/ioc-aop@0.4.1","maintainers":[{"name":"bloom_lmh","email":"1357526355@qq.com"}],"homepage":"https://github.com/bloom-lmh/decoraxios#readme","bugs":{"url":"https://github.com/bloom-lmh/decoraxios/issues"},"dist":{"shasum":"59b6b916b917cef25d51a940b97d214fdd67690d","tarball":"https://registry.npmjs.org/@decoraxios/ioc-aop/-/ioc-aop-0.4.1.tgz","fileCount":9,"integrity":"sha512-08kkxwTra67ok4vEh/9c7rl32n7/zYNf8kZ4g+4Qz0TIdTs29KoXlHLYO+RDUm2byRHdmPaM/5KdyvdaDgBYNA==","signatures":[{"sig":"MEYCIQD1M/SZOjDeys5Ho8E9foBkUzFGs7ANW/nVMwOd2maZzAIhAIG2TNZnN52hPOtWo9myLYwy/1F9tu2RpmJXT0APsEww","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116294},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"gitHead":"53870528e29fe83319bf41de03251e940c8732a3","scripts":{"build":"tsup --config tsup.config.ts"},"_npmUser":{"name":"bloom_lmh","email":"1357526355@qq.com"},"repository":{"url":"git+https://github.com/bloom-lmh/decoraxios.git","type":"git"},"_npmVersion":"11.9.0","description":"IoC and AOP package for Decoraxios","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"reflect-metadata":"^0.2.2"},"peerDependencies":{"reflect-metadata":"^0.2.2"},"_npmOperationalInternal":{"tmp":"tmp/ioc-aop_0.4.1_1774608957586_0.6493905540442029","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@decoraxios/ioc-aop","version":"0.5.0","description":"IoC and AOP package for Decoraxios","author":{"name":"SWUST-LMH","email":"1357526355@qq.com"},"license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/bloom-lmh/decoraxios.git"},"homepage":"https://github.com/bloom-lmh/decoraxios#readme","bugs":{"url":"https://github.com/bloom-lmh/decoraxios/issues"},"keywords":["ioc","aop","decorator","typescript"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"publishConfig":{"access":"public"},"engines":{"node":">=18"},"sideEffects":false,"peerDependencies":{"reflect-metadata":"^0.2.2"},"devDependencies":{"reflect-metadata":"^0.2.2"},"scripts":{"build":"tsup --config tsup.config.ts"},"gitHead":"ccc8bf8e711e4913fa2a45019c3e65b68fc627f4","_id":"@decoraxios/ioc-aop@0.5.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-LcrelpZAzYSe6AnuQgdnl2Dz/yh++Zx6dCftChZRxVdhA79F21QGN4t1BUpspTe1yuyilHoAvqiu7farNLiJyw==","shasum":"3c0319c9aec14c5403501830fc37d671c9a4a5b4","tarball":"https://registry.npmjs.org/@decoraxios/ioc-aop/-/ioc-aop-0.5.0.tgz","fileCount":9,"unpackedSize":116294,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH4xDfpT8YZ8FBhZNkAAfpQnaVi8l7rzI3G1X30HPQSsAiAo+vyrFNEy9/YyE+rH1sB3R8rVcb5RIwVO3VB5rjJ+wA=="}]},"_npmUser":{"name":"bloom_lmh","email":"1357526355@qq.com"},"directories":{},"maintainers":[{"name":"bloom_lmh","email":"1357526355@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ioc-aop_0.5.0_1774948400647_0.2956970009610964"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T09:26:06.932Z","modified":"2026-03-31T09:13:20.911Z","0.4.0":"2026-03-27T09:26:07.180Z","0.4.1":"2026-03-27T10:55:57.734Z","0.5.0":"2026-03-31T09:13:20.791Z"},"bugs":{"url":"https://github.com/bloom-lmh/decoraxios/issues"},"author":{"name":"SWUST-LMH","email":"1357526355@qq.com"},"license":"MIT","homepage":"https://github.com/bloom-lmh/decoraxios#readme","keywords":["ioc","aop","decorator","typescript"],"repository":{"type":"git","url":"git+https://github.com/bloom-lmh/decoraxios.git"},"description":"IoC and AOP package for Decoraxios","maintainers":[{"name":"bloom_lmh","email":"1357526355@qq.com"}],"readme":"# @decoraxios/ioc-aop\n\n`@decoraxios/ioc-aop` provides component registration, dependency injection, and aspect decorators for class-based applications.\n\n## Install\n\n```bash\nnpm install @decoraxios/ioc-aop reflect-metadata\n```\n\nLoad `reflect-metadata` once before decorators run:\n\n```ts\nimport 'reflect-metadata';\n```\n\n## Includes\n\n- `@Component`\n- `@Inject`\n- `@Aspect`\n- `@Before`, `@After`, `@Around`\n- `@AfterReturning`, `@AfterThrowing`\n\n## Example\n\n```ts\nimport 'reflect-metadata';\nimport { Aspect, Before, Component, Inject } from '@decoraxios/ioc-aop';\n\n@Component()\nclass LoggerService {}\n\n@Aspect(1)\nclass AuditAspect {\n  @Before('UserService.save')\n  beforeSave() {\n    console.log('before save');\n  }\n}\n\n@Component()\nclass UserService {\n  @Inject(LoggerService)\n  logger!: LoggerService;\n}\n```\n\n## Documentation\n\n- English IoC/AOP guide: <https://github.com/bloom-lmh/decoraxios/blob/master/docs/en/ioc-aop.md>\n- 中文 IoC/AOP 文档: <https://github.com/bloom-lmh/decoraxios/blob/master/docs/zh/ioc-aop.md>\n","readmeFilename":"README.md"}